Home
last modified time | relevance | path

Searched refs:getTimeInForegroundMs (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntryTest.java212 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_app()
225 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_aggregateBatteryConsumer()
DConvertUtilsTest.java93 when(mMockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
160 when(mMockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
312 when(mMockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in convertToBatteryHistEntry_returnsExpectedResult()
DBatteryHistEntryTest.java67 when(mMockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in testConstructor_contentValues_returnsExpectedResult()
DDataProcessorTest.java1923 doReturn(30L).when(mMockBatteryEntry1).getTimeInForegroundMs(); in generateBatteryDiffData_returnsExpectedResult()
1932 doReturn(20L).when(mMockBatteryEntry2).getTimeInForegroundMs(); in generateBatteryDiffData_returnsExpectedResult()
1941 doReturn(0L).when(mMockBatteryEntry3).getTimeInForegroundMs(); in generateBatteryDiffData_returnsExpectedResult()
1950 doReturn(10L).when(mMockBatteryEntry4).getTimeInForegroundMs(); in generateBatteryDiffData_returnsExpectedResult()
DDatabaseUtilsTest.java182 doReturn(1L).when(mMockBatteryEntry3).getTimeInForegroundMs(); in sendBatteryEntryData_returnsExpectedList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java169 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(FOREGROUND_TIME_MS); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntry.java442 public long getTimeInForegroundMs() { in getTimeInForegroundMs() method in BatteryEntry
DConvertUtils.java656 .setForegroundUsageTimeInMs(entry.getTimeInForegroundMs()) in constructBatteryInformation()
DDatabaseUtils.java696 final long foregroundMs = entry.getTimeInForegroundMs(); in sendBatteryEntryData()
DDataProcessor.java1096 final long foregroundMs = entry.getTimeInForegroundMs(); in convertToBatteryHistEntry()