commit | 459978de76c5d152208538f61180e4a790c6e8d9 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Wed May 31 17:26:45 2017 -0700 |
committer | Pavlin Radoslavov <pavlin@google.com> | Wed May 31 17:39:49 2017 -0700 |
tree | 3a9e93722c524bfd64c267cf8d06e0345c0f1d26 | |
parent | fd12816a6e1c83252852be9fe49afd2af25e7fb9 [diff] |
Improve internal state synchronization of the A2dpStateMachine * Don't block entering Disconnected state If the mCurrentDevice or mTargetDevice or mIncomingDevice is not null, print an error message and reset the state * Add consistency checks when entering each state: Disconnected, Pending, Connected * Add a missing "synchronized" statement Bug: 62164051 Test: Manual Change-Id: I5856a88e58b42aa55d9075aa507bfa706ea52512