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

Commit d11e081d authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Add the AVRCP Target Service (2/2)

Add the AVRCP Target constant to Bluetooth Profile. Also remove redundant
public static final modifier on the constants.

Bug: 68854188
Test: Compiles and local test with service enabled
Change-Id: If2ec607fc704c225f8903d438fe970dfafac25f1
(cherry picked from commit 38c3073ba2532db7b5adf5f7f96cef847771c41b)
Merged-In: If2ec607fc704c225f8903d438fe970dfafac25f1
parent e02c66ef
Loading
Loading
Loading
Loading
+34 −27
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ public interface BluetoothProfile {
     * This extra represents the current connection state of the profile of the
     * This extra represents the current connection state of the profile of the
     * Bluetooth device.
     * Bluetooth device.
     */
     */
    public static final String EXTRA_STATE = "android.bluetooth.profile.extra.STATE";
    String EXTRA_STATE = "android.bluetooth.profile.extra.STATE";


    /**
    /**
     * Extra for the connection state intents of the individual profiles.
     * Extra for the connection state intents of the individual profiles.
@@ -46,123 +46,130 @@ public interface BluetoothProfile {
     * This extra represents the previous connection state of the profile of the
     * This extra represents the previous connection state of the profile of the
     * Bluetooth device.
     * Bluetooth device.
     */
     */
    public static final String EXTRA_PREVIOUS_STATE =
    String EXTRA_PREVIOUS_STATE =
            "android.bluetooth.profile.extra.PREVIOUS_STATE";
            "android.bluetooth.profile.extra.PREVIOUS_STATE";


    /** The profile is in disconnected state */
    /** The profile is in disconnected state */
    public static final int STATE_DISCONNECTED = 0;
    int STATE_DISCONNECTED = 0;
    /** The profile is in connecting state */
    /** The profile is in connecting state */
    public static final int STATE_CONNECTING = 1;
    int STATE_CONNECTING = 1;
    /** The profile is in connected state */
    /** The profile is in connected state */
    public static final int STATE_CONNECTED = 2;
    int STATE_CONNECTED = 2;
    /** The profile is in disconnecting state */
    /** The profile is in disconnecting state */
    public static final int STATE_DISCONNECTING = 3;
    int STATE_DISCONNECTING = 3;


    /**
    /**
     * Headset and Handsfree profile
     * Headset and Handsfree profile
     */
     */
    public static final int HEADSET = 1;
    int HEADSET = 1;


    /**
    /**
     * A2DP profile.
     * A2DP profile.
     */
     */
    public static final int A2DP = 2;
    int A2DP = 2;


    /**
    /**
     * Health Profile
     * Health Profile
     */
     */
    public static final int HEALTH = 3;
    int HEALTH = 3;


    /**
    /**
     * HID Host
     * HID Host
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int HID_HOST = 4;
    int HID_HOST = 4;


    /**
    /**
     * PAN Profile
     * PAN Profile
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int PAN = 5;
    int PAN = 5;


    /**
    /**
     * PBAP
     * PBAP
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int PBAP = 6;
    int PBAP = 6;


    /**
    /**
     * GATT
     * GATT
     */
     */
    public static final int GATT = 7;
    int GATT = 7;


    /**
    /**
     * GATT_SERVER
     * GATT_SERVER
     */
     */
    public static final int GATT_SERVER = 8;
    int GATT_SERVER = 8;


    /**
    /**
     * MAP Profile
     * MAP Profile
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int MAP = 9;
    int MAP = 9;


    /*
    /*
     * SAP Profile
     * SAP Profile
     * @hide
     * @hide
     */
     */
    public static final int SAP = 10;
    int SAP = 10;


    /**
    /**
     * A2DP Sink Profile
     * A2DP Sink Profile
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int A2DP_SINK = 11;
    int A2DP_SINK = 11;


    /**
    /**
     * AVRCP Controller Profile
     * AVRCP Controller Profile
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int AVRCP_CONTROLLER = 12;
    int AVRCP_CONTROLLER = 12;

    /**
     * AVRCP Target Profile
     *
     * @hide
     */
    int AVRCP = 13;


    /**
    /**
     * Headset Client - HFP HF Role
     * Headset Client - HFP HF Role
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int HEADSET_CLIENT = 16;
    int HEADSET_CLIENT = 16;


    /**
    /**
     * PBAP Client
     * PBAP Client
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int PBAP_CLIENT = 17;
    int PBAP_CLIENT = 17;


    /**
    /**
     * MAP Messaging Client Equipment (MCE)
     * MAP Messaging Client Equipment (MCE)
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int MAP_CLIENT = 18;
    int MAP_CLIENT = 18;


    /**
    /**
     * HID Device
     * HID Device
     */
     */
    public static final int HID_DEVICE = 19;
    int HID_DEVICE = 19;


    /**
    /**
     * Object Push Profile (OPP)
     * Object Push Profile (OPP)
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int OPP = 20;
    int OPP = 20;


    /**
    /**
     * Hearing Aid Device
     * Hearing Aid Device
@@ -185,7 +192,7 @@ public interface BluetoothProfile {
     *
     *
     * @hide
     * @hide
     **/
     **/
    public static final int PRIORITY_AUTO_CONNECT = 1000;
    int PRIORITY_AUTO_CONNECT = 1000;


    /**
    /**
     * Default priority for devices that allow incoming
     * Default priority for devices that allow incoming
@@ -194,7 +201,7 @@ public interface BluetoothProfile {
     * @hide
     * @hide
     **/
     **/
    @SystemApi
    @SystemApi
    public static final int PRIORITY_ON = 100;
    int PRIORITY_ON = 100;


    /**
    /**
     * Default priority for devices that does not allow incoming
     * Default priority for devices that does not allow incoming
@@ -203,14 +210,14 @@ public interface BluetoothProfile {
     * @hide
     * @hide
     **/
     **/
    @SystemApi
    @SystemApi
    public static final int PRIORITY_OFF = 0;
    int PRIORITY_OFF = 0;


    /**
    /**
     * Default priority when not set or when the device is unpaired
     * Default priority when not set or when the device is unpaired
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int PRIORITY_UNDEFINED = -1;
    int PRIORITY_UNDEFINED = -1;


    /**
    /**
     * Get connected devices for this specific profile.
     * Get connected devices for this specific profile.