diff options
author | William Escande <wescande@google.com> | 2022-03-08 12:19:43 +0100 |
---|---|---|
committer | William Escande <wescande@google.com> | 2022-03-08 22:11:52 +0000 |
commit | 51405bd7956323dd27654533921355c7e44d8668 (patch) | |
tree | a5d763f704d7833c49ba3b6d2ec1c440bd1b4604 /framework/java/android/bluetooth/BluetoothDevice.java | |
parent | a7925e53707fc6d959dc684667be87bfa994a2b7 (diff) |
Fix after API_review
* isMandatoryCodec is now public
* SCAN_FAILED_OUT_OF_HARDWARE/SCANNING_TOO_FREQUENTLY is now public with a
IntDef (method using the value are changed accordingly)
* Update doc for EXTRA_BATTERY_LEVEL and EXTRA_PAIRING_INITIATOR and
ACTION_CONNECTION_STATE_CHANGED
* Add Autoclosable to BluetoothSap to remove the NotCloseable
* BluetoothClass.Device.PERI* are now public
Bug: 222725037
Fix: 221851154
Test: Build + TH
Tag: #refactor
CTS-Coverage-Bug: 222539659
Merged-In: Ia6aa778d6bdc0319266c52a84633ee593eaa7eb0
Change-Id: Ia6aa778d6bdc0319266c52a84633ee593eaa7eb0
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothDevice.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java index 981afd8631..b457673070 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/java/android/bluetooth/BluetoothDevice.java @@ -263,7 +263,8 @@ public final class BluetoothDevice implements Parcelable, Attributable { * Used as an Integer extra field in {@link #ACTION_BATTERY_LEVEL_CHANGED} * intent. It contains the most recently retrieved battery level information * ranging from 0% to 100% for a remote device, {@link #BATTERY_LEVEL_UNKNOWN} - * when the valid is unknown or there is an error + * when the valid is unknown or there is an error, {@link #BATTERY_LEVEL_BLUETOOTH_OFF} when the + * bluetooth is off * * @hide */ @@ -414,7 +415,10 @@ public final class BluetoothDevice implements Parcelable, Attributable { /** * Used as an int extra field in {@link #ACTION_PAIRING_REQUEST} - * intents as the value of passkey. + * intents as the location of initiator. Possible value are: + * {@link #EXTRA_PAIRING_INITIATOR_FOREGROUND}, + * {@link #EXTRA_PAIRING_INITIATOR_BACKGROUND}, + * * @hide */ @SystemApi |