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
This commit is contained in:
Cole Faust 2024-01-10 12:30:37 -08:00
parent e32ffaec3b
commit 2424cc007d
6 changed files with 62 additions and 16 deletions

View file

@ -25,6 +25,9 @@ aidl_interface {
"//apex_available:platform", "//apex_available:platform",
"com.android.rkpd", "com.android.rkpd",
], ],
lint: {
baseline_filename: "lint-baseline.xml",
},
}, },
rust: { rust: {
enabled: true, enabled: true,

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.0.0-dev" type="baseline" dependencies="true" variant="all" version="8.0.0-dev"> <issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
<issue <issue
id="NewApi" id="NewApi"
@ -7,8 +7,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V1-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java" file="out/soong/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V1-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java"
line="50" line="52"
column="12"/> column="12"/>
</issue> </issue>
@ -18,8 +18,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V2-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java" file="out/soong/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V2-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java"
line="50" line="52"
column="12"/> column="12"/>
</issue> </issue>
@ -29,8 +29,19 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V3-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java" file="out/soong/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V3-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java"
line="495" line="56"
column="12"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 34 (current min is 33): `android.os.Binder#markVintfStability`"
errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="out/soong/.intermediates/hardware/interfaces/security/rkp/aidl/android.hardware.security.rkp-V4-java-source/gen/android/hardware/security/keymint/IRemotelyProvisionedComponent.java"
line="257"
column="12"/> column="12"/>
</issue> </issue>

View file

@ -18,6 +18,9 @@ aidl_interface {
], ],
min_sdk_version: "30", min_sdk_version: "30",
enabled: true, enabled: true,
lint: {
baseline_filename: "lint-baseline.xml",
},
}, },
ndk: { ndk: {
apps_enabled: false, apps_enabled: false,

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
<issue
id="NewApi"
message="Call requires API level 31 (current min is 30): `android.os.Binder#markVintfStability`"
errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="out/soong/.intermediates/hardware/interfaces/tetheroffload/aidl/android.hardware.tetheroffload-V1-java-source/gen/android/hardware/tetheroffload/IOffload.java"
line="64"
column="12"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 31 (current min is 30): `android.os.Binder#markVintfStability`"
errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="out/soong/.intermediates/hardware/interfaces/tetheroffload/aidl/android.hardware.tetheroffload-V1-java-source/gen/android/hardware/tetheroffload/ITetheringOffloadCallback.java"
line="45"
column="12"/>
</issue>
</issues>

View file

@ -39,6 +39,9 @@ aidl_interface {
"com.android.wifi", "com.android.wifi",
], ],
min_sdk_version: "30", min_sdk_version: "30",
lint: {
baseline_filename: "lint-baseline.xml",
},
}, },
ndk: { ndk: {
gen_trace: true, gen_trace: true,

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.0.0-dev" type="baseline" dependencies="true" variant="all" version="8.0.0-dev"> <issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
<issue <issue
id="NewApi" id="NewApi"
@ -7,8 +7,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V1-java-source/gen/android/hardware/wifi/hostapd/IHostapd.java" file="out/soong/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V1-java-source/gen/android/hardware/wifi/hostapd/IHostapd.java"
line="55" line="57"
column="12"/> column="12"/>
</issue> </issue>
@ -18,8 +18,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V1-java-source/gen/android/hardware/wifi/hostapd/IHostapdCallback.java" file="out/soong/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V1-java-source/gen/android/hardware/wifi/hostapd/IHostapdCallback.java"
line="46" line="48"
column="12"/> column="12"/>
</issue> </issue>
@ -29,8 +29,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V2-java-source/gen/android/hardware/wifi/hostapd/IHostapd.java" file="out/soong/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V2-java-source/gen/android/hardware/wifi/hostapd/IHostapd.java"
line="117" line="119"
column="12"/> column="12"/>
</issue> </issue>
@ -40,8 +40,8 @@
errorLine1=" this.markVintfStability();" errorLine1=" this.markVintfStability();"
errorLine2=" ~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="out/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V2-java-source/gen/android/hardware/wifi/hostapd/IHostapdCallback.java" file="out/soong/.intermediates/hardware/interfaces/wifi/hostapd/aidl/android.hardware.wifi.hostapd-V2-java-source/gen/android/hardware/wifi/hostapd/IHostapdCallback.java"
line="62" line="64"
column="12"/> column="12"/>
</issue> </issue>