Loading services/usage/java/com/android/server/usage/UsageStatsService.java +2 −2 Original line number Diff line number Diff line Loading @@ -347,7 +347,7 @@ public class UsageStatsService extends SystemService implements Slog.i(TAG, "Attempted to unlock stopped or removed user " + userId); return; } userService.userUnlocked(System.currentTimeMillis()); // Process all the pending reported events while (pendingEvents.peek() != null) { reportEvent(pendingEvents.poll(), userId); Loading Loading @@ -466,6 +466,7 @@ public class UsageStatsService extends SystemService implements if (mUserUnlockedStates.get(userId)) { try { service.init(currentTimeMillis); mUserState.put(userId, service); } catch (Exception e) { if (mUserManager.isUserUnlocked(userId)) { throw e; // rethrow exception - user is unlocked Loading @@ -476,7 +477,6 @@ public class UsageStatsService extends SystemService implements } } } mUserState.put(userId, service); } return service; } Loading services/usage/java/com/android/server/usage/UserUsageStatsService.java +0 −4 Original line number Diff line number Diff line Loading @@ -165,10 +165,6 @@ class UserUsageStatsService { } } void userUnlocked(long currentTimeMillis) { init(currentTimeMillis); } void userStopped() { // Flush events to disk immediately to guarantee persistence. persistActiveStats(); Loading Loading
services/usage/java/com/android/server/usage/UsageStatsService.java +2 −2 Original line number Diff line number Diff line Loading @@ -347,7 +347,7 @@ public class UsageStatsService extends SystemService implements Slog.i(TAG, "Attempted to unlock stopped or removed user " + userId); return; } userService.userUnlocked(System.currentTimeMillis()); // Process all the pending reported events while (pendingEvents.peek() != null) { reportEvent(pendingEvents.poll(), userId); Loading Loading @@ -466,6 +466,7 @@ public class UsageStatsService extends SystemService implements if (mUserUnlockedStates.get(userId)) { try { service.init(currentTimeMillis); mUserState.put(userId, service); } catch (Exception e) { if (mUserManager.isUserUnlocked(userId)) { throw e; // rethrow exception - user is unlocked Loading @@ -476,7 +477,6 @@ public class UsageStatsService extends SystemService implements } } } mUserState.put(userId, service); } return service; } Loading
services/usage/java/com/android/server/usage/UserUsageStatsService.java +0 −4 Original line number Diff line number Diff line Loading @@ -165,10 +165,6 @@ class UserUsageStatsService { } } void userUnlocked(long currentTimeMillis) { init(currentTimeMillis); } void userStopped() { // Flush events to disk immediately to guarantee persistence. persistActiveStats(); Loading