Searched refs:mUnrestrictedPreference (Results 1 – 2 of 2) sorted by relevance
78 @VisibleForTesting SelectorWithWidgetPreference mUnrestrictedPreference; field in PowerBackgroundUsageDetail142 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()
107 private SelectorWithWidgetPreference mUnrestrictedPreference; field in PowerBackgroundUsageDetailTest200 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()