Home
last modified time | relevance | path

Searched refs:backgroundUsageTimeInMs (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DConvertUtils.java236 long backgroundUsageTimeInMs = in getIndexedUsageMap() local
248 && backgroundUsageTimeInMs == 0 in getIndexedUsageMap()
260 foregroundUsageTimeInMs + backgroundUsageTimeInMs; in getIndexedUsageMap()
266 Duration.ofMillis(backgroundUsageTimeInMs).getSeconds(), in getIndexedUsageMap()
271 backgroundUsageTimeInMs = in getIndexedUsageMap()
272 Math.round(backgroundUsageTimeInMs * ratio); in getIndexedUsageMap()
280 backgroundUsageTimeInMs, in getIndexedUsageMap()
DBatteryChartPreferenceController.java514 final long backgroundUsageTimeInMs = entry.mBackgroundUsageTimeInMs; in setPreferenceSummary() local
515 final long totalUsageTimeInMs = foregroundUsageTimeInMs + backgroundUsageTimeInMs; in setPreferenceSummary()
526 } else if (foregroundUsageTimeInMs == 0 && backgroundUsageTimeInMs != 0) { in setPreferenceSummary()
527 usageTimeSummary = buildUsageTimeInfo(backgroundUsageTimeInMs, true); in setPreferenceSummary()
534 if (backgroundUsageTimeInMs > 0) { in setPreferenceSummary()
536 "\n" + buildUsageTimeInfo(backgroundUsageTimeInMs, true); in setPreferenceSummary()
605 final long backgroundUsageTimeInMs = entry.mBackgroundUsageTimeInMs; in validateUsageTime() local
606 final long totalUsageTimeInMs = foregroundUsageTimeInMs + backgroundUsageTimeInMs; in validateUsageTime()
608 || backgroundUsageTimeInMs > VALID_USAGE_TIME_DURATION in validateUsageTime()
DBatteryHistEntry.java126 long backgroundUsageTimeInMs, in BatteryHistEntry() argument
140 mBackgroundUsageTimeInMs = backgroundUsageTimeInMs; in BatteryHistEntry()
312 final double backgroundUsageTimeInMs = interpolate( in interpolate() local
319 || upperHistEntry.mBackgroundUsageTimeInMs < backgroundUsageTimeInMs) { in interpolate()
341 Math.round(backgroundUsageTimeInMs), in interpolate()
DBatteryDiffEntry.java70 long backgroundUsageTimeInMs, in BatteryDiffEntry() argument
76 mBackgroundUsageTimeInMs = backgroundUsageTimeInMs; in BatteryDiffEntry()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHistEntryTest.java272 long backgroundUsageTimeInMs, in assertBatteryHistEntry() argument
288 assertThat(entry.mBackgroundUsageTimeInMs).isEqualTo(backgroundUsageTimeInMs); in assertBatteryHistEntry()
305 long backgroundUsageTimeInMs, in createBatteryHistEntry() argument
341 Long.valueOf(backgroundUsageTimeInMs), in createBatteryHistEntry()
DConvertUtilsTest.java405 long uid, long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in createBatteryHistEntry() argument
417 Long.valueOf(backgroundUsageTimeInMs)); in createBatteryHistEntry()
423 long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in assertBatteryDiffEntry() argument
426 assertThat(entry.mBackgroundUsageTimeInMs).isEqualTo(backgroundUsageTimeInMs); in assertBatteryDiffEntry()
DBatteryChartPreferenceControllerTest.java714 long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in createBatteryDiffEntry() argument
716 mContext, foregroundUsageTimeInMs, backgroundUsageTimeInMs, in createBatteryDiffEntry()