OSDN Git Service

Synchronize access to ServiceDeclaration fields.
authorCalvin On <con@google.com>
Wed, 20 Apr 2016 02:17:50 +0000 (19:17 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 22 Apr 2016 20:59:55 +0000 (20:59 +0000)
commitf8ecbbb375c6a41895e0144d8d8cd42587891570
tree2d7b0928f3b75b6b15bd60ca4a92831204c0cbdf
parent2fc493d0ea2b504df25d783a488dfadfe301329e
Synchronize access to ServiceDeclaration fields.

ServiceDeclaration objects are accessed by both the binder thread
(addService, addCharacteristic, etc) and the GattService callback thread
(onServiceAdded, etc) and so must be made thread-safe.

Bug: 28201656
Change-Id: Ic2e4b5c21dafceb62f33738b781f908f502f60b3
src/com/android/bluetooth/gatt/ServiceDeclaration.java