DozeLog: fix notification trigger logging

Test: receive notification, make sure pulse gets logged
Change-Id: I375c01201dad3fd4237c1deae4606974aa2cb54a
This commit is contained in:
Adrian Roos
2016-11-07 13:24:31 -08:00
parent ca67fa44ff
commit 181c320ee4
2 changed files with 3 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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() {