Searched refs:assertApproximateTimeInState (Results 1 – 1 of 1) sorted by relevance
197 assertApproximateTimeInState(STATE_TIME_FOREGROUND_INDEX, TIME_SPENT_IN_FOREGROUND); in testUidForegroundDuration()207 assertApproximateTimeInState(STATE_TIME_BACKGROUND_INDEX, TIME_SPENT_IN_BACKGROUND); in testUidBackgroundDuration()219 assertApproximateTimeInState(STATE_TIME_TOP_INDEX, TIME_SPENT_IN_TOP); in testTopDuration()230 assertApproximateTimeInState(STATE_TIME_CACHED_INDEX, TIME_SPENT_IN_CACHED); in testCachedDuration()509 private void assertApproximateTimeInState(int index, long duration) throws Exception { in assertApproximateTimeInState() method in BatteryStatsValidationTest