Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39c4028 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioDeviceInventory: fix Bluetooth profile disconnection metrics" into udc-qpr-dev

parents 5a7cdcec 105dd7e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -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(
@@ -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));
        }
        }
@@ -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(
@@ -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,