Home
last modified time | relevance | path

Searched refs:remainingTimeUs (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DLowBatteryDetectorTest.java90 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMillis(1); in detect_lowBattery_tipNew()
114 mBatteryInfo.remainingTimeUs = TimeUnit.MINUTES.toMillis(1); in detect_lowTimeEstimation_tipInvisible()
121 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMicros(1); in detect_noEarlyWarning_tipInvisible()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java58 public long remainingTimeUs = 0; field in BatteryInfo
110 if (remainingTimeUs != 0) { in bindHistory()
127 remainingTimeUs)), in bindHistory()
152 if (remainingTimeUs != 0) { in bindHistory()
156 Formatter.formatShortElapsedTime(context, remainingTimeUs / 1000)); in bindHistory()
425 info.remainingTimeUs = PowerUtil.convertMsToUs(chargeTimeMs); in updateBatteryInfoCharging()
543 info.remainingTimeUs = drainTimeUs; in updateBatteryInfoDischarging()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoLoaderTest.java79 assertThat(info.remainingTimeUs).isEqualTo(TEST_TIME_REMAINING * 1000); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
DBatteryInfoTest.java287 assertThat(info.remainingTimeUs).isEqualTo(TEST_CHARGE_TIME_REMAINING); in getBatteryInfo_charging_usesChargeTime()