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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b6d6bf359ca53d41a08b7e2af86f7a080e2b5741) Merged-In: I31beadf91173116b9750fe6f132a4f979a2e0d9a Change-Id: I31beadf91173116b9750fe6f132a4f979a2e0d9a
This commit is contained in:
parent
f3bd5e5a0a
commit
de112b6109
1 changed files with 70 additions and 0 deletions
70
staticlibs/lint-baseline.xml
Normal file
70
staticlibs/lint-baseline.xml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<?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">
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 30 (current min is 29): `android.net.LinkProperties#getAddresses`"
|
||||
errorLine1=" final Collection<InetAddress> leftAddresses = left.getAddresses();"
|
||||
errorLine2=" ~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/framework/com/android/net/module/util/LinkPropertiesUtils.java"
|
||||
line="158"
|
||||
column="60"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 30 (current min is 29): `android.net.LinkProperties#getAddresses`"
|
||||
errorLine1=" final Collection<InetAddress> rightAddresses = right.getAddresses();"
|
||||
errorLine2=" ~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/framework/com/android/net/module/util/LinkPropertiesUtils.java"
|
||||
line="159"
|
||||
column="62"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 30 (current min is 29): `android.net.NetworkStats#addEntry`"
|
||||
errorLine1=" stats = stats.addEntry(entry);"
|
||||
errorLine2=" ~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/framework/com/android/net/module/util/NetworkStatsUtils.java"
|
||||
line="113"
|
||||
column="27"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 30 (current min is 29): `new android.net.NetworkStats.Entry`"
|
||||
errorLine1=" return new android.net.NetworkStats.Entry("
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/framework/com/android/net/module/util/NetworkStatsUtils.java"
|
||||
line="120"
|
||||
column="16"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 30 (current min is 29): `new android.net.NetworkStats`"
|
||||
errorLine1=" android.net.NetworkStats stats = new android.net.NetworkStats(0L, 0);"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/framework/com/android/net/module/util/NetworkStatsUtils.java"
|
||||
line="108"
|
||||
column="42"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 31 (current min is 29): `new android.system.NetlinkSocketAddress`"
|
||||
errorLine1=" return new NetlinkSocketAddress(portId, groupsMask);"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/libs/net/common/device/com/android/net/module/util/SocketUtils.java"
|
||||
line="44"
|
||||
column="16"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
||||
Loading…
Reference in a new issue