Home
last modified time | relevance | path

Searched refs:prefKey (Results 1 – 25 of 36) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSubScreenFragment.java39 static void setPreferenceEnabled(final String prefKey, final boolean enabled, in setPreferenceEnabled() argument
41 final Preference preference = screen.findPreference(prefKey); in setPreferenceEnabled()
47 static void removePreference(final String prefKey, final PreferenceScreen screen) { in removePreference() argument
48 final Preference preference = screen.findPreference(prefKey); in removePreference()
54 static void updateListPreferenceSummaryToCurrentValue(final String prefKey, in updateListPreferenceSummaryToCurrentValue() argument
58 final ListPreference listPreference = (ListPreference)screen.findPreference(prefKey); in updateListPreferenceSummaryToCurrentValue()
67 final void setPreferenceEnabled(final String prefKey, final boolean enabled) {
68 setPreferenceEnabled(prefKey, enabled, getPreferenceScreen());
71 final void removePreference(final String prefKey) {
72 removePreference(prefKey, getPreferenceScreen());
[all …]
DDebugSettingsFragment.java153 private void setupKeyPreviewAnimationScale(final String prefKey, final float defaultValue) { in setupKeyPreviewAnimationScale() argument
156 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationScale()
205 private void setupKeyPreviewAnimationDuration(final String prefKey, final int defaultValue) { in setupKeyPreviewAnimationDuration() argument
208 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationDuration()
243 private void setupKeyboardHeight(final String prefKey, final float defaultValue) { in setupKeyboardHeight() argument
245 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyboardHeight()
DSettings.java334 final String prefKey, final float defaultValue) { in readKeyPreviewAnimationScale() argument
335 final float fraction = prefs.getFloat(prefKey, UNDEFINED_PREFERENCE_VALUE_FLOAT); in readKeyPreviewAnimationScale()
340 final String prefKey, final int defaultValue) { in readKeyPreviewAnimationDuration() argument
341 final int milliseconds = prefs.getInt(prefKey, UNDEFINED_PREFERENCE_VALUE_INT); in readKeyPreviewAnimationDuration()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryListPreferenceController.java145 String prefKey; in createUserDictSettings() local
161 prefKey = mScreen.getPreference(i).getKey(); in createUserDictSettings()
162 if (TextUtils.isEmpty(prefKey) || TextUtils.equals(KEY_ALL_LANGUAGE, prefKey)) { in createUserDictSettings()
165 if (!localeSet.isEmpty() && localeSet.contains(prefKey)) { in createUserDictSettings()
166 localeSet.remove(prefKey); in createUserDictSettings()
169 mScreen.removePreference(mScreen.findPreference(prefKey)); in createUserDictSettings()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionaryListPreferenceController.java145 String prefKey; in createUserDictSettings() local
161 prefKey = mScreen.getPreference(i).getKey(); in createUserDictSettings()
162 if (TextUtils.isEmpty(prefKey) || TextUtils.equals(KEY_ALL_LANGUAGE, prefKey)) { in createUserDictSettings()
165 if (!localeSet.isEmpty() && localeSet.contains(prefKey)) { in createUserDictSettings()
166 localeSet.remove(prefKey); in createUserDictSettings()
169 mScreen.removePreference(mScreen.findPreference(prefKey)); in createUserDictSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DBaseTimeZonePreferenceControllerTest.java44 String prefKey = "key1"; in handlePreferenceTreeClick_correctKey_triggerOnClickListener() local
46 TestPreference preference = new TestPreference(mActivity, prefKey); in handlePreferenceTreeClick_correctKey_triggerOnClickListener()
47 TestPreferenceController controller = new TestPreferenceController(mActivity, prefKey); in handlePreferenceTreeClick_correctKey_triggerOnClickListener()
56 String prefKey = "key1"; in handlePreferenceTreeClick_wrongKey_triggerOnClickListener() local
59 TestPreferenceController controller = new TestPreferenceController(mActivity, prefKey); in handlePreferenceTreeClick_wrongKey_triggerOnClickListener()
/packages/apps/Contacts/src/com/android/contacts/preference/
DDisplayOptionsPreferenceFragment.java347 final String prefKey = p.getKey();
349 if (KEY_ABOUT.equals(prefKey)) {
352 } else if (KEY_IMPORT.equals(prefKey)) {
355 } else if (KEY_EXPORT.equals(prefKey)) {
359 } else if (KEY_MY_INFO.equals(prefKey)) {
369 } else if (KEY_ACCOUNTS.equals(prefKey)) {
373 } else if (KEY_BLOCKED_NUMBERS.equals(prefKey)) {
378 } else if (KEY_CUSTOM_CONTACTS_FILTER.equals(prefKey)) {
/packages/apps/Settings/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceController.java45 public EmergencyBroadcastPreferenceController(Context context, String prefKey) { in EmergencyBroadcastPreferenceController() argument
46 this(context, new AccountRestrictionHelper(context), prefKey); in EmergencyBroadcastPreferenceController()
51 String prefKey) { in EmergencyBroadcastPreferenceController() argument
53 mPrefKey = prefKey; in EmergencyBroadcastPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DEmergencyBroadcastPreferenceController.java45 public EmergencyBroadcastPreferenceController(Context context, String prefKey) { in EmergencyBroadcastPreferenceController() argument
46 this(context, new AccountRestrictionHelper(context), prefKey); in EmergencyBroadcastPreferenceController()
51 String prefKey) { in EmergencyBroadcastPreferenceController() argument
53 mPrefKey = prefKey; in EmergencyBroadcastPreferenceController()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionEventStore.java103 private void writePref(String prefKey, long value) { in writePref() argument
104 mSharedPrefs.edit().putLong(prefKey, value).apply(); in writePref()
107 private long readPref(String prefKey, Long defaultValue) { in readPref() argument
108 return mSharedPrefs.getLong(prefKey, defaultValue); in readPref()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefs.java71 PrefEntry(TmaPrefKey prefKey) { in PrefEntry() argument
72 mKey = prefKey.name(); in PrefEntry()
134 EnumPrefEntry(TmaPrefKey prefKey, T[] enumValues, T defaultValue) { in EnumPrefEntry() argument
135 super(prefKey); in EnumPrefEntry()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardThemeTests.java80 private void setKeyboardThemePreference(final String prefKey, final int themeId) { in setKeyboardThemePreference() argument
84 mPrefs.edit().putString(prefKey, themeIdString).apply(); in setKeyboardThemePreference()
89 mPrefs.edit().remove(prefKey).apply(); in setKeyboardThemePreference()
94 mPrefs.edit().putString(prefKey, ILLEGAL_THEME_ID_STRING).apply(); in setKeyboardThemePreference()
113 final String prefKey = KeyboardTheme.getPreferenceKey(sdkVersion); in assertKeyboardThemePreference() local
114 setKeyboardThemePreference(prefKey, previousThemeId); in assertKeyboardThemePreference()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java306 final String prefKey = context.getString(R.string.notifications_enabled_pref_key); in shouldNotify() local
309 return prefs.getBoolean(prefKey, defaultValue); in shouldNotify()
326 final String prefKey = context.getString(R.string.notification_vibration_pref_key); in shouldVibrate() local
329 return prefs.getBoolean(prefKey, defaultValue); in shouldVibrate()
1157 final String prefKey = context.getString(R.string.notifications_group_children_key); in getGroupChildIds() local
1158 final String groupChildIdsText = BuglePrefs.getApplicationPrefs().getString(prefKey, ""); in getGroupChildIds()
1175 final String prefKey = context.getString(R.string.notifications_group_children_key); in writeGroupChildIds() local
1176 BuglePrefs.getApplicationPrefs().putString(prefKey, childIds.getDelimitedString()); in writeGroupChildIds()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DUnrestrictedDataAccessPreferenceController.java213 String prefKey; in removeUselessPrefs() local
217 prefKey = pref.getKey(); in removeUselessPrefs()
218 if (!appsKeySet.isEmpty() && appsKeySet.contains(prefKey)) { in removeUselessPrefs()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceController.java213 String prefKey; in removeUselessPrefs() local
217 prefKey = pref.getKey(); in removeUselessPrefs()
218 if (!appsKeySet.isEmpty() && appsKeySet.contains(prefKey)) { in removeUselessPrefs()
/packages/apps/Messaging/src/com/android/messaging/util/
DRingtoneUtil.java38 final String prefKey = context.getString(R.string.notification_sound_pref_key); in getNotificationRingtoneUri() local
39 ringtoneString = prefs.getString(prefKey, null); in getNotificationRingtoneUri()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DWriteSystemSettingsPreferenceController.java29 public WriteSystemSettingsPreferenceController(Context context, String prefKey) { in WriteSystemSettingsPreferenceController() argument
30 super(context, prefKey); in WriteSystemSettingsPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DWriteSystemSettingsPreferenceController.java29 public WriteSystemSettingsPreferenceController(Context context, String prefKey) { in WriteSystemSettingsPreferenceController() argument
30 super(context, prefKey); in WriteSystemSettingsPreferenceController()
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DSettingsActivity.java78 String prefKey = getIntent().getStringExtra(EXTRA_FRAGMENT_ARG_KEY); in onCreate() local
79 if (!TextUtils.isEmpty(prefKey)) { in onCreate()
80 args.putString(EXTRA_FRAGMENT_ARG_KEY, prefKey); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DFeedbackPreferenceControllerTest.java55 final String prefKey = mController.getPreferenceKey(); in setUp() local
56 when(mScreen.findPreference(prefKey)).thenReturn(mPreference); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DTelephonyBasePreferenceControllerTest.java80 public TestPreferenceController(Context context, String prefKey) { in TestPreferenceController() argument
81 super(context, prefKey); in TestPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DDefaultAssistPreferenceController.java47 public DefaultAssistPreferenceController(Context context, String prefKey, in DefaultAssistPreferenceController() argument
50 mPrefKey = prefKey; in DefaultAssistPreferenceController()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultAssistPreferenceController.java47 public DefaultAssistPreferenceController(Context context, String prefKey, in DefaultAssistPreferenceController() argument
50 mPrefKey = prefKey; in DefaultAssistPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
DSimStatusPreferenceControllerTest.java77 final String prefKey = mController.getPreferenceKey(); in setUp() local
78 when(mPreference.getKey()).thenReturn(prefKey); in setUp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java165 final String prefKey = getPreferenceKey(sdkVersion); in saveKeyboardThemeId() local
166 prefs.edit().putString(prefKey, Integer.toString(themeId)).apply(); in saveKeyboardThemeId()

12