Home
last modified time | relevance | path

Searched refs:mEnhancedEstimates (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java94 private final EnhancedEstimates mEnhancedEstimates; field in PowerUI
166 mEnhancedEstimates = enhancedEstimates; in PowerUI()
381 final boolean hybridEnabled = mEnhancedEstimates.isHybridNotificationEnabled(); in maybeShowBatteryWarningV2()
398 mEnhancedEstimates.getSevereWarningThreshold(), in maybeShowBatteryWarningV2()
399 mEnhancedEstimates.getLowWarningThreshold(), estimate.isBasedOnUsage(), in maybeShowBatteryWarningV2()
400 mEnhancedEstimates.getLowWarningEnabled()); in maybeShowBatteryWarningV2()
420 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java87 @Mock private EnhancedEstimates mEnhancedEstimates; field in PowerUITest
539 when(mEnhancedEstimates.isHybridNotificationEnabled()).thenReturn(true); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
540 when(mEnhancedEstimates.getLowWarningThreshold()).thenReturn(PowerUI.THREE_HOURS_IN_MILLIS); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
541 when(mEnhancedEstimates.getSevereWarningThreshold()).thenReturn(ONE_HOUR_MILLIS); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
542 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
556 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
566 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
705 mEnhancedEstimates, in createPowerUi()