Loading services/core/java/com/android/server/audio/AudioDeviceInventory.java +4 −0 Original line number Diff line number Diff line Loading @@ -1437,6 +1437,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectA2dp") .set(MediaMetrics.Property.EVENT, "disconnectA2dp") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt( Loading @@ -1459,6 +1460,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectA2dpSink") .set(MediaMetrics.Property.EVENT, "disconnectA2dpSink") .record(); toRemove.stream().forEach(deviceAddress -> makeA2dpSrcUnavailable(deviceAddress)); } Loading @@ -1474,6 +1476,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectHearingAid") .set(MediaMetrics.Property.EVENT, "disconnectHearingAid") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt( Loading Loading @@ -1531,6 +1534,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectLeAudio") .set(MediaMetrics.Property.EVENT, "disconnectLeAudio") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt(device, Loading Loading
services/core/java/com/android/server/audio/AudioDeviceInventory.java +4 −0 Original line number Diff line number Diff line Loading @@ -1437,6 +1437,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectA2dp") .set(MediaMetrics.Property.EVENT, "disconnectA2dp") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt( Loading @@ -1459,6 +1460,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectA2dpSink") .set(MediaMetrics.Property.EVENT, "disconnectA2dpSink") .record(); toRemove.stream().forEach(deviceAddress -> makeA2dpSrcUnavailable(deviceAddress)); } Loading @@ -1474,6 +1476,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectHearingAid") .set(MediaMetrics.Property.EVENT, "disconnectHearingAid") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt( Loading Loading @@ -1531,6 +1534,7 @@ public class AudioDeviceInventory { } }); new MediaMetrics.Item(mMetricsId + "disconnectLeAudio") .set(MediaMetrics.Property.EVENT, "disconnectLeAudio") .record(); if (toRemove.size() > 0) { final int delay = checkSendBecomingNoisyIntentInt(device, Loading