Searched refs:foregroundUsageTimeInMs (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | ConvertUtils.java | 231 long foregroundUsageTimeInMs = in getIndexedUsageMap() local 247 if (foregroundUsageTimeInMs == 0 in getIndexedUsageMap() 260 foregroundUsageTimeInMs + backgroundUsageTimeInMs; in getIndexedUsageMap() 265 Duration.ofMillis(foregroundUsageTimeInMs).getSeconds(), in getIndexedUsageMap() 269 foregroundUsageTimeInMs = in getIndexedUsageMap() 270 Math.round(foregroundUsageTimeInMs * ratio); in getIndexedUsageMap() 279 foregroundUsageTimeInMs, in getIndexedUsageMap()
|
D | BatteryHistEntry.java | 125 long foregroundUsageTimeInMs, in BatteryHistEntry() argument 139 mForegroundUsageTimeInMs = foregroundUsageTimeInMs; in BatteryHistEntry() 308 final double foregroundUsageTimeInMs = interpolate( in interpolate() local 318 || upperHistEntry.mForegroundUsageTimeInMs < foregroundUsageTimeInMs in interpolate() 340 Math.round(foregroundUsageTimeInMs), in interpolate()
|
D | BatteryChartPreferenceController.java | 513 final long foregroundUsageTimeInMs = entry.mForegroundUsageTimeInMs; in setPreferenceSummary() local 515 final long totalUsageTimeInMs = foregroundUsageTimeInMs + backgroundUsageTimeInMs; in setPreferenceSummary() 526 } else if (foregroundUsageTimeInMs == 0 && backgroundUsageTimeInMs != 0) { in setPreferenceSummary() 604 final long foregroundUsageTimeInMs = entry.mForegroundUsageTimeInMs; in validateUsageTime() local 606 final long totalUsageTimeInMs = foregroundUsageTimeInMs + backgroundUsageTimeInMs; in validateUsageTime() 607 if (foregroundUsageTimeInMs > VALID_USAGE_TIME_DURATION in validateUsageTime()
|
D | BatteryDiffEntry.java | 69 long foregroundUsageTimeInMs, in BatteryDiffEntry() argument 75 mForegroundUsageTimeInMs = foregroundUsageTimeInMs; in BatteryDiffEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryHistEntryTest.java | 271 long foregroundUsageTimeInMs, in assertBatteryHistEntry() argument 287 assertThat(entry.mForegroundUsageTimeInMs).isEqualTo(foregroundUsageTimeInMs); in assertBatteryHistEntry() 304 long foregroundUsageTimeInMs, in createBatteryHistEntry() argument 340 Long.valueOf(foregroundUsageTimeInMs), in createBatteryHistEntry()
|
D | ConvertUtilsTest.java | 405 long uid, long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in createBatteryHistEntry() argument 415 Long.valueOf(foregroundUsageTimeInMs)); in createBatteryHistEntry() 423 long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in assertBatteryDiffEntry() argument 425 assertThat(entry.mForegroundUsageTimeInMs).isEqualTo(foregroundUsageTimeInMs); in assertBatteryDiffEntry()
|
D | BatteryChartPreferenceControllerTest.java | 714 long foregroundUsageTimeInMs, long backgroundUsageTimeInMs) { in createBatteryDiffEntry() argument 716 mContext, foregroundUsageTimeInMs, backgroundUsageTimeInMs, in createBatteryDiffEntry()
|