OSDN Git Service

Support battery level reporting via Apple VSC (1/2)
authorJack He <siyuanh@google.com>
Wed, 21 Jun 2017 00:09:47 +0000 (17:09 -0700)
committerJack He <siyuanh@google.com>
Fri, 30 Jun 2017 10:41:18 +0000 (10:41 +0000)
* Add related constants to BluetoothHeadset

Bug: 35874078
Test: make, test with supporting headsets
Change-Id: I9f49ea28efdf6de0e751a377d879fe13a47655d5
Merged-In: I9f49ea28efdf6de0e751a377d879fe13a47655d5
(cherry picked from commit 679d0bc8f99145d70af0c8006d807b55110fe3b5)

core/java/android/bluetooth/BluetoothHeadset.java

index 900f005..c84643f 100644 (file)
@@ -203,6 +203,25 @@ public final class BluetoothHeadset implements BluetoothProfile {
      * A vendor-specific AT command
      * @hide
      */
+    public static final String VENDOR_SPECIFIC_HEADSET_EVENT_XAPL = "+XAPL";
+
+    /**
+     * A vendor-specific AT command
+     * @hide
+     */
+    public static final String VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV = "+IPHONEACCEV";
+
+    /**
+     * Battery level indicator associated with
+     * {@link #VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV}
+     * @hide
+     */
+    public static final int VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV_BATTERY_LEVEL = 1;
+
+    /**
+     * A vendor-specific AT command
+     * @hide
+     */
     public static final String VENDOR_SPECIFIC_HEADSET_EVENT_XEVENT = "+XEVENT";
 
     /**