/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SubScreenFragment.java | 39 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 …]
|
D | DebugSettingsFragment.java | 153 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()
|
D | Settings.java | 334 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/ |
D | UserDictionaryListPreferenceController.java | 145 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/ |
D | UserDictionaryListPreferenceController.java | 145 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/ |
D | BaseTimeZonePreferenceControllerTest.java | 44 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/ |
D | DisplayOptionsPreferenceFragment.java | 347 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | EmergencyBroadcastPreferenceController.java | 45 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/Settings/src/com/android/settings/notification/ |
D | EmergencyBroadcastPreferenceController.java | 45 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/ |
D | SuggestionEventStore.java | 103 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/ |
D | TmaPrefs.java | 80 PrefEntry(TmaPrefKey prefKey) { in PrefEntry() argument 81 mKey = prefKey.name(); in PrefEntry() 149 EnumPrefEntry(TmaPrefKey prefKey, T[] enumValues, T defaultValue) { in EnumPrefEntry() argument 150 super(prefKey); in EnumPrefEntry()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 80 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/ |
D | BugleNotifications.java | 306 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/ |
D | UnrestrictedDataAccessPreferenceController.java | 213 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/ |
D | UnrestrictedDataAccessPreferenceController.java | 213 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/ |
D | RingtoneUtil.java | 38 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/ |
D | WriteSystemSettingsPreferenceController.java | 29 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/ |
D | WriteSystemSettingsPreferenceController.java | 29 public WriteSystemSettingsPreferenceController(Context context, String prefKey) { in WriteSystemSettingsPreferenceController() argument 30 super(context, prefKey); in WriteSystemSettingsPreferenceController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | FeedbackPreferenceControllerTest.java | 55 final String prefKey = mController.getPreferenceKey(); in setUp() local 56 when(mScreen.findPreference(prefKey)).thenReturn(mPreference); in setUp()
|
/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | SettingsActivity.java | 81 String prefKey = getIntent().getStringExtra(EXTRA_FRAGMENT_ARG_KEY); in onCreate() local 82 if (!TextUtils.isEmpty(prefKey)) { in onCreate() 83 args.putString(EXTRA_FRAGMENT_ARG_KEY, prefKey); in onCreate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | TelephonyBasePreferenceControllerTest.java | 85 public TestPreferenceController(Context context, String prefKey) { in TestPreferenceController() argument 86 super(context, prefKey); in TestPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
D | DefaultAssistPreferenceController.java | 47 public DefaultAssistPreferenceController(Context context, String prefKey, in DefaultAssistPreferenceController() argument 50 mPrefKey = prefKey; in DefaultAssistPreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/ |
D | DefaultAssistPreferenceController.java | 47 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/ |
D | SimStatusPreferenceControllerTest.java | 77 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/ |
D | KeyboardTheme.java | 165 final String prefKey = getPreferenceKey(sdkVersion); in saveKeyboardThemeId() local 166 prefs.edit().putString(prefKey, Integer.toString(themeId)).apply(); in saveKeyboardThemeId()
|