summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothProfile.java
diff options
context:
space:
mode:
authorSravan voleti <quic_svoleti@quicinc.com>2022-05-10 15:00:47 +0530
committerSravan voleti <quic_svoleti@quicinc.com>2022-05-30 09:53:43 +0530
commit1257075e8ee6b832869ed07f21e63708c3b3f6f2 (patch)
treef3a6af2b864affaaf57db3920bd87b6740901fd5 /framework/java/android/bluetooth/BluetoothProfile.java
parent05493fe1a5ee2badfc26bb51af838daf17ba1edf (diff)
Update profile constants
Update value added Bluetooth profile constants. Bug: 203821845 CRs-Fixed: 3208393 Change-Id: I0da6b52e61ed7b4f408b1f5faf44165a4f868a44
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothProfile.java119
1 files changed, 64 insertions, 55 deletions
diff --git a/framework/java/android/bluetooth/BluetoothProfile.java b/framework/java/android/bluetooth/BluetoothProfile.java
index e527ecd6d5..4b8b52b6da 100644
--- a/framework/java/android/bluetooth/BluetoothProfile.java
+++ b/framework/java/android/bluetooth/BluetoothProfile.java
@@ -217,68 +217,24 @@ public interface BluetoothProfile {
int LE_AUDIO = 22;
/**
- * DUN
- * @hide
- */
- // Temporary fix for b/198947204
- public static final int DUN = 30;
-
- /**
- * Group Operation Profile (Client Role)
- * @hide
- */
- public int GROUP_CLIENT = 24;
-
- /**
- * Broadcast
- * @hide
- */
- public int BROADCAST = 32;
-
- /**
- * VCP
- * @hide
- */
- public static final int VCP = 33;
-
- /**
- * BC_PROFILE
- * @hide
- */
- public static final int BC_PROFILE = 27;
-
- /**
- * PC_PROFILE
- * @hide
- */
- public static final int PC_PROFILE = 28;
-
- /**
- * CC_SERVER
- * @hide
- */
- public static final int CC_SERVER = 29;
-
- /**
* Volume Control profile
*
* @hide
*/
@SystemApi
- // Temporary fix for b/198947204
- public static final int VOLUME_CONTROL = 23;
+ int VOLUME_CONTROL = 23;
- /**
- * MCP_SERVER
+ /**
* @hide
+ * Media Control Profile server
+ *
*/
- public static final int MCP_SERVER = 31;
+ int MCP_SERVER = 24;
/**
* Coordinated Set Identification Profile set coordinator
*
*/
- // Temporary fix for b/203821845
int CSIP_SET_COORDINATOR = 25;
/**
@@ -294,7 +250,7 @@ public interface BluetoothProfile {
* Telephone Bearer Service from Call Control Profile
*
*/
- int LE_CALL_CONTROL = 34;
+ int LE_CALL_CONTROL = 27;
/*
* Hearing Access Profile Client
@@ -318,12 +274,55 @@ public interface BluetoothProfile {
int BATTERY = 30;
/**
+ * DUN
+ * @hide
+ */
+ public int DUN = 31;
+
+ /**
+ * Group Operation Profile (Client Role)
+ * @hide
+ */
+ public int GROUP_CLIENT = 32;
+
+ /**
+ * Broadcast
+ * @hide
+ */
+ public int BROADCAST = 33;
+
+ /**
+ * VCP
+ * @hide
+ */
+ public static final int VCP = 34;
+
+ /**
+ * BC_PROFILE
+ * @hide
+ */
+ public static final int BC_PROFILE = 35;
+
+ /**
+ * PC_PROFILE
+ * @hide
+ */
+ public static final int PC_PROFILE = 36;
+
+ /**
+ * CC_SERVER
+ * @hide
+ */
+ public static final int CC_SERVER = 37;
+
+
+ /**
* Max profile ID. This value should be updated whenever a new profile is added to match
* the largest value assigned to a profile.
*
* @hide
*/
- int MAX_PROFILE_ID = 34;
+ int MAX_PROFILE_ID = 37;
/**
* Default priority for devices that we try to auto-connect to and
@@ -539,16 +538,26 @@ public interface BluetoothProfile {
return "LE_AUDIO_BROADCAST";
case LE_CALL_CONTROL:
return "LE_CALL_CONTROL";
- case BROADCAST:
- return "BROADCAST";
- case VCP:
- return "VCP";
case HAP_CLIENT:
return "HAP_CLIENT";
case LE_AUDIO_BROADCAST_ASSISTANT:
return "LE_AUDIO_BROADCAST_ASSISTANT";
case BATTERY:
return "BATTERY";
+ case BROADCAST:
+ return "BROADCAST";
+ case VCP:
+ return "VCP";
+ case GROUP_CLIENT:
+ return "GROUP_CLIENT";
+ case DUN:
+ return "DUN";
+ case BC_PROFILE:
+ return "BC_PROFILE";
+ case PC_PROFILE:
+ return "PC_PROFILE";
+ case CC_SERVER:
+ return "CC_SERVER";
default:
return "UNKNOWN_PROFILE";
}