Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryInfo.java46 public long remainingTimeUs = 0; field in BatteryInfo
97 if (remainingTimeUs != 0) { in bindHistory()
107 PowerUtil.convertUsToMs(remainingTimeUs)), in bindHistory()
130 if (remainingTimeUs != 0) { in bindHistory()
132 Formatter.formatShortElapsedTime(context, remainingTimeUs / 1000)); in bindHistory()
253 info.remainingTimeUs = chargeTime; in updateBatteryInfoCharging()
255 PowerUtil.convertUsToMs(info.remainingTimeUs), false /* withSeconds */); in updateBatteryInfoCharging()
274 info.remainingTimeUs = drainTimeUs; in updateBatteryInfoDischarging()
DPowerUsageSummary.java160 PowerUtil.convertUsToMs(oldInfo.remainingTimeUs)))); in updateViews()
165 PowerUtil.convertUsToMs(newInfo.remainingTimeUs)))); in updateViews()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java48 public long remainingTimeUs = 0; field in BatteryInfo
99 if (remainingTimeUs != 0) { in bindHistory()
109 PowerUtil.convertUsToMs(remainingTimeUs)), in bindHistory()
132 if (remainingTimeUs != 0) { in bindHistory()
134 Formatter.formatShortElapsedTime(context, remainingTimeUs / 1000)); in bindHistory()
256 info.remainingTimeUs = chargeTime; in updateBatteryInfoCharging()
258 PowerUtil.convertUsToMs(info.remainingTimeUs), false /* withSeconds */); in updateBatteryInfoCharging()
277 info.remainingTimeUs = drainTimeUs; in updateBatteryInfoDischarging()
DPowerUsageSummary.java175 PowerUtil.convertUsToMs(oldInfo.remainingTimeUs)))); in updateViews()
180 PowerUtil.convertUsToMs(newInfo.remainingTimeUs)))); in updateViews()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DLowBatteryDetectorTest.java85 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMillis(1); in testDetect_lowBattery_tipNew()
89 mBatteryInfo.remainingTimeUs = TimeUnit.MINUTES.toMillis(1); in testDetect_lowBattery_tipNew()
110 mBatteryInfo.remainingTimeUs = 0; in testDetect_timeEstimationZero_tipInvisible()
116 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMicros(1); in testDetect_noEarlyWarning_tipInvisible()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DLowBatteryDetector.java50 || (mBatteryInfo.discharging && mBatteryInfo.remainingTimeUs != 0 in detect()
51 && mBatteryInfo.remainingTimeUs < TimeUnit.HOURS.toMicros(mPolicy.lowBatteryHour)); in detect()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DLowBatteryDetector.java50 || (mBatteryInfo.discharging && mBatteryInfo.remainingTimeUs != 0 in detect()
51 && mBatteryInfo.remainingTimeUs < TimeUnit.HOURS.toMicros(mPolicy.lowBatteryHour)); in detect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java411 info1.remainingTimeUs = 10000; in showBothEstimates()
416 info2.remainingTimeUs = 10000; in showBothEstimates()
DBatteryInfoLoaderTest.java78 assertThat(info.remainingTimeUs).isEqualTo(TEST_TIME_REMAINING); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
DBatteryInfoTest.java233 assertThat(info.remainingTimeUs).isEqualTo(TEST_CHARGE_TIME_REMAINING); in testGetBatteryInfo_charging_usesChargeTime()