Home
last modified time | relevance | path

Searched refs:prefKey (Results 1 – 25 of 33) 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/applications/specialaccess/notificationaccess/
DBridgedAppsPreferenceController.java126 final String prefKey = entry.info.packageName + "|" + entry.info.uid; in onRebuildComplete() local
127 appsKeySet.add(prefKey); in onRebuildComplete()
128 CheckBoxPreference preference = mScreen.findPreference(prefKey); in onRebuildComplete()
133 preference.setKey(prefKey); in onRebuildComplete()
197 String prefKey; in removeUselessPrefs() local
201 prefKey = pref.getKey(); in removeUselessPrefs()
202 if (!appsKeySet.contains(prefKey)) { in removeUselessPrefs()
/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/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.java46 public EmergencyBroadcastPreferenceController(Context context, String prefKey) { in EmergencyBroadcastPreferenceController() argument
47 this(context, new AccountRestrictionHelper(context), prefKey); in EmergencyBroadcastPreferenceController()
52 String prefKey) { in EmergencyBroadcastPreferenceController() argument
54 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.java80 PrefEntry(TmaPrefKey prefKey) { in PrefEntry() argument
81 mKey = prefKey.name(); in PrefEntry()
157 EnumPrefEntry(TmaPrefKey prefKey, T[] enumValues, T defaultValue) { in EnumPrefEntry() argument
158 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/Settings/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceController.java410 final String prefKey = entry.mBatteryHistEntry.getKey(); in addPreferenceToScreen() local
411 PowerGaugePreference pref = mAppListPrefGroup.findPreference(prefKey); in addPreferenceToScreen()
416 pref = (PowerGaugePreference) mPreferenceCache.get(prefKey); in addPreferenceToScreen()
421 pref.setKey(prefKey); in addPreferenceToScreen()
422 mPreferenceCache.put(prefKey, pref); in addPreferenceToScreen()
462 final String prefKey = entry.mBatteryHistEntry.getKey(); in refreshExpandUi() local
463 final Preference pref = mAppListPrefGroup.findPreference(prefKey); in refreshExpandUi()
/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/accessibility/
DAccessibilitySettings.java572 final String prefKey = preference.getKey(); in createAccessibilityServicePreferenceList() local
579 putBasicExtras(preference, prefKey, title, description, imageRes, htmlDescription, in createAccessibilityServicePreferenceList()
636 final String prefKey = preference.getKey(); in createAccessibilityActivityPreferenceList() local
642 putBasicExtras(preference, prefKey, title, description, imageRes, htmlDescription, in createAccessibilityActivityPreferenceList()
703 private void putBasicExtras(RestrictedPreference preference, String prefKey, in putBasicExtras() argument
707 extras.putString(EXTRA_PREFERENCE_KEY, prefKey); in putBasicExtras()
/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/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceController.java212 String prefKey; in removeUselessPrefs() local
216 prefKey = pref.getKey(); in removeUselessPrefs()
217 if (!appsKeySet.isEmpty() && appsKeySet.contains(prefKey)) { in removeUselessPrefs()
/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/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/unit/src/com/android/settings/network/telephony/
DTelephonyBasePreferenceControllerTest.java86 public TestPreferenceController(Context context, String prefKey) { in TestPreferenceController() argument
87 super(context, prefKey); in TestPreferenceController()
/packages/apps/Settings/src/com/android/settings/network/
DUsbTetherPreferenceController.java46 public UsbTetherPreferenceController(Context context, String prefKey) { in UsbTetherPreferenceController() argument
47 super(context, prefKey); in UsbTetherPreferenceController()
DWifiTetherDisablePreferenceController.java46 public WifiTetherDisablePreferenceController(Context context, String prefKey) { in WifiTetherDisablePreferenceController() argument
47 super(context, prefKey); in WifiTetherDisablePreferenceController()
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DSettingsActivity.java101 String prefKey = intent.getStringExtra(EXTRA_FRAGMENT_ARG_KEY); in onCreate() local
102 if (!TextUtils.isEmpty(prefKey)) { in onCreate()
103 args.putString(EXTRA_FRAGMENT_ARG_KEY, prefKey); in onCreate()
/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.java82 final String prefKey = mController.getPreferenceKey(); in setUp() local
83 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