Searched refs:remainingTimeUs (Results 1 – 10 of 10) sorted by relevance
46 public long remainingTimeUs = 0; field in BatteryInfo97 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()
160 PowerUtil.convertUsToMs(oldInfo.remainingTimeUs)))); in updateViews()165 PowerUtil.convertUsToMs(newInfo.remainingTimeUs)))); in updateViews()
48 public long remainingTimeUs = 0; field in BatteryInfo99 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()
175 PowerUtil.convertUsToMs(oldInfo.remainingTimeUs)))); in updateViews()180 PowerUtil.convertUsToMs(newInfo.remainingTimeUs)))); in updateViews()
85 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()
50 || (mBatteryInfo.discharging && mBatteryInfo.remainingTimeUs != 0 in detect()51 && mBatteryInfo.remainingTimeUs < TimeUnit.HOURS.toMicros(mPolicy.lowBatteryHour)); in detect()
411 info1.remainingTimeUs = 10000; in showBothEstimates()416 info2.remainingTimeUs = 10000; in showBothEstimates()
78 assertThat(info.remainingTimeUs).isEqualTo(TEST_TIME_REMAINING); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
233 assertThat(info.remainingTimeUs).isEqualTo(TEST_CHARGE_TIME_REMAINING); in testGetBatteryInfo_charging_usesChargeTime()