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

Commit e2cea359 authored by Mårten Kongstad's avatar Mårten Kongstad
Browse files

Baseline Lint FlaggedApi violations

The Lint FlaggedApi checks are currently configured as warnings. Add
existing violations to baselines files to prepare for turning the
FlaggedApi checks into errors.

Bug: 303434307
Test: treehugger
Flag: EXEMPT not possible to flag baseline changes
Merged-In: I990ce57cd5cdac44ee8b93565b45aa15790ad697
Change-Id: I990ce57cd5cdac44ee8b93565b45aa15790ad697
parent 15d6fac7
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
@@ -210,4 +210,59 @@
            column="23"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `PollingFrame()` is a flagged API and should be inside an `if (Flags.nfcReadPollingLoop())` check (or annotate the surrounding method `handleMessage` with `@FlaggedApi(Flags.FLAG_NFC_READ_POLLING_LOOP) to transfer requirement to caller`)"
        errorLine1="                        pollingFrames.add(new PollingFrame(frame));"
        errorLine2="                                          ~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/nfc/java/android/nfc/cardemulation/HostApduService.java"
            line="335"
            column="43"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `processPollingFrames()` is a flagged API and should be inside an `if (Flags.nfcReadPollingLoop())` check (or annotate the surrounding method `handleMessage` with `@FlaggedApi(Flags.FLAG_NFC_READ_POLLING_LOOP) to transfer requirement to caller`)"
        errorLine1="                    processPollingFrames(pollingFrames);"
        errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/nfc/java/android/nfc/cardemulation/HostApduService.java"
            line="337"
            column="21"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `NfcOemExtension()` is a flagged API and should be inside an `if (Flags.nfcOemExtension())` check (or annotate the surrounding method `NfcAdapter` with `@FlaggedApi(Flags.FLAG_NFC_OEM_EXTENSION) to transfer requirement to caller`)"
        errorLine1="        mNfcOemExtension = new NfcOemExtension(mContext, this);"
        errorLine2="                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/nfc/java/android/nfc/NfcAdapter.java"
            line="895"
            column="28"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `onVendorNciResponse()` is a flagged API and should be inside an `if (Flags.nfcVendorCmd())` check (or annotate the surrounding method `onVendorResponseReceived` with `@FlaggedApi(Flags.FLAG_NFC_VENDOR_CMD) to transfer requirement to caller`)"
        errorLine1="                    executor.execute(() -> callback.onVendorNciResponse(gid, oid, payload));"
        errorLine2="                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/nfc/java/android/nfc/NfcVendorNciCallbackListener.java"
            line="88"
            column="44"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `onVendorNciNotification()` is a flagged API and should be inside an `if (Flags.nfcVendorCmd())` check (or annotate the surrounding method `onVendorNotificationReceived` with `@FlaggedApi(Flags.FLAG_NFC_VENDOR_CMD) to transfer requirement to caller`)"
        errorLine1="                    executor.execute(() -> callback.onVendorNciNotification(gid, oid, payload));"
        errorLine2="                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="frameworks/base/nfc/java/android/nfc/NfcVendorNciCallbackListener.java"
            line="106"
            column="44"/>
    </issue>

</issues>
 No newline at end of file