Lines Matching refs:Preference
34 import android.preference.CheckBoxPreference;
35 import android.preference.ListPreference;
36 import android.preference.Preference;
37 import android.preference.Preference.OnPreferenceChangeListener;
38 import android.preference.PreferenceGroup;
39 import android.preference.PreferenceScreen;
98 private Preference mResetCredentials;
105 private Preference mNotificationAccess;
171 Preference ownerInfoPref = findPreference(KEY_OWNER_INFO_SETTINGS);
194 // lock after preference
247 Preference credentialStorageType = root.findPreference(KEY_CREDENTIAL_STORAGE_TYPE);
446 // Make sure we reload the preference hierarchy since some of these settings
473 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
474 final String key = preference.getKey();
492 if (isToggled(preference)) {
512 lockPatternUtils.setLockPatternEnabled(isToggled(preference));
514 lockPatternUtils.setVisiblePatternEnabled(isToggled(preference));
516 lockPatternUtils.setPowerButtonInstantlyLocks(isToggled(preference));
517 } else if (preference == mShowPassword) {
520 } else if (preference == mToggleAppInstallation) {
532 return super.onPreferenceTreeClick(preferenceScreen, preference);
538 private boolean isToggled(Preference pref) {
565 public boolean onPreferenceChange(Preference preference, Object value) {
566 if (preference == mLockAfter) {