Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 433d3bfe authored by Zhen Zhang's avatar Zhen Zhang
Browse files

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
parent 5e024acb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);