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.java106 BatteryTipPreferenceController mBatteryTipPreferenceController; field in PowerUsageSummary
193 mBatteryTipPreferenceController.updateBatteryTips(data);
212 mBatteryTipPreferenceController = use(BatteryTipPreferenceController.class); in onAttach()
213 mBatteryTipPreferenceController.setActivity(activity); in onAttach()
214 mBatteryTipPreferenceController.setFragment(this); in onAttach()
215 mBatteryTipPreferenceController.setBatteryTipListener(this::onBatteryTipHandled); in onAttach()
233 mBatteryTipPreferenceController.restoreInstanceState(icicle); in onCreate()
391 mNeedUpdateBatteryTip = icicle == null || mBatteryTipPreferenceController.needUpdate(); in updateBatteryTipFlag()
410 mBatteryTipPreferenceController.saveInstanceState(outState); in onSaveInstanceState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java325 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
326 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(false); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
336 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
337 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(true); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
347 mFragment.mBatteryTipPreferenceController = mock(BatteryTipPreferenceController.class); in refreshUi_tipNeedUpdate_updateBatteryTip()
348 when(mFragment.mBatteryTipPreferenceController.needUpdate()).thenReturn(true); in refreshUi_tipNeedUpdate_updateBatteryTip()