diff options
author | 2023-03-09 14:25:11 -0800 | |
---|---|---|
committer | 2023-03-09 14:25:11 -0800 | |
commit | f5c1b4cc37a4f638e971668cf5923564d627466e (patch) | |
tree | db69c83cc69a0e203c7c3bbc686529c26afd6e87 /java/lint-baseline.xml | |
parent | 213f4d56042c73a3d64753bdcad52fe67d75433b (diff) | |
download | latinime-f5c1b4cc37a4f638e971668cf5923564d627466e.tar.gz latinime-f5c1b4cc37a4f638e971668cf5923564d627466e.tar.xz latinime-f5c1b4cc37a4f638e971668cf5923564d627466e.zip |
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: I99bb901018da30f39cf799ac6c939863266cee34
Diffstat (limited to '')
-rw-r--r-- | java/lint-baseline.xml | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/java/lint-baseline.xml b/java/lint-baseline.xml index 02f41f4e4..dbb81ca76 100644 --- a/java/lint-baseline.xml +++ b/java/lint-baseline.xml @@ -26,56 +26,36 @@ <issue id="NewApi" message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`" - errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);" - errorLine2=" ~~~~~~~~~~~~~~~~"> + errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);" + errorLine2=" ~~~~~~~~~~~~~~~~"> <location - file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java" - line="606" - column="34"/> + file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java" + line="69" + column="49"/> </issue> <issue id="NewApi" - message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`" - errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);" - errorLine2=" ~~~~~~~~~~~~~~~~"> + message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"> <location file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java" - line="804" - column="34"/> + line="1842"/> </issue> <issue id="NewApi" - message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`" - errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());" - errorLine2=" ~~~~~~~~~"> + message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"> <location file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java" - line="1823" - column="33"/> + line="605"/> </issue> <issue id="NewApi" - message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`" - errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());" - errorLine2=" ~~~~~~~~~~~~~~~~~~"> + message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"> <location file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java" - line="1823" - column="45"/> - </issue> - - <issue - id="NewApi" - message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`" - errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);" - errorLine2=" ~~~~~~~~~~~~~~~~"> - <location - file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java" - line="69" - column="49"/> + line="1842"/> </issue> -</issues> +</issues>
\ No newline at end of file |