From cef3ed4c817adf885bbd0f0d6052731503001666 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 10 Jan 2024 12:30:40 -0800 Subject: Baseline NewApi issues NewApi is a lint check that you don't call framework methods that were introduced in versions later than your min_sdk_version. We want to make this an error, so we're baselineing all existing issues. This cl was generated automatically, by taking all the NewApi issues from the reference baselines, and all the non-NewApi issues from the existing checked in baselines. Bug: 268261262 Test: Presubmits Change-Id: If1b1214da673fec9f1e8bede86d5780a6b5f347b --- java/lint-baseline.xml | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'java/lint-baseline.xml') diff --git a/java/lint-baseline.xml b/java/lint-baseline.xml index dbb81ca76..7e70f0136 100644 --- a/java/lint-baseline.xml +++ b/java/lint-baseline.xml @@ -1,5 +1,5 @@ - + + errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);" + errorLine2=" ~~~~~~~~~~~~~~~~"> + file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java" + line="605" + column="34"/> + message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`" + errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());" + errorLine2=" ~~~~~~~~~"> + line="1857" + column="33"/> + message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`" + errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());" + errorLine2=" ~~~~~~~~~~~~~~~~~~"> + line="1857" + column="45"/> + message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`" + errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);" + errorLine2=" ~~~~~~~~~~~~~~~~"> + file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java" + line="69" + column="49"/> \ No newline at end of file -- cgit v1.2.3-83-g751a