summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2017-11-22 10:57:42 -0800
committerJakub Pawlowski <jpawlowski@google.com>2017-11-28 01:03:01 +0000
commitc2d7be6667149ebdcf4091db4e76f9cb7a44e80b (patch)
tree42b6f9a60ad521f9a24bdf106c7e1b1c0029ff68 /core/java
parent4fa582be2471f0c1bfb7ceecb8559b9aea930b53 (diff)
Add persistent state for Hearing Aid Profile
Defines the flag used in code and the Settings.Global key names for persisting state of the Bluetooth Hearing Aid Profile. Test: manual Bug: 69623109 Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/Settings.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 994575545c5c..729c0ff6febb 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -9379,6 +9379,9 @@ public final class Settings {
/** {@hide} */
public static final String
BLUETOOTH_PAN_PRIORITY_PREFIX = "bluetooth_pan_priority_";
+ /** {@hide} */
+ public static final String
+ BLUETOOTH_HEARING_AID_PRIORITY_PREFIX = "bluetooth_hearing_aid_priority_";
/**
* Activity manager specific settings.
@@ -9745,6 +9748,14 @@ public final class Settings {
}
/**
+ * Get the key that retrieves a bluetooth hearing aid priority.
+ * @hide
+ */
+ public static final String getBluetoothHearingAidPriorityKey(String address) {
+ return BLUETOOTH_HEARING_AID_PRIORITY_PREFIX + address.toUpperCase(Locale.ROOT);
+ }
+
+ /**
* Get the key that retrieves a bluetooth map priority.
* @hide
*/