Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java72 private EnhancedEstimates mEnhancedEstimates; field in PowerUITest
79 mEnhancedEstimates = mDependency.injectMockDependency(EnhancedEstimates.class); in setup()
159 when(mEnhancedEstimates.isHybridNotificationEnabled()).thenReturn(true); in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsNoShow()
160 when(mEnhancedEstimates.getLowWarningThreshold()) in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsNoShow()
162 when(mEnhancedEstimates.getSevereWarningThreshold()).thenReturn(ONE_HOUR_MILLIS); in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsNoShow()
176 when(mEnhancedEstimates.isHybridNotificationEnabled()).thenReturn(true); in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsShow()
177 when(mEnhancedEstimates.getLowWarningThreshold()) in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsShow()
179 when(mEnhancedEstimates.getSevereWarningThreshold()).thenReturn(ONE_HOUR_MILLIS); in testShouldShowLowBatteryWarning_showHybridOnly_overrideThresholdHigh_returnsShow()
193 when(mEnhancedEstimates.isHybridNotificationEnabled()).thenReturn(true); in testShouldShowLowBatteryWarning_showHybridOnly_returnsShow()
194 when(mEnhancedEstimates.getLowWarningThreshold()).thenReturn(PowerUI.THREE_HOURS_IN_MILLIS); in testShouldShowLowBatteryWarning_showHybridOnly_returnsShow()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java79 private EnhancedEstimates mEnhancedEstimates; field in PowerUI
108 mEnhancedEstimates = Dependency.get(EnhancedEstimates.class); in start()
270 final boolean hybridEnabled = mEnhancedEstimates.isHybridNotificationEnabled(); in maybeShowBatteryWarning()
272 final Estimate estimate = mEnhancedEstimates.getEstimate(); in maybeShowBatteryWarning()
278 mWarnings.updateThresholds(mEnhancedEstimates.getLowWarningThreshold(), in maybeShowBatteryWarning()
279 mEnhancedEstimates.getSevereWarningThreshold()); in maybeShowBatteryWarning()
298 if (mTimeRemaining < mEnhancedEstimates.getSevereWarningThreshold() in maybeShowBatteryWarning()
316 if (mEnhancedEstimates.isHybridNotificationEnabled()) { in shouldShowLowBatteryWarning()
330 final boolean hybridWouldDismiss = mEnhancedEstimates.isHybridNotificationEnabled() in shouldDismissLowBatteryWarning()
331 && timeRemaining > mEnhancedEstimates.getLowWarningThreshold(); in shouldDismissLowBatteryWarning()
[all …]