Home
last modified time | relevance | path

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

/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/power/
DEnhancedEstimates.java3 import com.android.settingslib.fuelgauge.Estimate;
15 Estimate getEstimate(); in getEstimate()
DEnhancedEstimatesImpl.java3 import com.android.settingslib.fuelgauge.Estimate;
21 public Estimate getEstimate() { in getEstimate()
DPowerUI.java43 import com.android.settingslib.fuelgauge.Estimate;
308 Estimate estimate = refreshEstimateIfNeeded(); in maybeShowBatteryWarningV2()
335 Estimate refreshEstimateIfNeeded() { in refreshEstimateIfNeeded()
339 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded()
345 return new Estimate(mLastBatteryStateSnapshot.getTimeRemainingMillis(), in refreshEstimateIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java34 import com.android.settingslib.fuelgauge.Estimate;
75 private Estimate mEstimate;
260 mEstimate = Estimate.getCachedEstimateIfAvailable(mContext); in updateEstimate()
264 Estimate.storeCachedEstimate(mContext, mEstimate); in updateEstimate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java43 import com.android.settingslib.fuelgauge.Estimate;
509 Estimate estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
518 Estimate refreshedEstimate = mPowerUI.refreshEstimateIfNeeded(); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
526 estimate = new Estimate(BELOW_SEVERE_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
536 estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()