Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dbe0222 authored by Pedro Loureiro's avatar Pedro Loureiro
Browse files

Add lint baseline to address NewApi errors

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: I6cd689a09ce71813856bf75be7cad5f47fabe2e9
Merged-In: I6cd689a09ce71813856bf75be7cad5f47fabe2e9
parent e5600bcf
Loading
Loading
Loading
Loading
+70 −0
Original line number Diff line number Diff line
<?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>