Home
last modified time | relevance | path

Searched refs:mBatteryTipsController (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageAdvancedTest.java58 @Mock private BatteryTipsController mBatteryTipsController; field in PowerUsageAdvancedTest
70 mPowerUsageAdvanced.mBatteryTipsController = mBatteryTipsController; in setUp()
161 verify(mPowerUsageAdvanced.mBatteryTipsController).setOnAnomalyConfirmListener(isNull()); in onDisplayAnomalyEventUpdated_withSettingsAnomalyEvent_skipHighlightSlotEffect()
162 verify(mPowerUsageAdvanced.mBatteryTipsController).setOnAnomalyRejectListener(isNull()); in onDisplayAnomalyEventUpdated_withSettingsAnomalyEvent_skipHighlightSlotEffect()
177 verify(mBatteryTipsController).setOnAnomalyConfirmListener(isNull()); in onDisplayAnomalyEventUpdated_onlyAppAnomalyEvent_setHighlightSlotEffect()
178 verify(mBatteryTipsController).setOnAnomalyRejectListener(isNull()); in onDisplayAnomalyEventUpdated_onlyAppAnomalyEvent_setHighlightSlotEffect()
188 verify(mBatteryTipsController).setOnAnomalyConfirmListener(notNull()); in onDisplayAnomalyEventUpdated_onlyAppAnomalyEvent_setHighlightSlotEffect()
202 verify(mBatteryTipsController).setOnAnomalyConfirmListener(isNull()); in onDisplayAnomalyEventUpdated_withSettingsCardAndAppsSlotEvent_showExpected()
203 verify(mBatteryTipsController).setOnAnomalyRejectListener(isNull()); in onDisplayAnomalyEventUpdated_withSettingsCardAndAppsSlotEvent_showExpected()
DBatteryTipsControllerTest.java49 private BatteryTipsController mBatteryTipsController; field in BatteryTipsControllerTest
64 mBatteryTipsController = new BatteryTipsController(mContext); in setUp()
65 mBatteryTipsController.mCardPreference = mBatteryTipsCardPreference; in setUp()
70 mBatteryTipsController.handleBatteryTipsCardUpdated(/* powerAnomalyEvents= */ null, false); in handleBatteryTipsCardUpdated_null_hidePreference()
80 mBatteryTipsController.handleBatteryTipsCardUpdated( in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
106 mBatteryTipsController.handleBatteryTipsCardUpdated( in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
137 mBatteryTipsController.handleBatteryTipsCardUpdated( in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
162 mBatteryTipsController.handleBatteryTipsCardUpdated(eventWrapper, false); in handleBatteryTipsCardUpdated_appAnomaly_showAnomaly()
DBatteryTipsCardPreferenceTest.java64 private BatteryTipsController mBatteryTipsController; field in BatteryTipsCardPreferenceTest
78 mBatteryTipsController = new BatteryTipsController(mContext); in setUp()
82 mBatteryTipsController.mCardPreference = mBatteryTipsCardPreference; in setUp()
86 mPowerUsageAdvanced.mBatteryTipsController = mBatteryTipsController; in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageAdvanced.java86 @VisibleForTesting BatteryTipsController mBatteryTipsController; field in PowerUsageAdvanced
155 mBatteryTipsController = new BatteryTipsController(context); in createPreferenceControllers()
164 controllers.add(mBatteryTipsController); in createPreferenceControllers()
255 mBatteryTipsController.acceptTipsCard(); in onSelectedSlotDataUpdated()
313 if (mBatteryTipsController == null in onDisplayAnomalyEventUpdated()
321 mBatteryTipsController.setOnAnomalyConfirmListener(null); in onDisplayAnomalyEventUpdated()
322 mBatteryTipsController.setOnAnomalyRejectListener(null); in onDisplayAnomalyEventUpdated()
331 mBatteryTipsController.handleBatteryTipsCardUpdated( in onDisplayAnomalyEventUpdated()
354 mBatteryTipsController.setOnAnomalyConfirmListener( in onDisplayAnomalyEventUpdated()
357 mBatteryTipsController.acceptTipsCard(); in onDisplayAnomalyEventUpdated()