We are enabling a new lint check where the min sdk != compile sdk. It has produced a lot of errors and adding the baseline file(s) allows us to continue work without introducing more problems. Bug: 150847901 Test: m lint-check Change-Id: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
82 lines
3.4 KiB
XML
82 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 24 (current min is 21): `java.lang.Iterable#forEach`"
|
|
errorLine1=" controllers.forEach(controller -> {"
|
|
errorLine2=" ~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/SwitchesProvider.java"
|
|
line="79"
|
|
column="21"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 29 (current min is 21): `android.os.Parcel#readBoolean`"
|
|
errorLine1=" final boolean isProviderTile = in.readBoolean();"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/Tile.java"
|
|
line="83"
|
|
column="43"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 29 (current min is 21): `android.os.Parcel#writeBoolean`"
|
|
errorLine1=" dest.writeBoolean(this instanceof ProviderTile);"
|
|
errorLine2=" ~~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/Tile.java"
|
|
line="102"
|
|
column="14"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `android.graphics.drawable.Icon#createWithResource`"
|
|
errorLine1=" final Icon icon = Icon.createWithResource(componentInfo.packageName, iconResId);"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/Tile.java"
|
|
line="314"
|
|
column="36"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `android.graphics.drawable.Icon#setTint`"
|
|
errorLine1=" icon.setTint(tintColor);"
|
|
errorLine2=" ~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/Tile.java"
|
|
line="320"
|
|
column="22"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 29 (current min is 21): `android.os.Parcel#readBoolean`"
|
|
errorLine1=" final boolean isProviderTile = source.readBoolean();"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/Tile.java"
|
|
line="364"
|
|
column="51"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 31 (current min is 21): `android.content.Context#getAttributionSource`"
|
|
errorLine1=" return provider.call(context.getAttributionSource(),"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/TileUtils.java"
|
|
line="558"
|
|
column="42"/>
|
|
</issue>
|
|
|
|
</issues>
|