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.5 KiB
XML
82 lines
3.5 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 23 (current min is 21): `android.content.res.Resources#getColor`"
|
|
errorLine1=" .getColor(colorRes, null /* theme */);"
|
|
errorLine2=" ~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveIcon.java"
|
|
line="78"
|
|
column="34"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `android.content.Context#getColor`"
|
|
errorLine1=" setBackgroundColor(context.getColor(R.color.homepage_generic_icon_background));"
|
|
errorLine2=" ~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveIcon.java"
|
|
line="90"
|
|
column="36"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Class requires API level 23 (current min is 21): `android.graphics.drawable.DrawableWrapper`"
|
|
errorLine1="public class AdaptiveOutlineDrawable extends DrawableWrapper {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveOutlineDrawable.java"
|
|
line="43"
|
|
column="46"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `new android.graphics.drawable.DrawableWrapper`"
|
|
errorLine1=" super(new AdaptiveIconShapeDrawable(resources));"
|
|
errorLine2=" ~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveOutlineDrawable.java"
|
|
line="65"
|
|
column="9"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `new android.graphics.drawable.DrawableWrapper`"
|
|
errorLine1=" super(new AdaptiveIconShapeDrawable(resources));"
|
|
errorLine2=" ~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveOutlineDrawable.java"
|
|
line="72"
|
|
column="9"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `android.graphics.drawable.DrawableWrapper#getDrawable`"
|
|
errorLine1=" getDrawable().setTint(Color.WHITE);"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveOutlineDrawable.java"
|
|
line="80"
|
|
column="9"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="Call requires API level 23 (current min is 21): `android.content.res.Resources#getColor`"
|
|
errorLine1=" return resources.getColor(resId, /* theme */ null);"
|
|
errorLine2=" ~~~~~~~~">
|
|
<location
|
|
file="frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/AdaptiveOutlineDrawable.java"
|
|
line="105"
|
|
column="26"/>
|
|
</issue>
|
|
|
|
</issues>
|