Merge "AudioDeviceBroker: Log bluetooth service entry" into rvc-dev am: f847d228bb
Change-Id: I8abd564d6731dcd257afff8aebf9b85537b0ec5c
This commit is contained in:
@@ -286,6 +286,13 @@ import java.io.PrintWriter;
|
|||||||
final BtDeviceConnectionInfo info = new BtDeviceConnectionInfo(device, state, profile,
|
final BtDeviceConnectionInfo info = new BtDeviceConnectionInfo(device, state, profile,
|
||||||
suppressNoisyIntent, a2dpVolume);
|
suppressNoisyIntent, a2dpVolume);
|
||||||
|
|
||||||
|
new MediaMetrics.Item(MediaMetrics.Name.AUDIO_DEVICE + MediaMetrics.SEPARATOR
|
||||||
|
+ "postBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent")
|
||||||
|
.set(MediaMetrics.Property.STATE, state == BluetoothProfile.STATE_CONNECTED
|
||||||
|
? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED)
|
||||||
|
.set(MediaMetrics.Property.INDEX, a2dpVolume)
|
||||||
|
.record();
|
||||||
|
|
||||||
// operations of removing and posting messages related to A2DP device state change must be
|
// operations of removing and posting messages related to A2DP device state change must be
|
||||||
// mutually exclusive
|
// mutually exclusive
|
||||||
synchronized (mDeviceStateLock) {
|
synchronized (mDeviceStateLock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user