Home
last modified time | relevance | path

Searched refs:TimestampUtils (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DTimestampUtilsTest.java39 assertThat(TimestampUtils.getNextHourTimestamp(1614463200000L)).isEqualTo(1614466800000L); in getNextHourTimestamp_returnExpectedResult()
41 assertThat(TimestampUtils.getNextHourTimestamp(16409663999999L)).isEqualTo(16409664000000L); in getNextHourTimestamp_returnExpectedResult()
47 assertThat(TimestampUtils.getNextEvenHourTimestamp(1614463200000L)) in getNextEvenHourTimestamp_returnExpectedResult()
50 assertThat(TimestampUtils.getNextEvenHourTimestamp(16409663999999L)) in getNextEvenHourTimestamp_returnExpectedResult()
57 assertThat(TimestampUtils.getLastEvenHourTimestamp(1614463206000L)) in getLastEvenHourTimestamp_returnExpectedResult()
60 assertThat(TimestampUtils.getLastEvenHourTimestamp(16409663999999L)) in getLastEvenHourTimestamp_returnExpectedResult()
67 assertThat(TimestampUtils.getNextDayTimestamp(1614463200000L)).isEqualTo(1614528000000L); in getTimestampOfNextDay_returnExpectedResult()
69 assertThat(TimestampUtils.getNextDayTimestamp(1640937600000L)).isEqualTo(1640966400000L); in getTimestampOfNextDay_returnExpectedResult()
75 assertThat(TimestampUtils.isMidnight(1640966400000L)).isTrue(); in isMidnight_returnExpectedResult()
77 assertThat(TimestampUtils.isMidnight(1640970005000L)).isFalse(); in isMidnight_returnExpectedResult()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java206 TimestampUtils.getSeconds(mBootTimestamp))) in toString()
222 TimestampUtils.getSeconds(mForegroundUsageTimeInMs), in toString()
223 TimestampUtils.getSeconds(mForegroundServiceUsageTimeInMs), in toString()
224 TimestampUtils.getSeconds(mBackgroundUsageTimeInMs))) in toString()
DPeriodicJobManager.java105 long targetTimeMillis = TimestampUtils.getNextHourTimestamp(currentTimeMillis); in getTriggerAtMillis()
110 targetTimeMillis = TimestampUtils.getNextHourTimestamp(targetTimeMillis); in getTriggerAtMillis()
DBatteryLevelData.java208 timestamp = TimestampUtils.getNextDayTimestamp(timestamp)) { in getDailyTimestamps()
223 for (long timestamp = TimestampUtils.getNextEvenHourTimestamp(startTime); in getHourlyTimestamps()
DTimestampUtils.java23 final class TimestampUtils { class
DDataProcessManager.java637 && startTimestamp >= TimestampUtils.getLastEvenHourTimestamp(currentTime)) { in getPeriodBatteryLevelData()
667 final long lastEvenHourTimestamp = TimestampUtils.getLastEvenHourTimestamp(currentTime); in getPeriodBatteryLevelData()
DDataProcessor.java473 for (long timestamp = TimestampUtils.getNextHourTimestamp(startTimestamp); in getTimestampSlots()
548 for (Long timestamp = TimestampUtils.getNextHourTimestamp(startTimestamp); in getBatteryDiffDataMap()
1189 && !TimestampUtils.isMidnight(currentSlot)) { in interpolateHistoryForSlot()
DBatteryChartPreferenceController.java669 timestamp = TimestampUtils.getLastEvenHourTimestamp(timestamp);