diff options
author | 2023-03-09 14:18:44 -0800 | |
---|---|---|
committer | 2023-03-09 14:18:44 -0800 | |
commit | 9ae2607adaa4b33e41f8d93228555c32f23aa648 (patch) | |
tree | fd574a8277264ee227a7a307c309d0873a661d4a /lint-baseline.xml | |
parent | b3c27c47c766829aefc764417928bc02ebe29652 (diff) |
Baseline NewApi issues
NewApi was recently updated to support linting methods in
the system, module_lib, and system_server sdks, and was
demoted to a warning due to the new issues it finds.
Baseline all the new issues that NewApi can be made an error
again.
These cls were generated automatically by a script that
copied the NewApi issues from the reference baselines.
Bug: 268261262
Test: m lint-check
Change-Id: I141a85c829187707220c999819f3f1c1fa179e77
Diffstat (limited to 'lint-baseline.xml')
-rw-r--r-- | lint-baseline.xml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lint-baseline.xml b/lint-baseline.xml new file mode 100644 index 000000000..e26facc30 --- /dev/null +++ b/lint-baseline.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<issues format="6" by="lint 8.0.0-dev" type="baseline" dependencies="true" variant="all" version="8.0.0-dev"> + + <issue + id="NewApi" + message="Call requires API level 31 (current min is 30): `android.content.Context#getUser`" + errorLine1=" owner = context.getUser();" + errorLine2=" ~~~~~~~"> + <location + file="packages/providers/MediaProvider/src/com/android/providers/media/MediaService.java" + line="166" + column="29"/> + </issue> + + <issue + id="NewApi" + message="Call requires API level 31 (current min is 30): `android.content.Context#getUser`" + errorLine1=" if (userId >= 0 && (context.getUser().getIdentifier() != userId)) {" + errorLine2=" ~~~~~~~"> + <location + file="packages/providers/MediaProvider/src/com/android/providers/media/util/FileUtils.java" + line="874" + column="37"/> + </issue> + + <issue + id="NewApi" + message="Call requires API level 31 (current min is 30): `android.content.Context#getUser`" + errorLine1=" return getUserId(uri) == mContext.getUser().getIdentifier();" + errorLine2=" ~~~~~~~"> + <location + file="packages/providers/MediaProvider/src/com/android/providers/media/PickerUriResolver.java" + line="296" + column="43"/> + </issue> + + <issue + id="NewApi" + message="Call requires API level 31 (current min is 30): `android.os.Build#isDebuggable`" + errorLine1=" if (Build.isDebuggable()" + errorLine2=" ~~~~~~~~~~~~"> + <location + file="packages/providers/MediaProvider/src/com/android/providers/media/photopicker/PhotoPickerActivity.java" + line="573" + column="23"/> + </issue> + + <issue + id="NewApi" + message="Call requires API level 31 (current min is 30): `android.os.UserManager#isMediaSharedWithParent`" + errorLine1=" && userManager.isMediaSharedWithParent();" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="packages/providers/MediaProvider/src/com/android/providers/media/util/UserCache.java" + line="116" + column="32"/> + </issue> + +</issues>
\ No newline at end of file |