Home
last modified time | relevance | path

Searched refs:mUnrestrictedPreference (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerBackgroundUsageDetail.java78 @VisibleForTesting SelectorWithWidgetPreference mUnrestrictedPreference; field in PowerBackgroundUsageDetail
142 updateSelectorPreferenceState(mUnrestrictedPreference, selectedKey); in onRadioButtonClicked()
185 mUnrestrictedPreference.setEnabled(isEnabled); in updateSelectorPreference()
193 } else if (mUnrestrictedPreference.isChecked()) { in getSelectedPreference()
276 mUnrestrictedPreference = findPreference(KEY_PREF_UNRESTRICTED); in onCreateBackgroundUsageState()
281 mUnrestrictedPreference.setOnClickListener(this); in onCreateBackgroundUsageState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerBackgroundUsageDetailTest.java107 private SelectorWithWidgetPreference mUnrestrictedPreference; field in PowerBackgroundUsageDetailTest
200 mUnrestrictedPreference = spy(new SelectorWithWidgetPreference(mContext)); in setUp()
201 mUnrestrictedPreference.setKey(KEY_PREF_UNRESTRICTED); in setUp()
205 mFragment.mUnrestrictedPreference = mUnrestrictedPreference; in setUp()
280 verify(mUnrestrictedPreference).setEnabled(false); in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode()
296 verify(mUnrestrictedPreference).setEnabled(true); in onSwitchChanged_fromRestrictedModeSetEnabled_becomeOptimizedMode()