Searched refs:Estimate (Results 1 – 6 of 6) sorted by relevance
27 class Estimate( class41 fun getCachedEstimateIfAvailable(context: Context): Estimate? { in getCachedEstimateIfAvailable()50 } else Estimate( in getCachedEstimateIfAvailable()68 fun storeCachedEstimate(context: Context, estimate: Estimate) { in storeCachedEstimate()
3 import com.android.settingslib.fuelgauge.Estimate;15 Estimate getEstimate(); in getEstimate()
3 import com.android.settingslib.fuelgauge.Estimate;21 public Estimate getEstimate() { in getEstimate()
43 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()
34 import com.android.settingslib.fuelgauge.Estimate;75 private Estimate mEstimate;260 mEstimate = Estimate.getCachedEstimateIfAvailable(mContext); in updateEstimate()264 Estimate.storeCachedEstimate(mContext, mEstimate); in updateEstimate()
43 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()