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