OSDN Git Service

Make BluetoothPbap implement BluetoothProfile (3/3)
authorHansong Zhang <hsz@google.com>
Sat, 9 Dec 2017 00:08:34 +0000 (16:08 -0800)
committerHansong Zhang <hsz@google.com>
Sat, 9 Dec 2017 00:08:34 +0000 (16:08 -0800)
Change AIDL method signatures:
* Removed connect()
* Add BluetoothDevice parameter for disconnect()
* Rename other method names to be consistent with BluetoothProfile
methods

Test: test with PBAP carkits
Bug: 69417672
Change-Id: Ide81254d71128b9d204b63aa60bc39752add6edd

binder/android/bluetooth/IBluetoothPbap.aidl

index 763a26e..52caf77 100644 (file)
@@ -24,9 +24,8 @@ import android.bluetooth.BluetoothDevice;
  * {@hide}
  */
 interface IBluetoothPbap {
-    int getState();
-    BluetoothDevice getClient();
-    boolean connect(in BluetoothDevice device);
-    void disconnect();
-    boolean isConnected(in BluetoothDevice device);
+    List<BluetoothDevice> getConnectedDevices();
+    List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
+    int getConnectionState(in BluetoothDevice device);
+    void disconnect(in BluetoothDevice device);
 }