OSDN Git Service

Make BluetoothStateChangeCallback oneway to prevent waiting on response.
authorxutianguo <xutianguo@xiaomi.com>
Mon, 22 May 2017 06:03:33 +0000 (14:03 +0800)
committerMarie Janssen <jamuraa@google.com>
Mon, 17 Jul 2017 18:52:24 +0000 (11:52 -0700)
Test: Connected bluetooth devices(included Headset/HID devices), and
made bluetooth enabling/disabling over 1000 times, no other side effect
observed.

Bug: 38485770

Change-Id: Ia3959d2441aece39a79ab2d662b57790a78df674
Signed-off-by: xutianguo <xutianguo@xiaomi.com>
(cherry picked from commit 95e1e21a639318bb3399c394707624393cfa2300)

core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl

index feccdce..0da4e88 100644 (file)
@@ -21,7 +21,7 @@ package android.bluetooth;
  *
  * {@hide}
  */
-interface IBluetoothStateChangeCallback
+oneway interface IBluetoothStateChangeCallback
 {
     void onBluetoothStateChange(boolean on);
 }