Searched refs:mBatteryTipPreferenceController (Results 1 – 4 of 4) sorted by relevance
81 private BatteryTipPreferenceController mBatteryTipPreferenceController; field in BatteryTipPreferenceControllerTest101 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 …]
101 BatteryTipPreferenceController mBatteryTipPreferenceController; field in PowerUsageSummary182 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()
106 BatteryTipPreferenceController mBatteryTipPreferenceController; field in PowerUsageSummary193 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()
325 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()