From a5325e18df259f940478b3e61573bc35e624feff Mon Sep 17 00:00:00 2001 From: xutianguo Date: Mon, 22 May 2017 14:03:33 +0800 Subject: [PATCH] Make BluetoothStateChangeCallback oneway to prevent waiting on response. 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 (cherry picked from commit 95e1e21a639318bb3399c394707624393cfa2300) --- core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl b/core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl index feccdce57b98a..0da4e8843282b 100644 --- a/core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl +++ b/core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl @@ -21,7 +21,7 @@ package android.bluetooth; * * {@hide} */ -interface IBluetoothStateChangeCallback +oneway interface IBluetoothStateChangeCallback { void onBluetoothStateChange(boolean on); }