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

Commit 2925bdd3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Statsd atom: add packageName to wakeups"

parents 8bc4eafd caf2293e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -769,6 +769,9 @@ message WakeupAlarmOccurred {

    // Name of the wakeup alarm.
    optional string tag = 2;

    // Name of source package (for historical reasons, since BatteryStats tracked it).
    optional string package_name = 3;
}

/**
+3 −2
Original line number Diff line number Diff line
@@ -9431,9 +9431,10 @@ public class ActivityManagerService extends IActivityManager.Stub
        mBatteryStatsService.noteWakupAlarm(sourcePkg, sourceUid, workSource, tag);
        if (workSource != null) {
            StatsLog.write(StatsLog.WAKEUP_ALARM_OCCURRED, workSource, tag);
            StatsLog.write(StatsLog.WAKEUP_ALARM_OCCURRED, workSource, tag, sourcePkg);
        } else {
            StatsLog.write_non_chained(StatsLog.WAKEUP_ALARM_OCCURRED, sourceUid, null, tag);
            StatsLog.write_non_chained(StatsLog.WAKEUP_ALARM_OCCURRED, sourceUid, null, tag,
                    sourcePkg);
        }
    }