Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java89 private EnhancedEstimates mEnhancedEstimates; field in PowerUI
127 mEnhancedEstimates = Dependency.get(EnhancedEstimates.class); in start()
333 final boolean hybridEnabled = mEnhancedEstimates.isHybridNotificationEnabled(); in maybeShowBatteryWarningV2()
350 mEnhancedEstimates.getSevereWarningThreshold(), in maybeShowBatteryWarningV2()
351 mEnhancedEstimates.getLowWarningThreshold(), estimate.isBasedOnUsage(), in maybeShowBatteryWarningV2()
352 mEnhancedEstimates.getLowWarningEnabled()); in maybeShowBatteryWarningV2()
376 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
H A DPowerUITest.java86 private EnhancedEstimates mEnhancedEstimates; field in PowerUITest
100 mEnhancedEstimates = mDependency.injectMockDependency(EnhancedEstimates.class); in setup()
532 when(mEnhancedEstimates.isHybridNotificationEnabled()).thenReturn(true); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
533 when(mEnhancedEstimates.getLowWarningThreshold()).thenReturn(PowerUI.THREE_HOURS_IN_MILLIS); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
534 when(mEnhancedEstimates.getSevereWarningThreshold()).thenReturn(ONE_HOUR_MILLIS); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
535 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
549 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
559 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDependency.java301 @Inject Lazy<EnhancedEstimates> mEnhancedEstimates; field in Dependency
502 mProviders.put(EnhancedEstimates.class, mEnhancedEstimates::get); in start()