Home
last modified time | relevance | path

Searched refs:mRestrictedPreference (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedPreferenceAdapter.java61 private final RestrictedPreference mRestrictedPreference; field in RestrictedPreferenceAdapter
73 mRestrictedPreference = new RestrictedPreference(mContext); in RestrictedPreferenceAdapter()
75 mRestrictedPreference = null; in RestrictedPreferenceAdapter()
144 if (mRestrictedPreference == null) { in replacePreference()
154 mRestrictedPreference.setOrder(order); in replacePreference()
156 screen.addPreference(mRestrictedPreference); in replacePreference()
167 if (mRestrictedPreference != null) { in getPreference()
168 return mRestrictedPreference; in getPreference()
204 if (mRestrictedPreference == null) { in updateRestrictedPreference()
208 mRestrictedPreference.setKey(mOriginalPreference.getKey()); in updateRestrictedPreference()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java110 RadioButtonPreference mRestrictedPreference; field in AdvancedPowerUsageDetail
432 updatePreferenceState(mRestrictedPreference, selectedKey); in onRadioButtonClicked()
440 } else if (selectedKey.equals(mRestrictedPreference.getKey())) { in onRadioButtonClicked()
462 mRestrictedPreference = findPreference(KEY_PREF_RESTRICTED); in onCreateForTriState()
466 mRestrictedPreference.setOnClickListener(this); in onCreateForTriState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java130 private RadioButtonPreference mRestrictedPreference; field in AdvancedPowerUsageDetailTest
211 mRestrictedPreference = new RadioButtonPreference(mContext); in setUp()
217 mFragment.mRestrictedPreference = mRestrictedPreference; in setUp()
767 mRestrictedPreference.setKey(KEY_PREF_RESTRICTED); in testOnRadioButtonClicked_clickOptimizePref_optimizePreferenceChecked()
772 assertThat(mRestrictedPreference.isChecked()).isFalse(); in testOnRadioButtonClicked_clickOptimizePref_optimizePreferenceChecked()