From f5c1b4cc37a4f638e971668cf5923564d627466e Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Thu, 9 Mar 2023 14:25:11 -0800 Subject: 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 --- java/lint-baseline.xml | 44 ++++++++++++-------------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) (limited to 'java') 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 @@ + 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"/> + message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"> + line="1842"/> + message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"> + line="605"/> + message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"> - - - - + line="1842"/> - + \ No newline at end of file -- cgit v1.2.3-83-g751a