Searched refs:getTimeInForegroundMs (Results 1 – 9 of 9) sorted by relevance
104 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(59 * DateUtils.SECOND_IN_MILLIS); in testSetUsageSummary_timeLessThanOneMinute_DoNotSetSummary()112 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(2 * DateUtils.MINUTE_IN_MILLIS); in testSetUsageSummary_timeMoreThanOneMinute_normalApp_setScreenSummary()124 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(2 * DateUtils.MINUTE_IN_MILLIS); in testSetUsageSummary_timeMoreThanOneMinute_GoogleApp_shouldNotSetScreenSummary()138 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(2 * DateUtils.MINUTE_IN_MILLIS); in testSetUsageSummary_timeMoreThanOneMinute_hiddenApp_setUsedSummary()
182 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_app()190 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_aggregateBatteryConsumer()
61 when(mockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in testConstructor_contentValues_returnsExpectedResult()
78 when(mockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in testConvert_returnsExpectedContentValues()
178 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(FOREGROUND_TIME_MS); in setUp()
118 Long.valueOf(entry.getTimeInForegroundMs())); in convert()
418 final long usageTimeMs = entry.getTimeInForegroundMs(); in setUsageSummary()
501 public long getTimeInForegroundMs() { in getTimeInForegroundMs() method in BatteryEntry
170 launchArgs.mForegroundTimeMs = isValidToShowSummary ? entry.getTimeInForegroundMs() : 0; in startBatteryDetailPage()