OSDN Git Service

HfpClientConnectionService does not synchronize state
authorSanket Agarwal <sanketa@google.com>
Tue, 26 Apr 2016 22:35:43 +0000 (15:35 -0700)
committerSanket Agarwal <sanketa@google.com>
Sat, 7 May 2016 01:37:26 +0000 (01:37 +0000)
commita8fc504fed7dcb5dc074980b9d4cfa7a56445424
tree9960e87d87e7dd2ecc077ccdbb1bfc069d61da12
parent0fcd081cccbf624a3a886fe4eb68adc3498e695c
HfpClientConnectionService does not synchronize state

Currently active device is a synchronizable state and the current
implementation was simply waiving it. Also the mechanism to create a
phone account was invalid since the PhoneAccountHandle was not unique
per device. PhoneAccountHandle not being unique is OK for now but fails
in case of multiple devices.

Bug: b/28068989
Change-Id: I729df5aa110a428b8ce23cf6658d81c5acbc16a2
src/com/android/bluetooth/hfpclient/HeadsetClientService.java
src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
src/com/android/bluetooth/hfpclient/connserv/HfpClientConnectionService.java