OSDN Git Service

Reduced the impact of "synchronized" statements
authorPavlin Radoslavov <pavlin@google.com>
Mon, 23 May 2016 05:16:41 +0000 (22:16 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 24 May 2016 01:17:29 +0000 (01:17 +0000)
commiteb50a39e98acb78d16465041bb5c172aa1637e97
tree8a59a451d99a1a9e5db6f1764fb454ec0017951f
parent9c252700f6686767f5418677800ba171f441dddc
Reduced the impact of "synchronized" statements

* Removed "synchronized" statements that are not needed
* Replaced "synchronized" statements with Read/Write lock as
 appropriate. The lock protects the access to and the setting of
 BluetoothAdapter.mService and BluetoothManagerService.mBluetooth and
 associated state.

Bug: 28734075
Bug: 28799467
Change-Id: I8f8281c505f0a1ae0add1e14a3caba1f5b2a98e4
core/java/android/bluetooth/BluetoothAdapter.java
services/core/java/com/android/server/BluetoothManagerService.java