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

Commit 89358b97 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: bfa78e4c

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

Change-Id: Ie50809db9971be383eb826b110119348a1d04d8c
parents a9e5af75 bfa78e4c
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);
    }