Home
last modified time | relevance | path

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

12

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A 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
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());
75 final void updateListPreferenceSummaryToCurrentValue(final String prefKey) {
[all …]
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/
H A DTopLevelHighlightMixin.java123 void setHighlightPreferenceKey(String prefKey) { in setHighlightPreferenceKey() argument
127 mCurrentKey = prefKey; in setHighlightPreferenceKey()
128 mTopLevelAdapter.highlightPreference(prefKey, /* scrollNeeded= */ false); in setHighlightPreferenceKey()
162 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in setHighlightMenuKey() local
163 if (TextUtils.isEmpty(prefKey)) { in setHighlightMenuKey()
167 mCurrentKey = prefKey; in setHighlightMenuKey()
168 mTopLevelAdapter.highlightPreference(prefKey, scrollNeeded); in setHighlightMenuKey()
174 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in getHighlightPrefKeyFromArguments() local
175 if (TextUtils.isEmpty(prefKey)) { in getHighlightPrefKeyFromArguments()
180 return prefKey; in getHighlightPrefKeyFromArguments()
H A DHighlightableMenu.java85 final String prefKey = metadata.getString(METADATA_KEY); in fromXml() local
86 if (TextUtils.isEmpty(prefKey)) { in fromXml()
91 MENU_TO_PREFERENCE_KEY_MAP.put(menuKey, prefKey); in fromXml()
100 final String prefKey = lookupPreferenceKey(context.getString(keyId)); in fromXml()
101 if (prefKey != null) { in fromXml()
102 MENU_TO_PREFERENCE_KEY_MAP.put(compatMenuKey, prefKey); in fromXml()
H A DTopLevelSettings.java212 public void setHighlightPreferenceKey(String prefKey) { in setHighlightPreferenceKey() argument
214 if (mHighlightMixin != null && !TextUtils.equals(prefKey, PREF_KEY_SUPPORT)) { in setHighlightPreferenceKey()
215 mHighlightMixin.setHighlightPreferenceKey(prefKey); in setHighlightPreferenceKey()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
H A DAbstractPreferenceController.java28 final String prefKey = getPreferenceKey(); in displayPreference() local
29 if (TextUtils.isEmpty(prefKey)) { in displayPreference()
34 setVisible(screen, prefKey, true /* visible */); in displayPreference()
36 final Preference preference = screen.findPreference(prefKey); in displayPreference()
41 setVisible(screen, prefKey, false /* visible */); in displayPreference()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/inputmethod/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A 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()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
H A DSharedPreferencesLogger.java111 final String prefKey = buildPrefKey(mTag, key); in logValue() local
112 if (!forceLog && !mPreferenceKeySet.contains(prefKey)) { in logValue()
115 mPreferenceKeySet.add(prefKey); in logValue()
157 prefKey, in logValue()
163 final String prefKey = mTag + "/" + key; in logPackageName() local
167 prefKey + ":" + value, in logPackageName()
/aosp12/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
H A 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()
/aosp12/packages/apps/Contacts/src/com/android/contacts/preference/
H A 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)) {
/aosp12/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
H A DTmaPrefs.java80 PrefEntry(TmaPrefKey prefKey) { in PrefEntry() argument
81 mKey = prefKey.name(); in PrefEntry()
162 EnumPrefEntry(TmaPrefKey prefKey, T[] enumValues, T defaultValue) { in EnumPrefEntry() argument
163 super(prefKey); in EnumPrefEntry()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DRingtoneUtil.java38 final String prefKey = context.getString(R.string.notification_sound_pref_key); in getNotificationRingtoneUri() local
39 ringtoneString = prefs.getString(prefKey, null); in getNotificationRingtoneUri()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/
H A DWriteSystemSettingsPreferenceController.java29 public WriteSystemSettingsPreferenceController(Context context, String prefKey) { in WriteSystemSettingsPreferenceController() argument
30 super(context, prefKey); in WriteSystemSettingsPreferenceController()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A 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()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
H A DFeedbackPreferenceControllerTest.java55 final String prefKey = mController.getPreferenceKey(); in setUp() local
56 when(mScreen.findPreference(prefKey)).thenReturn(mPreference); in setUp()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
H A DTelephonyBasePreferenceControllerTest.java86 public TestPreferenceController(Context context, String prefKey) { in TestPreferenceController() argument
87 super(context, prefKey); in TestPreferenceController()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodSubtypePreference.java52 final String prefKey, in InputMethodSubtypePreference() argument
58 setKey(prefKey); in InputMethodSubtypePreference()
/aosp12/packages/apps/Settings/src/com/android/settings/network/
H A DUsbTetherPreferenceController.java46 public UsbTetherPreferenceController(Context context, String prefKey) { in UsbTetherPreferenceController() argument
47 super(context, prefKey); in UsbTetherPreferenceController()
H A DWifiTetherDisablePreferenceController.java46 public WifiTetherDisablePreferenceController(Context context, String prefKey) { in WifiTetherDisablePreferenceController() argument
47 super(context, prefKey); in WifiTetherDisablePreferenceController()
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryChartPreferenceController.java414 final String prefKey = entry.mBatteryHistEntry.getKey(); in addPreferenceToScreen() local
415 PowerGaugePreference pref = mAppListPrefGroup.findPreference(prefKey); in addPreferenceToScreen()
420 pref = (PowerGaugePreference) mPreferenceCache.get(prefKey); in addPreferenceToScreen()
425 pref.setKey(prefKey); in addPreferenceToScreen()
426 mPreferenceCache.put(prefKey, pref); in addPreferenceToScreen()
466 final String prefKey = entry.mBatteryHistEntry.getKey(); in refreshExpandUi() local
467 final Preference pref = mAppListPrefGroup.findPreference(prefKey); in refreshExpandUi()
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/
H A DUnrestrictedDataAccessPreferenceController.java212 String prefKey; in removeUselessPrefs() local
216 prefKey = pref.getKey(); in removeUselessPrefs()
217 if (!appsKeySet.isEmpty() && appsKeySet.contains(prefKey)) { in removeUselessPrefs()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/assist/
H A DDefaultAssistPreferenceController.java47 public DefaultAssistPreferenceController(Context context, String prefKey, in DefaultAssistPreferenceController() argument
50 mPrefKey = prefKey; in DefaultAssistPreferenceController()

12