Loading service/java/com/android/server/bluetooth/BluetoothManagerService.java +37 −46 Original line number Diff line number Diff line Loading @@ -1740,7 +1740,6 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { IBinder mService; ComponentName mClassName; Intent mIntent; boolean mInvokingProxyCallbacks = false; ProfileServiceConnections(Intent intent) { mService = null; Loading Loading @@ -1832,12 +1831,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { Log.e(TAG, "Unable to linkToDeath", e); } if (mInvokingProxyCallbacks) { Log.e(TAG, "Proxy callbacks already in progress."); return; } mInvokingProxyCallbacks = true; synchronized (mProxies) { final int n = mProxies.beginBroadcast(); try { for (int i = 0; i < n; i++) { Loading @@ -1849,7 +1843,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { } } finally { mProxies.finishBroadcast(); mInvokingProxyCallbacks = false; } } } Loading @@ -1866,24 +1860,19 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { mService = null; mClassName = null; if (mInvokingProxyCallbacks) { Log.e(TAG, "Proxy callbacks already in progress."); return; } mInvokingProxyCallbacks = true; synchronized (mProxies) { final int n = mProxies.beginBroadcast(); try { for (int i = 0; i < n; i++) { try { mProxies.getBroadcastItem(i).onServiceDisconnected(className); } catch (RemoteException e) { Log.e(TAG, "Unable to disconnect from proxy", e); Log.e(TAG, "Unable to disconnect from proxy #" + i, e); } } } finally { mProxies.finishBroadcast(); mInvokingProxyCallbacks = false; } } } Loading @@ -1901,6 +1890,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { } private void sendBluetoothStateCallback(boolean isUp) { synchronized (mStateChangeCallbacks) { try { int n = mStateChangeCallbacks.beginBroadcast(); if (DBG) { Loading @@ -1918,6 +1908,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { mStateChangeCallbacks.finishBroadcast(); } } } /** * Inform BluetoothAdapter instances that Adapter service is up Loading Loading
service/java/com/android/server/bluetooth/BluetoothManagerService.java +37 −46 Original line number Diff line number Diff line Loading @@ -1740,7 +1740,6 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { IBinder mService; ComponentName mClassName; Intent mIntent; boolean mInvokingProxyCallbacks = false; ProfileServiceConnections(Intent intent) { mService = null; Loading Loading @@ -1832,12 +1831,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { Log.e(TAG, "Unable to linkToDeath", e); } if (mInvokingProxyCallbacks) { Log.e(TAG, "Proxy callbacks already in progress."); return; } mInvokingProxyCallbacks = true; synchronized (mProxies) { final int n = mProxies.beginBroadcast(); try { for (int i = 0; i < n; i++) { Loading @@ -1849,7 +1843,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { } } finally { mProxies.finishBroadcast(); mInvokingProxyCallbacks = false; } } } Loading @@ -1866,24 +1860,19 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { mService = null; mClassName = null; if (mInvokingProxyCallbacks) { Log.e(TAG, "Proxy callbacks already in progress."); return; } mInvokingProxyCallbacks = true; synchronized (mProxies) { final int n = mProxies.beginBroadcast(); try { for (int i = 0; i < n; i++) { try { mProxies.getBroadcastItem(i).onServiceDisconnected(className); } catch (RemoteException e) { Log.e(TAG, "Unable to disconnect from proxy", e); Log.e(TAG, "Unable to disconnect from proxy #" + i, e); } } } finally { mProxies.finishBroadcast(); mInvokingProxyCallbacks = false; } } } Loading @@ -1901,6 +1890,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { } private void sendBluetoothStateCallback(boolean isUp) { synchronized (mStateChangeCallbacks) { try { int n = mStateChangeCallbacks.beginBroadcast(); if (DBG) { Loading @@ -1918,6 +1908,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub { mStateChangeCallbacks.finishBroadcast(); } } } /** * Inform BluetoothAdapter instances that Adapter service is up Loading