Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPreferenceControllerTest.java81 private BatteryTipPreferenceController mBatteryTipPreferenceController; field in BatteryTipPreferenceControllerTest
101 mBatteryTipPreferenceController = buildBatteryTipPreferenceController(); in setUp()
102 mBatteryTipPreferenceController.mCardPreference = mCardPreference; in setUp()
103 mBatteryTipPreferenceController.mPrefContext = mContext; in setUp()
108 mBatteryTipPreferenceController.displayPreference(mPreferenceScreen); in testDisplayPreference_addSummaryTip()
115 mBatteryTipPreferenceController.updateBatteryTips(mOldBatteryTips); in testUpdateBatteryTips_logBatteryTip()
124 mBatteryTipPreferenceController.updateBatteryTips(mOldBatteryTips); in testSaveAndRestore()
126 mBatteryTipPreferenceController.saveInstanceState(bundle); in testSaveAndRestore()
140 mBatteryTipPreferenceController.saveInstanceState(bundle); in testRestoreFromNull_shouldNotCrash()
155 mBatteryTipPreferenceController.updateBatteryTips(batteryTips); in testHandlePreferenceTreeClick_noDialog_invokeCallback()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DPowerUsageSummary.java101 BatteryTipPreferenceController mBatteryTipPreferenceController; field in PowerUsageSummary
182 mBatteryTipPreferenceController.updateBatteryTips(data);
201 mBatteryTipPreferenceController = use(BatteryTipPreferenceController.class); in onAttach()
202 mBatteryTipPreferenceController.setActivity(activity); in onAttach()
203 mBatteryTipPreferenceController.setFragment(this); in onAttach()
204 mBatteryTipPreferenceController.setBatteryTipListener(this::onBatteryTipHandled); in onAttach()
222 mBatteryTipPreferenceController.restoreInstanceState(icicle); in onCreate()
362 mNeedUpdateBatteryTip = icicle == null || mBatteryTipPreferenceController.needUpdate(); in updateBatteryTipFlag()
381 mBatteryTipPreferenceController.saveInstanceState(outState); in onSaveInstanceState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java108 BatteryTipPreferenceController mBatteryTipPreferenceController; field in PowerUsageSummary
197 mBatteryTipPreferenceController.updateBatteryTips(data);
216 mBatteryTipPreferenceController = use(BatteryTipPreferenceController.class); in onAttach()
217 mBatteryTipPreferenceController.setActivity(activity); in onAttach()
218 mBatteryTipPreferenceController.setFragment(this); in onAttach()
219 mBatteryTipPreferenceController.setBatteryTipListener(this::onBatteryTipHandled); in onAttach()
237 mBatteryTipPreferenceController.restoreInstanceState(icicle); in onCreate()
395 mNeedUpdateBatteryTip = icicle == null || mBatteryTipPreferenceController.needUpdate(); in updateBatteryTipFlag()
414 mBatteryTipPreferenceController.saveInstanceState(outState); in onSaveInstanceState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java328 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
329 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(false); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
339 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
340 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(true); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
350 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_tipNeedUpdate_updateBatteryTip()
351 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(true); in refreshUi_tipNeedUpdate_updateBatteryTip()