Home
last modified time | relevance | path

Searched refs:Estimate (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DEnhancedEstimatesImpl.java3 import com.android.settingslib.fuelgauge.Estimate;
22 public Estimate getEstimate() { in getEstimate()
24 return new Estimate(EstimateKt.ESTIMATE_MILLIS_UNKNOWN, in getEstimate()
DEnhancedEstimates.java3 import com.android.settingslib.fuelgauge.Estimate;
15 Estimate getEstimate(); in getEstimate()
DPowerUI.java43 import com.android.settingslib.fuelgauge.Estimate;
344 Estimate estimate = refreshEstimateIfNeeded(); in maybeShowBatteryWarningV2()
371 Estimate refreshEstimateIfNeeded() { in refreshEstimateIfNeeded()
375 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded()
381 return new Estimate(mLastBatteryStateSnapshot.getTimeRemainingMillis(), in refreshEstimateIfNeeded()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DEstimate.kt27 class Estimate( class
41 fun getCachedEstimateIfAvailable(context: Context): Estimate? { in getCachedEstimateIfAvailable()
50 } else Estimate( in getCachedEstimateIfAvailable()
68 fun storeCachedEstimate(context: Context, estimate: Estimate) { in storeCachedEstimate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java34 import com.android.settingslib.fuelgauge.Estimate;
79 private Estimate mEstimate;
277 mEstimate = Estimate.getCachedEstimateIfAvailable(mContext); in updateEstimate()
281 Estimate.storeCachedEstimate(mContext, mEstimate); in updateEstimate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java46 import com.android.settingslib.fuelgauge.Estimate;
530 Estimate estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
539 Estimate refreshedEstimate = mPowerUI.refreshEstimateIfNeeded(); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
547 estimate = new Estimate(BELOW_SEVERE_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
557 estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()