summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatish Kodishala <skodisha@codeaurora.org>2015-05-27 18:45:27 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:27:29 -0600
commit94a0bb20d7fe600a33d72e178afd4059200ff7c6 (patch)
treed35294a08745f9e93e874030bb98f903c82845f7
parent72e450e147b21bf8ac921706935e7ee245f7a44c (diff)
downloadframeworks_base-94a0bb20d7fe600a33d72e178afd4059200ff7c6.zip
frameworks_base-94a0bb20d7fe600a33d72e178afd4059200ff7c6.tar.gz
frameworks_base-94a0bb20d7fe600a33d72e178afd4059200ff7c6.tar.bz2
Bluetooth: Add support to get AG manufacturer information
Added strings to enable Bluetooth applications to receive AG information broadcasted by Headset Client State Machine. CRs-fixed: 844824 Change-Id: I4156d444d53e8ab862821a5b892d5b49ed83cfc1
-rw-r--r--core/java/android/bluetooth/BluetoothHeadsetClient.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothHeadsetClient.java b/core/java/android/bluetooth/BluetoothHeadsetClient.java
index ff4ebee..10d851f 100644
--- a/core/java/android/bluetooth/BluetoothHeadsetClient.java
+++ b/core/java/android/bluetooth/BluetoothHeadsetClient.java
@@ -100,7 +100,9 @@ public final class BluetoothHeadsetClient implements BluetoothProfile {
* {@link #EXTRA_BATTERY_LEVEL},
* {@link #EXTRA_OPERATOR_NAME},
* {@link #EXTRA_VOICE_RECOGNITION},
- * {@link #EXTRA_IN_BAND_RING}</p>
+ * {@link #EXTRA_IN_BAND_RING}
+ * {@link #EXTRA_MANF_ID}
+ * {@link #EXTRA_MANF_MODEL}</p>
*/
public static final String ACTION_AG_EVENT =
"android.bluetooth.headsetclient.profile.action.AG_EVENT";
@@ -206,6 +208,21 @@ public final class BluetoothHeadsetClient implements BluetoothProfile {
"android.bluetooth.headsetclient.extra.SUBSCRIBER_INFO";
/**
+ * Extra for AG_EVENT intent indicates manufacturer identification.
+ * <p>Value: <code>String</code> containing manufacturer identification.</p>
+ */
+ public static final String EXTRA_MANF_ID =
+ "android.bluetooth.headsetclient.extra.MANF_ID";
+
+ /**
+ * Extra for AG_EVENT intent indicates manufacturer model.
+ * <p>Value: <code>String</code> containing manufacturer model.</p>
+ */
+ public static final String EXTRA_MANF_MODEL =
+ "android.bluetooth.headsetclient.extra.MANF_MODEL";
+
+
+ /**
* Extra for AG_CALL_CHANGED intent indicates the
* {@link BluetoothHeadsetClientCall} object that has changed.
*/