1<?xml version="1.0" encoding="UTF-8"?> 2<issues format="6" by="lint 8.4.0-alpha08" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha08"> 3 4 <issue 5 id="FlaggedApi" 6 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`)" 7 errorLine1=" private static final int METADATA_MAX_KEY = METADATA_EXCLUSIVE_MANAGER;" 8 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> 9 <location 10 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothDevice.java" 11 line="811" 12 column="49"/> 13 </issue> 14 15 <issue 16 id="FlaggedApi" 17 message="Field `PRESET_INDEX_UNAVAILABLE` is a flagged API and should be inside an `if (Flags.settingsCanControlHapPreset())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_SETTINGS_CAN_CONTROL_HAP_PRESET) to transfer requirement to caller`)" 18 errorLine1=" private int mPresetIndex = BluetoothHapClient.PRESET_INDEX_UNAVAILABLE;" 19 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> 20 <location 21 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothHapPresetInfo.java" 22 line="138" 23 column="55"/> 24 </issue> 25 26 <issue 27 id="FlaggedApi" 28 message="Field `AUDIO_LOCATION_INVALID` is a flagged API and should be inside an `if (Flags.leaudioMonoLocationErrata())` check (or annotate the surrounding method `getAudioLocation` with `@FlaggedApi(Flags.FLAG_LEAUDIO_MONO_LOCATION_ERRATA) to transfer requirement to caller`)" 29 errorLine1=" return AUDIO_LOCATION_INVALID;" 30 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> 31 <location 32 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothLeAudio.java" 33 line="1208" 34 column="16"/> 35 </issue> 36 37 <issue 38 id="FlaggedApi" 39 message="Field `UNIX_FILE_SOCKET_CREATION_FAILURE` is a flagged API and should be inside an `if (Flags.unixFileSocketCreationFailure())` check (or annotate the surrounding method `connect` with `@FlaggedApi(Flags.FLAG_UNIX_FILE_SOCKET_CREATION_FAILURE) to transfer requirement to caller`)" 40 errorLine1=" BluetoothSocketException.UNIX_FILE_SOCKET_CREATION_FAILURE);" 41 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 42 <location 43 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothSocket.java" 44 line="470" 45 column="54"/> 46 </issue> 47 48 <issue 49 id="FlaggedApi" 50 message="Field `UNIX_FILE_SOCKET_CREATION_FAILURE` is a flagged API and should be inside an `if (Flags.unixFileSocketCreationFailure())` check (or annotate the surrounding method `getMessage` with `@FlaggedApi(Flags.FLAG_UNIX_FILE_SOCKET_CREATION_FAILURE) to transfer requirement to caller`)" 51 errorLine1=" case UNIX_FILE_SOCKET_CREATION_FAILURE:" 52 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 53 <location 54 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothSocketException.java" 55 line="235" 56 column="18"/> 57 </issue> 58 59 <issue 60 id="FlaggedApi" 61 message="Field `DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 62 errorLine1=" case DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING:" 63 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 64 <location 65 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementMethod.java" 66 line="224" 67 column="22"/> 68 </issue> 69 70 <issue 71 id="FlaggedApi" 72 message="Method `writeToParcel()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `writeToParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 73 errorLine1=" mChannelSoundingParams.writeToParcel(out, flags);" 74 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 75 <location 76 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementParams.java" 77 line="196" 78 column="13"/> 79 </issue> 80 81 <issue 82 id="FlaggedApi" 83 message="Method `setChannelSoundingParams()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 84 errorLine1=" builder.setChannelSoundingParams(" 85 errorLine2=" ^"> 86 <location 87 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementParams.java" 88 line="210" 89 column="25"/> 90 </issue> 91 92 <issue 93 id="FlaggedApi" 94 message="Field `CREATOR` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 95 errorLine1=" ChannelSoundingParams.CREATOR.createFromParcel(in));" 96 errorLine2=" ~~~~~~~"> 97 <location 98 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementParams.java" 99 line="211" 100 column="55"/> 101 </issue> 102 103 <issue 104 id="FlaggedApi" 105 message="Field `DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `setMethodId` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 106 errorLine1=" case DistanceMeasurementMethod.DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING:" 107 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 108 <location 109 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementParams.java" 110 line="299" 111 column="48"/> 112 </issue> 113 114 <issue 115 id="FlaggedApi" 116 message="Method `setConfidenceLevel()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 117 errorLine1=" return new Builder(in.readDouble(), in.readDouble())" 118 errorLine2=" ^"> 119 <location 120 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 121 line="398" 122 column="28"/> 123 </issue> 124 125 <issue 126 id="FlaggedApi" 127 message="Method `setDelaySpreadMeters()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 128 errorLine1=" return new Builder(in.readDouble(), in.readDouble())" 129 errorLine2=" ^"> 130 <location 131 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 132 line="398" 133 column="28"/> 134 </issue> 135 136 <issue 137 id="FlaggedApi" 138 message="Method `setDetectedAttackLevel()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 139 errorLine1=" return new Builder(in.readDouble(), in.readDouble())" 140 errorLine2=" ^"> 141 <location 142 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 143 line="398" 144 column="28"/> 145 </issue> 146 147 <issue 148 id="FlaggedApi" 149 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`)" 150 errorLine1=" return new Builder(in.readDouble(), in.readDouble())" 151 errorLine2=" ^"> 152 <location 153 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 154 line="398" 155 column="28"/> 156 </issue> 157 158 <issue 159 id="FlaggedApi" 160 message="Method `setVelocityMetersPerSecond()` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `createFromParcel` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 161 errorLine1=" return new Builder(in.readDouble(), in.readDouble())" 162 errorLine2=" ^"> 163 <location 164 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 165 line="398" 166 column="28"/> 167 </issue> 168 169 <issue 170 id="FlaggedApi" 171 message="Field `NADM_UNKNOWN` is a flagged API and should be inside an `if (Flags.channelSounding())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING) to transfer requirement to caller`)" 172 errorLine1=" private int mDetectedAttackLevel = NADM_UNKNOWN;" 173 errorLine2=" ~~~~~~~~~~~~"> 174 <location 175 file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementResult.java" 176 line="432" 177 column="44"/> 178 </issue> 179 180 <issue 181 id="FlaggedApi" 182 message="Field `UNIX_FILE_SOCKET_CREATION_FAILURE` is a flagged API and should be inside an `if (Flags.unixFileSocketCreationFailure())` check (or annotate the surrounding method `getL2capLeConnectStatusCode` with `@FlaggedApi(Flags.FLAG_UNIX_FILE_SOCKET_CREATION_FAILURE) to transfer requirement to caller`)" 183 errorLine1=" case (BluetoothSocketException.UNIX_FILE_SOCKET_CREATION_FAILURE):" 184 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 185 <location 186 file="packages/modules/Bluetooth/framework/java/android/bluetooth/SocketMetrics.java" 187 line="140" 188 column="44"/> 189 </issue> 190 191 <issue 192 id="FlaggedApi" 193 message="Field `UNIX_FILE_SOCKET_CREATION_FAILURE` is a flagged API and should be inside an `if (Flags.unixFileSocketCreationFailure())` check (or annotate the surrounding method `getRfcommConnectStatusCode` with `@FlaggedApi(Flags.FLAG_UNIX_FILE_SOCKET_CREATION_FAILURE) to transfer requirement to caller`)" 194 errorLine1=" case (BluetoothSocketException.UNIX_FILE_SOCKET_CREATION_FAILURE):" 195 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 196 <location 197 file="packages/modules/Bluetooth/framework/java/android/bluetooth/SocketMetrics.java" 198 line="161" 199 column="44"/> 200 </issue> 201 202 <issue 203 id="WrongConstant" 204 message="Flag not allowed here" 205 errorLine1=" return (mCapability >> 1) & 1;" 206 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> 207 <location 208 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothHearingAid.java" 209 line="105" 210 column="20"/> 211 </issue> 212 213 <issue 214 id="WrongConstant" 215 message="Flag not allowed here" 216 errorLine1=" return mCapability & 1;" 217 errorLine2=" ~~~~~~~~~~~~~~~"> 218 <location 219 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothHearingAid.java" 220 line="121" 221 column="20"/> 222 </issue> 223 224 <issue 225 id="WrongConstant" 226 message="Flag not allowed here" 227 errorLine1=" mQualityReportId = bqrBuf.get() & 0xFF;" 228 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 229 <location 230 file="packages/modules/Bluetooth/framework/java/android/bluetooth/BluetoothQualityReport.java" 231 line="694" 232 column="32"/> 233 </issue> 234 235 <issue 236 id="WrongConstant" 237 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" 238 errorLine1=" mLeDeviceRole = -1; // Satisfy final" 239 errorLine2=" ~~"> 240 <location 241 file="packages/modules/Bluetooth/framework/java/android/bluetooth/OobData.java" 242 line="783" 243 column="25"/> 244 </issue> 245 246</issues> 247