OSDN Git Service

Always queue A2DP connection state message with wakelock held
authorJean-Michel Trivi <jmtrivi@google.com>
Wed, 6 Jun 2012 17:51:58 +0000 (10:51 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Wed, 6 Jun 2012 18:33:48 +0000 (11:33 -0700)
commite12c39bb9cedb8b363658979872694eb55b1386e
treef15b0d740538a7d2f0f959631c5aedc554bacaa4
parentb215726a0e46400c8dbc4a585c2f4200c7a619b6
Always queue A2DP connection state message with wakelock held

Messages for changes to A2DP connection state are intended to be
 queued in AudioService after acquiring a wake lock, which is
 released after the message has been handled.
This was correctly done for connection messages when the system
 is up and running, but wasn't when the BluetoothProfile service
 listener gets an onServiceConnected() event, which is the case
 the the device boots.
This change correctly uses the queueMsgUnderWakeLock() method
 whenever a MSG_SET_A2DP_CONNECTION_STATE is to be sent.

Bug 6616292

Change-Id: Ie337a4641a89c522e2d233bccaac4e08ce324117
media/java/android/media/AudioService.java