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

Commit 181c320e authored by Adrian Roos's avatar Adrian Roos
Browse files

DozeLog: fix notification trigger logging

Test: receive notification, make sure pulse gets logged
Change-Id: I375c01201dad3fd4237c1deae4606974aa2cb54a
parent ca67fa44
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -78,10 +78,10 @@ public class DozeLog {
        log("pulseFinish");
    }

    public static void traceNotificationPulse(Context context, long instance) {
    public static void traceNotificationPulse(Context context) {
        if (!ENABLED) return;
        init(context);
        log("notificationPulse instance=" + instance);
        log("notificationPulse");
        sNotificationPulseStats.append();
    }

+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ public class DozeTriggers implements DozeMachine.Part {
        mNotificationPulseTime = SystemClock.elapsedRealtime();
        if (!mConfig.pulseOnNotificationEnabled(UserHandle.USER_CURRENT)) return;
        requestPulse(DozeLog.PULSE_REASON_NOTIFICATION, false /* performedProxCheck */);
        DozeLog.traceNotificationPulse(mContext);
    }

    private void onWhisper() {