Home | History | Annotate | Download | only in settings

Lines Matching refs:Preference

28 import android.preference.CheckBoxPreference;
29 import android.preference.Preference;
64 private final HashSet<Preference> mProtectedByRestictionsPrefs = new HashSet<Preference>();
120 // time user uses a protected preference, they are prompted for pin again.
145 Preference pref = findPreference(prefKey);
172 private void ensurePin(Preference preference) {
178 if (preference != null) {
179 mResumeActionBundle.putString(EXTRA_PREFERENCE, preference.getKey());
180 if (preference instanceof CheckBoxPreference) {
182 ((CheckBoxPreference)preference).isChecked());
211 protected boolean restrictionsPinCheck(String restrictionsKey, Preference preference) {
213 ensurePin(preference);
237 * If the preference is one that was added by protectByRestrictions(), then it will
242 boolean ensurePinRestrictedPreference(Preference preference) {
243 return mProtectedByRestictionsPrefs.contains(preference)
244 && !restrictionsPinCheck(RESTRICTIONS_PIN_SET, preference);
251 protected void protectByRestrictions(Preference pref) {
258 Preference pref = findPreference(key);