Merge "DO NOT MERGE Check apps idle states on time changes" into mnc-dr-dev

am: 7a313a63ca

* commit '7a313a63cac7ae79699a6ea928af92429edd479b':
  DO NOT MERGE Check apps idle states on time changes
This commit is contained in:
Amith Yamasani
2016-02-18 20:16:55 +00:00
committed by android-build-merger

View File

@@ -551,6 +551,7 @@ public class UsageStatsService extends SystemService implements
}
mRealTimeSnapshot = actualRealtime;
mSystemTimeSnapshot = actualSystemTime;
postCheckIdleStates(UserHandle.USER_ALL);
}
return actualSystemTime;
}
@@ -595,7 +596,7 @@ public class UsageStatsService extends SystemService implements
|| event.mEventType == Event.SYSTEM_INTERACTION
|| event.mEventType == Event.USER_INTERACTION)) {
if (previouslyIdle) {
// Slog.d(TAG, "Informing listeners of out-of-idle " + event.mPackage);
//Slog.d(TAG, "Informing listeners of out-of-idle " + event.mPackage);
mHandler.sendMessage(mHandler.obtainMessage(MSG_INFORM_LISTENERS, userId,
/* idle = */ 0, event.mPackage));
notifyBatteryStats(event.mPackage, userId, false);