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

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

Baseline NewApi issues

NewApi is a lint check that you don't call framework methods that were
introduced in versions later than your min_sdk_version. We want to
make this an error, so we're baselineing all existing issues.

This cl was generated automatically, by taking all the NewApi issues
from the reference baselines, and all the non-NewApi issues from the
existing checked in baselines.

Bug: 268261262
Test: Presubmits
Change-Id: If1b1214da673fec9f1e8bede86d5780a6b5f347b
parent 1085e5ae
Loading
Loading
Loading
Loading
+22 −13
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">
<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">

    <issue
        id="NewApi"
@@ -26,36 +26,45 @@
    <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);"
        errorLine1="        final WindowManager wm = getSystemService(WindowManager.class);"
        errorLine2="                                 ~~~~~~~~~~~~~~~~">
        <location
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
            line="69"
            column="49"/>
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
            line="605"
            column="34"/>
    </issue>

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

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

    <issue
        id="NewApi"
        message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`">
        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/latin/LatinIME.java"
            line="1842"/>
            file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
            line="69"
            column="49"/>
    </issue>

</issues>
 No newline at end of file