diff options
author | Ajay Panicker <apanicke@google.com> | 2018-03-16 04:00:27 -0700 |
---|---|---|
committer | Ajay Panicker <apanicke@google.com> | 2018-03-16 18:22:00 +0000 |
commit | bfcc00d027dc32e25c9c309120af8d5281988219 (patch) | |
tree | 3b55a2042d809960dc63d4638410c77c45edba2d /framework/java/android/bluetooth/BluetoothProfile.java | |
parent | 5a96fe77b8727c8077f82007af1a87d4ff7aeacb (diff) |
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
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothProfile.java | 61 |
1 files changed, 34 insertions, 27 deletions
diff --git a/framework/java/android/bluetooth/BluetoothProfile.java b/framework/java/android/bluetooth/BluetoothProfile.java index 656188fbdf..6aeb94da11 100644 --- a/framework/java/android/bluetooth/BluetoothProfile.java +++ b/framework/java/android/bluetooth/BluetoothProfile.java @@ -38,7 +38,7 @@ public interface BluetoothProfile { * This extra represents the current connection state of the profile of the * 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. @@ -46,123 +46,130 @@ public interface BluetoothProfile { * This extra represents the previous connection state of the profile of the * Bluetooth device. */ - public static final String EXTRA_PREVIOUS_STATE = + String EXTRA_PREVIOUS_STATE = "android.bluetooth.profile.extra.PREVIOUS_STATE"; /** The profile is in disconnected state */ - public static final int STATE_DISCONNECTED = 0; + int STATE_DISCONNECTED = 0; /** The profile is in connecting state */ - public static final int STATE_CONNECTING = 1; + int STATE_CONNECTING = 1; /** The profile is in connected state */ - public static final int STATE_CONNECTED = 2; + int STATE_CONNECTED = 2; /** The profile is in disconnecting state */ - public static final int STATE_DISCONNECTING = 3; + int STATE_DISCONNECTING = 3; /** * Headset and Handsfree profile */ - public static final int HEADSET = 1; + int HEADSET = 1; /** * A2DP profile. */ - public static final int A2DP = 2; + int A2DP = 2; /** * Health Profile */ - public static final int HEALTH = 3; + int HEALTH = 3; /** * HID Host * * @hide */ - public static final int HID_HOST = 4; + int HID_HOST = 4; /** * PAN Profile * * @hide */ - public static final int PAN = 5; + int PAN = 5; /** * PBAP * * @hide */ - public static final int PBAP = 6; + int PBAP = 6; /** * GATT */ - public static final int GATT = 7; + int GATT = 7; /** * GATT_SERVER */ - public static final int GATT_SERVER = 8; + int GATT_SERVER = 8; /** * MAP Profile * * @hide */ - public static final int MAP = 9; + int MAP = 9; /* * SAP Profile * @hide */ - public static final int SAP = 10; + int SAP = 10; /** * A2DP Sink Profile * * @hide */ - public static final int A2DP_SINK = 11; + int A2DP_SINK = 11; /** * AVRCP Controller Profile * * @hide */ - public static final int AVRCP_CONTROLLER = 12; + int AVRCP_CONTROLLER = 12; + + /** + * AVRCP Target Profile + * + * @hide + */ + int AVRCP = 13; /** * Headset Client - HFP HF Role * * @hide */ - public static final int HEADSET_CLIENT = 16; + int HEADSET_CLIENT = 16; /** * PBAP Client * * @hide */ - public static final int PBAP_CLIENT = 17; + int PBAP_CLIENT = 17; /** * MAP Messaging Client Equipment (MCE) * * @hide */ - public static final int MAP_CLIENT = 18; + int MAP_CLIENT = 18; /** * HID Device */ - public static final int HID_DEVICE = 19; + int HID_DEVICE = 19; /** * Object Push Profile (OPP) * * @hide */ - public static final int OPP = 20; + int OPP = 20; /** * Hearing Aid Device @@ -185,7 +192,7 @@ public interface BluetoothProfile { * * @hide **/ - public static final int PRIORITY_AUTO_CONNECT = 1000; + int PRIORITY_AUTO_CONNECT = 1000; /** * Default priority for devices that allow incoming @@ -194,7 +201,7 @@ public interface BluetoothProfile { * @hide **/ @SystemApi - public static final int PRIORITY_ON = 100; + int PRIORITY_ON = 100; /** * Default priority for devices that does not allow incoming @@ -203,14 +210,14 @@ public interface BluetoothProfile { * @hide **/ @SystemApi - public static final int PRIORITY_OFF = 0; + int PRIORITY_OFF = 0; /** * Default priority when not set or when the device is unpaired * * @hide */ - public static final int PRIORITY_UNDEFINED = -1; + int PRIORITY_UNDEFINED = -1; /** * Get connected devices for this specific profile. |