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

Commit b8adca89 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BluetoothMetrics: Keep intent of counter metrics inside bluetooth" am:...

Merge "BluetoothMetrics: Keep intent of counter metrics inside bluetooth" am: bfa78e4c am: 89358b97

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1917078

Change-Id: Ieb5c629d5312929f03ad5908094b3753de55c8f8
parents 152e63d6 89358b97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public class MetricsLogger {
     * Intent indicating Bluetooth counter metrics should send logs to BluetoothStatsLog
     */
    public static final String BLUETOOTH_COUNTER_METRICS_ACTION =
            "com.android.bluetooth.map.BLUETOOTH_COUNTER_METRICS_ACTION";
            "com.android.bluetooth.btservice.BLUETOOTH_COUNTER_METRICS_ACTION";
    // 6 hours timeout for counter metrics
    private static final long BLUETOOTH_COUNTER_METRICS_ACTION_DURATION_MILLIS = 6L * 3600L * 1000L;

@@ -205,6 +205,7 @@ public class MetricsLogger {

    private PendingIntent getDrainIntent() {
        Intent counterMetricsIntent = new Intent(BLUETOOTH_COUNTER_METRICS_ACTION);
        counterMetricsIntent.setPackage("com.android.bluetooth");
        return PendingIntent.getBroadcast(
                mContext, 0, counterMetricsIntent, PendingIntent.FLAG_IMMUTABLE);
    }