Searched refs:getTimeInForegroundMs (Results 1 – 10 of 10) sorted by relevance
212 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_app()225 assertThat(entry.getTimeInForegroundMs()).isEqualTo(100L); in getTimeInForegroundMs_aggregateBatteryConsumer()
93 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()
67 when(mMockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in testConstructor_contentValues_returnsExpectedResult()
1923 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()
182 doReturn(1L).when(mMockBatteryEntry3).getTimeInForegroundMs(); in sendBatteryEntryData_returnsExpectedList()
169 when(mBatteryEntry.getTimeInForegroundMs()).thenReturn(FOREGROUND_TIME_MS); in setUp()
442 public long getTimeInForegroundMs() { in getTimeInForegroundMs() method in BatteryEntry
656 .setForegroundUsageTimeInMs(entry.getTimeInForegroundMs()) in constructBatteryInformation()
696 final long foregroundMs = entry.getTimeInForegroundMs(); in sendBatteryEntryData()
1096 final long foregroundMs = entry.getTimeInForegroundMs(); in convertToBatteryHistEntry()