Home
last modified time | relevance | path

Searched refs:newPrefs (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkPreferenceList.java68 final ArrayList<T> newPrefs = new ArrayList<>(mPreferences); in plus() local
70 newPrefs.add(pref); in plus()
72 return new NetworkPreferenceList<>(newPrefs); in plus()
79 final ArrayList<T> newPrefs = new ArrayList<>(); in minus() local
82 newPrefs.add(existingPref); in minus()
85 return new NetworkPreferenceList<>(newPrefs); in minus()
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java355 SharedPreferences newPrefs) { in copyPreferences() argument
362 newPrefs.edit().remove(key).apply(); in copyPreferences()
365 newPrefs.edit().putString(key, boolValue).apply(); in copyPreferences()
368 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
376 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
382 newPrefs.edit().putString(key, (String) value).apply(); in copyPreferences()
386 newPrefs.edit().remove(key).apply(); in copyPreferences()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSliceFragment.java320 List<Preference> newPrefs = new ArrayList<>(); in update() local
332 newPrefs.add(preference); in update()
336 updatePreferenceScreen(preferenceScreen, newPrefs); in update()
384 private void updatePreferenceScreen(PreferenceScreen screen, List<Preference> newPrefs) { in updatePreferenceScreen() argument
395 for (Preference newPref : newPrefs) { in updatePreferenceScreen()
411 for (int i = 0; i < newPrefs.size(); i++) { in updatePreferenceScreen()
412 if (newPrefs.get(i) instanceof TwoStatePreference) { in updatePreferenceScreen()
414 i, ((TwoStatePreference) newPrefs.get(i)).isChecked()); in updatePreferenceScreen()
419 for (int i = 0; i < newPrefs.size(); i++) { in updatePreferenceScreen()
420 Preference newPref = newPrefs.get(i); in updatePreferenceScreen()
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DCredentialManagerPreferenceController.java450 Map<String, CombiPreference> newPrefs = in maybeUpdateListOfPrefs() local
455 if (existingPrefPackageNames.equals(newPrefs.keySet())) { in maybeUpdateListOfPrefs()
464 mPrefs.putAll(newPrefs); in maybeUpdateListOfPrefs()
465 for (CombiPreference pref : newPrefs.values()) { in maybeUpdateListOfPrefs()