Searched refs:Estimate (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | EnhancedEstimatesImpl.java | 3 import com.android.settingslib.fuelgauge.Estimate; 22 public Estimate getEstimate() { in getEstimate() 24 return new Estimate(EstimateKt.ESTIMATE_MILLIS_UNKNOWN, in getEstimate()
|
D | EnhancedEstimates.java | 3 import com.android.settingslib.fuelgauge.Estimate; 15 Estimate getEstimate(); in getEstimate()
|
D | PowerUI.java | 43 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/ |
D | Estimate.kt | 27 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/ |
D | BatteryControllerImpl.java | 34 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/ |
D | PowerUITest.java | 46 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()
|