OSDN Git Service

Replace priority with connectionPolicy in aidl
authorRahul Sabnis <rahulsabnis@google.com>
Thu, 28 Nov 2019 02:06:09 +0000 (18:06 -0800)
committerRahul Sabnis <rahulsabnis@google.com>
Thu, 28 Nov 2019 02:06:09 +0000 (18:06 -0800)
Bug: 145005327
Test: Manual
Change-Id: I3d028b9759ee3ecfaf9d847cf422a8e9f7d2a07b

binder/android/bluetooth/IBluetoothA2dp.aidl
binder/android/bluetooth/IBluetoothA2dpSink.aidl
binder/android/bluetooth/IBluetoothHeadset.aidl
binder/android/bluetooth/IBluetoothHeadsetClient.aidl
binder/android/bluetooth/IBluetoothHearingAid.aidl
binder/android/bluetooth/IBluetoothHidHost.aidl
binder/android/bluetooth/IBluetoothMap.aidl
binder/android/bluetooth/IBluetoothMapClient.aidl
binder/android/bluetooth/IBluetoothPbapClient.aidl
binder/android/bluetooth/IBluetoothSap.aidl

index 9cbd9ca..3b406cc 100644 (file)
@@ -39,9 +39,8 @@ interface IBluetoothA2dp {
     int getConnectionState(in BluetoothDevice device);
     boolean setActiveDevice(in BluetoothDevice device);
     BluetoothDevice getActiveDevice();
-    boolean setPriority(in BluetoothDevice device, int priority);
-    @UnsupportedAppUsage
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     boolean isAvrcpAbsoluteVolumeSupported();
     oneway void setAvrcpAbsoluteVolume(int volume);
     boolean isA2dpPlaying(in BluetoothDevice device);
index 557eefc..946b8f4 100644 (file)
@@ -31,7 +31,7 @@ interface IBluetoothA2dpSink {
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
     BluetoothAudioConfig getAudioConfig(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     boolean isA2dpPlaying(in BluetoothDevice device);
 }
index c59cab1..bc8fa05 100644 (file)
@@ -46,10 +46,8 @@ interface IBluetoothHeadset {
     boolean connect(in BluetoothDevice device);
     @UnsupportedAppUsage
     boolean disconnect(in BluetoothDevice device);
-    @UnsupportedAppUsage
-    boolean setPriority(in BluetoothDevice device, int priority);
-    @UnsupportedAppUsage
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     int getAudioState(in BluetoothDevice device);
     boolean isAudioOn();
     boolean connectAudio();
index 6341af4..f767b27 100644 (file)
@@ -32,8 +32,8 @@ interface IBluetoothHeadsetClient {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
 
     boolean startVoiceRecognition(in BluetoothDevice device);
     boolean stopVoiceRecognition(in BluetoothDevice device);
index ad14192..9ea9dae 100644 (file)
@@ -32,8 +32,8 @@ interface IBluetoothHearingAid {
     int getConnectionState(in BluetoothDevice device);
     boolean setActiveDevice(in BluetoothDevice device);
     List<BluetoothDevice> getActiveDevices();
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     void adjustVolume(int direction);
     void setVolume(int volume);
     int getVolume();
index 609da1b..ca3e33c 100644 (file)
@@ -30,8 +30,8 @@ interface IBluetoothHidHost {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     /**
     * @hide
     */
index 1274787..4f221e4 100644 (file)
@@ -31,6 +31,6 @@ interface IBluetoothMap {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
 }
index 54e2dd7..3da40d3 100644 (file)
@@ -32,8 +32,8 @@ interface IBluetoothMapClient {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device,in int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device,in int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
     boolean sendMessage(in BluetoothDevice device, in Uri[] contacts, in  String message,
         in PendingIntent sentIntent, in PendingIntent deliveryIntent);
     boolean getUnreadMessages(in BluetoothDevice device);
index 52f9845..e4bfc4e 100644 (file)
@@ -29,6 +29,6 @@ interface IBluetoothPbapClient {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
 }
index 0ea7afb..00f1f1a 100644 (file)
@@ -32,6 +32,6 @@ interface IBluetoothSap {
     List<BluetoothDevice> getConnectedDevices();
     List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
     int getConnectionState(in BluetoothDevice device);
-    boolean setPriority(in BluetoothDevice device, int priority);
-    int getPriority(in BluetoothDevice device);
+    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
+    int getConnectionPolicy(in BluetoothDevice device);
 }