From 2424cc007d1b7a160e22155f77436ef7f8d011e0 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 10 Jan 2024 12:30:37 -0800 Subject: [PATCH] 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: I3e4bcd76bad422513d48712303ce5c857511d9be --- security/rkp/aidl/Android.bp | 3 +++ security/rkp/aidl/lint-baseline.xml | 25 ++++++++++++++++++------- tetheroffload/aidl/Android.bp | 3 +++ tetheroffload/aidl/lint-baseline.xml | 26 ++++++++++++++++++++++++++ wifi/hostapd/aidl/Android.bp | 3 +++ wifi/hostapd/aidl/lint-baseline.xml | 18 +++++++++--------- 6 files changed, 62 insertions(+), 16 deletions(-) create mode 100644 tetheroffload/aidl/lint-baseline.xml diff --git a/security/rkp/aidl/Android.bp b/security/rkp/aidl/Android.bp index e9e20214f5..adc63f666a 100644 --- a/security/rkp/aidl/Android.bp +++ b/security/rkp/aidl/Android.bp @@ -25,6 +25,9 @@ aidl_interface { "//apex_available:platform", "com.android.rkpd", ], + lint: { + baseline_filename: "lint-baseline.xml", + }, }, rust: { enabled: true, diff --git a/security/rkp/aidl/lint-baseline.xml b/security/rkp/aidl/lint-baseline.xml index d25d383dfd..8e98094575 100644 --- a/security/rkp/aidl/lint-baseline.xml +++ b/security/rkp/aidl/lint-baseline.xml @@ -1,5 +1,5 @@ - + @@ -18,8 +18,8 @@ errorLine1=" this.markVintfStability();" errorLine2=" ~~~~~~~~~~~~~~~~~~"> @@ -29,8 +29,19 @@ errorLine1=" this.markVintfStability();" errorLine2=" ~~~~~~~~~~~~~~~~~~"> + + + + diff --git a/tetheroffload/aidl/Android.bp b/tetheroffload/aidl/Android.bp index 6de27c3462..e091c5bab8 100644 --- a/tetheroffload/aidl/Android.bp +++ b/tetheroffload/aidl/Android.bp @@ -18,6 +18,9 @@ aidl_interface { ], min_sdk_version: "30", enabled: true, + lint: { + baseline_filename: "lint-baseline.xml", + }, }, ndk: { apps_enabled: false, diff --git a/tetheroffload/aidl/lint-baseline.xml b/tetheroffload/aidl/lint-baseline.xml new file mode 100644 index 0000000000..62924b1471 --- /dev/null +++ b/tetheroffload/aidl/lint-baseline.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/wifi/hostapd/aidl/Android.bp b/wifi/hostapd/aidl/Android.bp index cdc94bb036..e5d492a204 100644 --- a/wifi/hostapd/aidl/Android.bp +++ b/wifi/hostapd/aidl/Android.bp @@ -39,6 +39,9 @@ aidl_interface { "com.android.wifi", ], min_sdk_version: "30", + lint: { + baseline_filename: "lint-baseline.xml", + }, }, ndk: { gen_trace: true, diff --git a/wifi/hostapd/aidl/lint-baseline.xml b/wifi/hostapd/aidl/lint-baseline.xml index 657622e674..99231fc739 100644 --- a/wifi/hostapd/aidl/lint-baseline.xml +++ b/wifi/hostapd/aidl/lint-baseline.xml @@ -1,5 +1,5 @@ - + @@ -18,8 +18,8 @@ errorLine1=" this.markVintfStability();" errorLine2=" ~~~~~~~~~~~~~~~~~~"> @@ -29,8 +29,8 @@ errorLine1=" this.markVintfStability();" errorLine2=" ~~~~~~~~~~~~~~~~~~"> @@ -40,8 +40,8 @@ errorLine1=" this.markVintfStability();" errorLine2=" ~~~~~~~~~~~~~~~~~~">