DozeLog: fix notification trigger logging
Test: receive notification, make sure pulse gets logged Change-Id: I375c01201dad3fd4237c1deae4606974aa2cb54a
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user