Update logging of the USER_LEVEL_HIBERNATION_STATE_CHANGED atom

Update the atom logging as the time_in_last_state_millis field is being
removed.

Bug: 187224817
Test: atest AppHibernationServiceTest
Test: atest CtsStatsdAtomHostTestCases:AppHibernationStatsTest
Test: run statsd_testdrive 370. Run the hibernation job from cmd and see
correct pushed data

Change-Id: I53fa09b8dd822c158db983544500566cc0127837
This commit is contained in:
Zhen Zhang
2021-04-28 15:37:46 -07:00
parent 5e024acb23
commit 433d3bfe69

View File

@@ -296,9 +296,7 @@ public final class AppHibernationService extends SystemService {
FrameworkStatsLog.USER_LEVEL_HIBERNATION_STATE_CHANGED,
stateSnapshot.packageName,
userIdSnapshot,
stateSnapshot.hibernated,
// TODO(b/187224817): This isn't the expected value right now.
stateSnapshot.lastUnhibernatedMs);
stateSnapshot.hibernated);
});
List<UserLevelState> states = new ArrayList<>(mUserStates.get(userId).values());
mUserDiskStores.get(userId).scheduleWriteHibernationStates(states);