summaryrefslogtreecommitdiff
path: root/framework/lint-baseline.xml
blob: b04a0ff7a38ce663550a8a46c606a81c2cc482db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.4.0-alpha08" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha08">

    <issue
        id="FlaggedApi"
        message="Field `METADATA_EXCLUSIVE_MANAGER` is a flagged API and should be inside an `if (Flags.supportExclusiveManager())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_SUPPORT_EXCLUSIVE_MANAGER) to transfer requirement to caller`)"
        errorLine1="    private static final int METADATA_MAX_KEY = METADATA_EXCLUSIVE_MANAGER;"
        errorLine2="                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothDevice.java"
            line="902"
            column="49"/>
    </issue>

    <issue
        id="FlaggedApi"
        message="Method `setMeasurementTimestampNanos()` is a flagged API and should be inside an `if (Flags.channelSounding25q2Apis())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING_25Q2_APIS) to transfer requirement to caller`)"
        errorLine1="                    return new Builder(in.readDouble(), in.readDouble())"
        errorLine2="                           ^">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java"
            line="385"
            column="28"/>
    </issue>

    <issue
        id="WrongConstant"
        message="Flag not allowed here"
        errorLine1="            return (mCapability >> 1) &amp; 1;"
        errorLine2="                   ~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothHearingAid.java"
            line="105"
            column="20"/>
    </issue>

    <issue
        id="WrongConstant"
        message="Flag not allowed here"
        errorLine1="            return mCapability &amp; 1;"
        errorLine2="                   ~~~~~~~~~~~~~~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothHearingAid.java"
            line="121"
            column="20"/>
    </issue>

    <issue
        id="WrongConstant"
        message="Flag not allowed here"
        errorLine1="            mQualityReportId = rawData[0] &amp; 0xFF;"
        errorLine2="                               ~~~~~~~~~~~~~~~~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothQualityReport.java"
            line="778"
            column="32"/>
    </issue>

    <issue
        id="WrongConstant"
        message="Must be one of: OobData.LE_DEVICE_ROLE_PERIPHERAL_ONLY, OobData.LE_DEVICE_ROLE_CENTRAL_ONLY, OobData.LE_DEVICE_ROLE_BOTH_PREFER_PERIPHERAL, OobData.LE_DEVICE_ROLE_BOTH_PREFER_CENTRAL"
        errorLine1="        mLeDeviceRole = -1; // Satisfy final"
        errorLine2="                        ~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/OobData.java"
            line="781"
            column="25"/>
    </issue>

</issues>