Searched refs:remainingTimeUs (Results 1 – 5 of 5) sorted by relevance
52 public long remainingTimeUs = 0; field in BatteryInfo103 if (remainingTimeUs != 0) { in bindHistory()113 PowerUtil.convertUsToMs(remainingTimeUs)), in bindHistory()136 if (remainingTimeUs != 0) { in bindHistory()138 Formatter.formatShortElapsedTime(context, remainingTimeUs / 1000)); in bindHistory()268 info.remainingTimeUs = PowerUtil.convertMsToUs(chargeTimeMs); in updateBatteryInfoCharging()271 PowerUtil.convertUsToMs(info.remainingTimeUs), in updateBatteryInfoCharging()291 info.remainingTimeUs = drainTimeUs; in updateBatteryInfoDischarging()
85 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMillis(1); in testDetect_lowBattery_tipNew()89 mBatteryInfo.remainingTimeUs = TimeUnit.MINUTES.toMillis(1); in testDetect_lowBattery_tipNew()111 mBatteryInfo.remainingTimeUs = 0; in testDetect_timeEstimationZero_tipInvisible()117 mBatteryInfo.remainingTimeUs = TimeUnit.DAYS.toMicros(1); in testDetect_noEarlyWarning_tipInvisible()
50 || (mBatteryInfo.discharging && mBatteryInfo.remainingTimeUs != 0 in detect()51 && mBatteryInfo.remainingTimeUs < TimeUnit.HOURS.toMicros(mPolicy.lowBatteryHour)); in detect()
81 assertThat(info.remainingTimeUs).isEqualTo(TEST_TIME_REMAINING * 1000); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
232 assertThat(info.remainingTimeUs).isEqualTo(TEST_CHARGE_TIME_REMAINING); in testGetBatteryInfo_charging_usesChargeTime()