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

Commit f5c1b4cc authored by Cole Faust's avatar Cole Faust
Browse files

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
Change-Id: I99bb901018da30f39cf799ac6c939863266cee34
parent 213f4d56
Loading
Loading
Loading
Loading
+12 −32
Original line number Diff line number Diff line
@@ -26,56 +26,36 @@
    <issue
        id="NewApi"
        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
        errorLine1="        final WindowManager wm = getSystemService(WindowManager.class);"
        errorLine1="        final UserManager userManager = context.getSystemService(UserManager.class);"
        errorLine2="                                                ~~~~~~~~~~~~~~~~">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
            line="606"
            column="34"/>
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
            line="69"
            column="49"/>
    </issue>

    <issue
        id="NewApi"
        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
        errorLine1="        final WindowManager wm = getSystemService(WindowManager.class);"
        errorLine2="                                 ~~~~~~~~~~~~~~~~">
        message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
            line="804"
            column="34"/>
            line="1842"/>
    </issue>

    <issue
        id="NewApi"
        message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"
        errorLine1="                ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
        errorLine2="                                ~~~~~~~~~">
        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
            line="1823"
            column="33"/>
            line="605"/>
    </issue>

    <issue
        id="NewApi"
        message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"
        errorLine1="                ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
        errorLine2="                                            ~~~~~~~~~~~~~~~~~~">
        message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
            line="1823"
            column="45"/>
    </issue>

    <issue
        id="NewApi"
        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
        errorLine1="        final UserManager userManager = context.getSystemService(UserManager.class);"
        errorLine2="                                                ~~~~~~~~~~~~~~~~">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
            line="69"
            column="49"/>
            line="1842"/>
    </issue>

</issues>
 No newline at end of file