summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Loureiro <pedroql@google.com>2021-04-15 11:49:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-15 11:49:49 +0000
commit861dcd6da037170fdf2c0c9eb14db3518841992f (patch)
tree90974e8605ad489989b702f550b7f5318e0c23fe
parente5600bcf8aef8ef5ac5dfb304f8a92f304e5794e (diff)
parent9dbe0222c75701c6b95e1e77dca4e7fe7a5e794f (diff)
downloadsystemui-android-s-beta-5.tar.gz
Add lint baseline to address NewApi errors am: 9dbe0222c7android-s-beta-5android-s-beta-4android-s-beta-3android-s-beta-5android-s-beta-4
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/1675571 Change-Id: I26839acf3e0784a7afacd434bcdea8a2dd26849d
-rw-r--r--iconloaderlib/lint-baseline.xml70
1 files changed, 70 insertions, 0 deletions
diff --git a/iconloaderlib/lint-baseline.xml b/iconloaderlib/lint-baseline.xml
new file mode 100644
index 0000000..bddf14f
--- /dev/null
+++ b/iconloaderlib/lint-baseline.xml
@@ -0,0 +1,70 @@
+<?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): `android.os.LocaleList#getEmptyLocaleList`"
+ errorLine1=" protected LocaleList mLocaleList = LocaleList.getEmptyLocaleList();"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java"
+ line="93"
+ column="51"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 24 (current min is 21): `android.content.res.Configuration#getLocales`"
+ errorLine1=" mLocaleList = mContext.getResources().getConfiguration().getLocales();"
+ errorLine2=" ~~~~~~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java"
+ line="241"
+ column="66"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 24 (current min is 21): `android.os.LocaleList#toLanguageTags`"
+ errorLine1=" mSystemState = mLocaleList.toLanguageTags() + &quot;,&quot; + Build.VERSION.SDK_INT;"
+ errorLine2=" ~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java"
+ line="242"
+ column="36"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 24 (current min is 21): `android.os.UserHandle#getUserHandleForUid`"
+ errorLine1=" UserHandle.getUserHandleForUid(Integer.parseInt(str.substring(sep + 1))));"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/ComponentKey.java"
+ line="79"
+ column="32"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Class requires API level 23 (current min is 21): `android.graphics.drawable.DrawableWrapper`"
+ errorLine1="public class FixedScaleDrawable extends DrawableWrapper {"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/FixedScaleDrawable.java"
+ line="15"
+ column="41"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `new android.graphics.drawable.DrawableWrapper`"
+ errorLine1=" super(new ColorDrawable());"
+ errorLine2=" ~~~~~">
+ <location
+ file="frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/FixedScaleDrawable.java"
+ line="22"
+ column="9"/>
+ </issue>
+
+</issues>