Loading
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