Skip to content

Commit f5c1b4c

Browse files
committed
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
1 parent 213f4d5 commit f5c1b4c

1 file changed

Lines changed: 12 additions & 32 deletions

File tree

java/lint-baseline.xml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,56 +26,36 @@
2626
<issue
2727
id="NewApi"
2828
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
29-
errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
30-
errorLine2=" ~~~~~~~~~~~~~~~~">
29+
errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);"
30+
errorLine2=" ~~~~~~~~~~~~~~~~">
3131
<location
32-
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
33-
line="606"
34-
column="34"/>
32+
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
33+
line="69"
34+
column="49"/>
3535
</issue>
3636

3737
<issue
3838
id="NewApi"
39-
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
40-
errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
41-
errorLine2=" ~~~~~~~~~~~~~~~~">
39+
message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`">
4240
<location
4341
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
44-
line="804"
45-
column="34"/>
42+
line="1842"/>
4643
</issue>
4744

4845
<issue
4946
id="NewApi"
50-
message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"
51-
errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
52-
errorLine2=" ~~~~~~~~~">
47+
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`">
5348
<location
5449
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
55-
line="1823"
56-
column="33"/>
50+
line="605"/>
5751
</issue>
5852

5953
<issue
6054
id="NewApi"
61-
message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"
62-
errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
63-
errorLine2=" ~~~~~~~~~~~~~~~~~~">
55+
message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`">
6456
<location
6557
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
66-
line="1823"
67-
column="45"/>
68-
</issue>
69-
70-
<issue
71-
id="NewApi"
72-
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
73-
errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);"
74-
errorLine2=" ~~~~~~~~~~~~~~~~">
75-
<location
76-
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
77-
line="69"
78-
column="49"/>
58+
line="1842"/>
7959
</issue>
8060

81-
</issues>
61+
</issues>

0 commit comments

Comments
 (0)