aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorPulkit Bhuwalka <pulkitb@google.com>2017-09-25 17:55:12 -0700
committerPulkit Bhuwalka <pulkitb@google.com>2017-10-22 15:36:06 -0700
commitdba34c5da02e483e3e98c9a202497d060f463cf0 (patch)
tree8d204222dff934bb6f16ed61a3afc7f154234052 /framework/java/android/bluetooth/BluetoothAdapter.java
parentbb67ea63f516f1f69ea64a7e30cca259006de8ae (diff)
Persist Bluetooth CoD config value across reboot
Create new Settings key for storage and update the API doc. Bug: 36015415 Test: Verified by storing a value through a test app and restarting the machine to ensure it's picked up. Change-Id: I94aa054e525c4656bb3a824a29cae9c88f8904e0
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothAdapter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java
index 84765f6d72..5c26232726 100644
--- a/framework/java/android/bluetooth/BluetoothAdapter.java
+++ b/framework/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.