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
This commit is contained in:
@@ -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.
|
||||
@@ -9744,6 +9747,14 @@ public final class Settings {
|
||||
return BLUETOOTH_PAN_PRIORITY_PREFIX + address.toUpperCase(Locale.ROOT);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user