Home
last modified time | relevance | path

Searched refs:preferenceKey (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/src/com/android/settings/password/
DScreenLockType.java65 public final String preferenceKey; field in ScreenLockType
67 ScreenLockType(int quality, String preferenceKey) { in ScreenLockType() argument
68 this(quality, quality, preferenceKey); in ScreenLockType()
71 ScreenLockType(int defaultQuality, int maxQuality, String preferenceKey) { in ScreenLockType() argument
74 this.preferenceKey = preferenceKey; in ScreenLockType()
104 if (lock.preferenceKey.equals(key)) { in fromKey()
DChooseLockGeneric.java448 findPreference(ScreenLockType.NONE.preferenceKey).setViewId(R.id.lock_none); in addPreferences()
450 findPreference(ScreenLockType.PIN.preferenceKey).setViewId(R.id.lock_pin); in addPreferences()
451 findPreference(ScreenLockType.PASSWORD.preferenceKey).setViewId(R.id.lock_password); in addPreferences()
467 removePreference(ScreenLockType.MANAGED.preferenceKey); in updatePreferenceText()
476 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
483 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
490 Preference preference = findPreference(lock.preferenceKey); in setPreferenceSummary()
508 return ScreenLockType.NONE.preferenceKey; in getKeyForCurrent()
513 return lock != null ? lock.preferenceKey : null; in getKeyForCurrent()
543 String key = lock.preferenceKey; in disableUnusablePreferencesImpl()
[all …]
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditMedicalInfoFragment.java43 String preferenceKey = PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO[i]; in onCreatePreferences() local
45 Preference preference = findPreference(preferenceKey); in onCreatePreferences()
92 for (String preferenceKey : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in reloadFromPreference()
94 findPreference(preferenceKey); in reloadFromPreference()
DEditInfoFragment.java58 for (String preferenceKey : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in onCreatePreferences()
59 Preference preference = findPreference(preferenceKey); in onCreatePreferences()
60 mMedicalInfoPreferences.put(preferenceKey, preference); in onCreatePreferences()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java334 private int getValueFromSeekBarProgress(String preferenceKey, int progress) { in getValueFromSeekBarProgress() argument
335 if (preferenceKey.equals(KEY_DEFAULT_RATE)) { in getValueFromSeekBarProgress()
337 } else if (preferenceKey.equals(KEY_DEFAULT_PITCH)) { in getValueFromSeekBarProgress()
347 private int getSeekBarProgressFromValue(String preferenceKey, int value) { in getSeekBarProgressFromValue() argument
348 if (preferenceKey.equals(KEY_DEFAULT_RATE)) { in getSeekBarProgressFromValue()
350 } else if (preferenceKey.equals(KEY_DEFAULT_PITCH)) { in getSeekBarProgressFromValue()
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewEmergencyInfoFragment.java42 for (String preferenceKey : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in onCreatePreferences()
43 Preference preference = findPreference(preferenceKey); in onCreatePreferences()
/packages/apps/Settings/tests/app/src/com/android/settings/
DSettingsPreferenceFragmentTest.java64 final String preferenceKey = preference.getKey(); in testHighlightCaptions() local
65 if (preferenceKey.equals(prefKey)) { in testHighlightCaptions()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleAutoclickPreferenceFragment.java97 protected void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument
98 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); in onPreferenceToggled() local
DAccessibilityShortcutPreferenceFragment.java101 protected void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument
102 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); in onPreferenceToggled() local
DToggleScreenMagnificationPreferenceFragment.java178 protected void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument
179 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); in onPreferenceToggled() local
DToggleAccessibilityServicePreferenceFragment.java105 public void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument
106 ComponentName toggledService = ComponentName.unflattenFromString(preferenceKey); in onPreferenceToggled()
DToggleDaltonizerPreferenceFragment.java65 protected void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument
DToggleFeaturePreferenceFragment.java91 protected abstract void onPreferenceToggled(String preferenceKey, boolean enabled); in onPreferenceToggled() argument
/packages/apps/SpareParts/src/com/android/spare_parts/
DSpareParts.java75 PreferenceGroup parentPreferenceGroup, String preferenceKey, int flags) { in updatePreferenceToSpecificActivityOrRemove() argument
77 Preference preference = parentPreferenceGroup.findPreference(preferenceKey); in updatePreferenceToSpecificActivityOrRemove()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java427 final String preferenceKey = preference.getKey(); in findListPositionFromKey() local
428 if (preferenceKey != null && preferenceKey.equals(key)) { in findListPositionFromKey()
DSecuritySettings.java463 private void disableIfPasswordQualityManaged(String preferenceKey, int userId) { in disableIfPasswordQualityManaged() argument
469 (RestrictedPreference) getPreferenceScreen().findPreference(preferenceKey); in disableIfPasswordQualityManaged()
DUtils.java171 PreferenceGroup parentPreferenceGroup, String preferenceKey, int flags) { in updatePreferenceToSpecificActivityOrRemove() argument
173 Preference preference = parentPreferenceGroup.findPreference(preferenceKey); in updatePreferenceToSpecificActivityOrRemove()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DAppPermissionsFragmentWear.java405 private void setPreferenceCheckedIfPresent(String preferenceKey, boolean checked) { in setPreferenceCheckedIfPresent() argument
406 Preference pref = findPreference(preferenceKey); in setPreferenceCheckedIfPresent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DScreenLockTypeTest.java61 assertThat(ScreenLockType.fromKey(lock.preferenceKey)).isEqualTo(lock); in fromKey_shouldReturnLockWithGivenKey()
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DToggleFeaturePreferenceFragmentTest.java73 protected void onPreferenceToggled(String preferenceKey, boolean enabled) {} in onPreferenceToggled() argument
/packages/apps/Settings/src/com/android/settings/print/
DPrintServiceSettingsFragment.java187 private void onPreferenceToggled(String preferenceKey, boolean enabled) { in onPreferenceToggled() argument