From f4e1d98c751a1c07005d4ba31c4b6de9ddb7958f Mon Sep 17 00:00:00 2001 From: mattgilbride Date: Wed, 10 May 2023 03:23:17 +0000 Subject: Baseline remaining SimpleManualPermissionEnforcement lint errors The subject linter catches cases that would be trivial to migrate from manual permission checks to the @EnforcePermission annotation. The linter will soon raise an error in the errorprone build if such a change would be completely behavior preserving, and thus the manual permission check should be replaced by the annotation. Baseline the remaining sites that would raise such an error so that the linter can be updated accordingly. Bug: 265014041 Test: TH, manually tested with local changes to linter Change-Id: I7932f75b2dbd96944fee63d36e15529df3219d3a --- services/accessibility/lint-baseline.xml | 26 ++++++++++++++ services/backup/lint-baseline.xml | 24 +++++++++++++ services/core/lint-baseline.xml | 8 +++++ services/lint-baseline.xml | 59 ++++++++++++++++++++++++++++++++ services/print/lint-baseline.xml | 15 ++++++++ 5 files changed, 132 insertions(+) create mode 100644 services/accessibility/lint-baseline.xml create mode 100644 services/lint-baseline.xml create mode 100644 services/print/lint-baseline.xml (limited to 'services') diff --git a/services/accessibility/lint-baseline.xml b/services/accessibility/lint-baseline.xml new file mode 100644 index 000000000000..6bec8cf5f018 --- /dev/null +++ b/services/accessibility/lint-baseline.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/services/backup/lint-baseline.xml b/services/backup/lint-baseline.xml index 28bb937cfd9c..93c9390feb9c 100644 --- a/services/backup/lint-baseline.xml +++ b/services/backup/lint-baseline.xml @@ -12,4 +12,28 @@ column="16"/> + + + + + + + + + + + + diff --git a/services/core/lint-baseline.xml b/services/core/lint-baseline.xml index 69e13b38873a..070bd4b1c5a9 100644 --- a/services/core/lint-baseline.xml +++ b/services/core/lint-baseline.xml @@ -137,4 +137,12 @@ line="1448"/> + + + + diff --git a/services/lint-baseline.xml b/services/lint-baseline.xml new file mode 100644 index 000000000000..8489c17dd878 --- /dev/null +++ b/services/lint-baseline.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/print/lint-baseline.xml b/services/print/lint-baseline.xml new file mode 100644 index 000000000000..1bf031a9e289 --- /dev/null +++ b/services/print/lint-baseline.xml @@ -0,0 +1,15 @@ + + + + + + + + -- cgit v1.2.3-59-g8ed1b