diff options
| author | 2017-10-24 06:05:45 +0000 | |
|---|---|---|
| committer | 2017-10-24 06:05:45 +0000 | |
| commit | ba45409c922a7d63cdcb08d1ae1d1d8f11e7e6f7 (patch) | |
| tree | ee00e31b463f82bb2b67ce636eaf1b09f66177de | |
| parent | 64ef2a4d28d5ebf439c3a947102ef37d2c2f7a25 (diff) | |
| parent | 547853d4c34bf121c7be0faa9979034d5e101bfd (diff) | |
Merge "Persist Bluetooth CoD config value across reboot"
| -rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 6 | ||||
| -rwxr-xr-x | core/java/android/provider/Settings.java | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 17ae9078ef98..01af9fe31d27 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -1134,8 +1134,10 @@ public final class BluetoothAdapter { } /** - * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of - * the local Bluetooth adapter. + * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of the local Bluetooth + * adapter. + * + * <p>Note: This value persists across system reboot. * * @param bluetoothClass {@link BluetoothClass} to set the local Bluetooth adapter to. * @return true if successful, false if unsuccessful. diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 00c08c2750d9..721d62beef0e 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -7403,6 +7403,13 @@ public final class Settings { public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS = "airplane_mode_toggleable_radios"; /** + * An integer representing the Bluetooth Class of Device (CoD). + * + * @hide + */ + public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device"; + + /** * A Long representing a bitmap of profiles that should be disabled when bluetooth starts. * See {@link android.bluetooth.BluetoothProfile}. * {@hide} |