Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 452dc405 authored by Satish Kodishala's avatar Satish Kodishala Committed by Linux Build Service Account
Browse files

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
parent 3abdebea
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -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";
@@ -205,6 +207,21 @@ public final class BluetoothHeadsetClient implements BluetoothProfile {
    public static final String EXTRA_SUBSCRIBER_INFO =
            "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.