diff options
| author | Alice Kuo <aliceypkuo@google.com> | 2022-08-11 14:15:20 +0800 |
|---|---|---|
| committer | Alice Kuo <aliceypkuo@google.com> | 2022-08-24 18:34:41 +0800 |
| commit | a75fa23d21018aba49f47fbabc352448107ad78a (patch) | |
| tree | baadd00d98283db7868e92f46ba48b9fac684601 /framework/java/android/bluetooth/BluetoothLeAudio.java | |
| parent | 51ac59bb77d78be82b335511036e0af430f4890d (diff) | |
Align the LE audio context type value and naming with SIG assigned number
The previous value and naming is dismatch with the publiched assigned
number, and the stack definition as well.
The patch includes the following modification
1. Correct the context type value
2. Align the naming and comment
3. Change the order based on the context type value
Bug: 240145498
Test: PTS test case and check the context type picker is the same
between bt stack and framework
Change-Id: Ib18d07a64a323791786ad60aa00bcfc0af712552
Merged-In: Ib18d07a64a323791786ad60aa00bcfc0af712552
(cherry picked from commit 56069e28133b031bb5d0e6753490f11788c48b51)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothLeAudio.java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothLeAudio.java | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/framework/java/android/bluetooth/BluetoothLeAudio.java b/framework/java/android/bluetooth/BluetoothLeAudio.java index ea39b64a76..685c08ef7d 100644 --- a/framework/java/android/bluetooth/BluetoothLeAudio.java +++ b/framework/java/android/bluetooth/BluetoothLeAudio.java @@ -233,7 +233,7 @@ public final class BluetoothLeAudio implements BluetoothProfile, AutoCloseable { * Indicates conversation between humans as, for example, in telephony or video calls. * @hide */ - public static final int CONTEXT_TYPE_COMMUNICATION = 0x0002; + public static final int CONTEXT_TYPE_CONVERSATIONAL = 0x0002; /** * Indicates media as, for example, in music, public radio, podcast or video soundtrack. @@ -242,64 +242,66 @@ public final class BluetoothLeAudio implements BluetoothProfile, AutoCloseable { public static final int CONTEXT_TYPE_MEDIA = 0x0004; /** - * Indicates instructional audio as, for example, in navigation, traffic announcements - * or user guidance. + * Indicates audio associated with a video gaming. * @hide */ - public static final int CONTEXT_TYPE_INSTRUCTIONAL = 0x0008; + public static final int CONTEXT_TYPE_GAME = 0x0008; /** - * Indicates attention seeking audio as, for example, in beeps signalling arrival of a message - * or keyboard clicks. + * Indicates instructional audio as, for example, in navigation, announcements or user + * guidance. * @hide */ - public static final int CONTEXT_TYPE_ATTENTION_SEEKING = 0x0010; + public static final int CONTEXT_TYPE_INSTRUCTIONAL = 0x0010; /** - * Indicates immediate alerts as, for example, in a low battery alarm, timer expiry or alarm - * clock. + * Indicates man machine communication as, for example, with voice recognition or virtual + * assistant. * @hide */ - public static final int CONTEXT_TYPE_IMMEDIATE_ALERT = 0x0020; + public static final int CONTEXT_TYPE_VOICE_ASSISTANTS = 0x0020; /** - * Indicates man machine communication as, for example, with voice recognition or virtual - * assistant. + * Indicates audio associated with a live audio stream. + * * @hide */ - public static final int CONTEXT_TYPE_MAN_MACHINE = 0x0040; + public static final int CONTEXT_TYPE_LIVE = 0x0040; /** - * Indicates emergency alerts as, for example, with fire alarms or other urgent alerts. + * Indicates sound effects as, for example, in keyboard, touch feedback; menu and user + * interface sounds, and other system sounds. * @hide */ - public static final int CONTEXT_TYPE_EMERGENCY_ALERT = 0x0080; + public static final int CONTEXT_TYPE_SOUND_EFFECTS = 0x0080; /** - * Indicates ringtone as in a call alert. + * Indicates notification and reminder sounds, attention-seeking audio, for example, in beeps + * signaling the arrival of a message. * @hide */ - public static final int CONTEXT_TYPE_RINGTONE = 0x0100; + public static final int CONTEXT_TYPE_NOTIFICATIONS = 0x0100; + /** - * Indicates audio associated with a television program and/or with metadata conforming to the - * Bluetooth Broadcast TV profile. + * Indicates ringtone as in a call alert. * @hide */ - public static final int CONTEXT_TYPE_TV = 0x0200; + public static final int CONTEXT_TYPE_RINGTONE = 0x0200; /** - * Indicates audio associated with a low latency live audio stream. - * + * Indicates alerts and timers, immediate alerts as, for example, in a low battery alarm, + * timer expiry or alarm clock. * @hide */ - public static final int CONTEXT_TYPE_LIVE = 0x0400; + public static final int CONTEXT_TYPE_ALERTS = 0x0400; + /** - * Indicates audio associated with a video game stream. + * Indicates emergency alarm as, for example, with fire alarms or other urgent alerts. * @hide */ - public static final int CONTEXT_TYPE_GAME = 0x0800; + public static final int CONTEXT_TYPE_EMERGENCY_ALARM = 0x0800; /** * This represents an invalid group ID. |
