Searched refs:preferences (Results 1 - 25 of 67) sorted by relevance

123

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DBackupSharedPreference.java17 package com.android.mail.preferences;
H A DBasePreferenceMigrator.java17 package com.android.mail.preferences;
24 * Interface to allow migrating preferences from other projects into the UnifiedEmail code, so apps
25 * can slowly move their preferences into the shared code.
43 * Migrates preferences to UnifiedEmail.
45 * @param oldVersion The previous version of UnifiedEmail's preferences
46 * @param newVersion The new version of UnifiedEmail's preferences
H A DPreferenceMigratorHolder.java17 package com.android.mail.preferences;
20 * Holds a {@link PreferenceMigratorCreator} to be used for migrating preferences.
H A DVersionedPrefs.java18 package com.android.mail.preferences;
37 * A high-level API to store and retrieve preferences, that can be versioned in a similar manner as
80 LogUtils.w(LogUtils.TAG, "No preference migrator found, not migrating preferences");
145 * Commits all pending changes to the preferences.
190 * Return a list of shared preferences that should be backed up.
195 final Map<String, ?> preferences = sharedPreferences.getAll();
197 for (final Map.Entry<String, ?> entry : preferences.entrySet()) {
216 * Restores preferences from a backup.
218 public void restorePreferences(final List<BackupSharedPreference> preferences) { argument
219 for (final BackupSharedPreference preference : preferences) {
[all...]
/packages/apps/Email/src/com/android/email/
H A DEmailApplication.java24 import com.android.email.preferences.EmailPreferenceMigrator;
29 import com.android.mail.preferences.BasePreferenceMigrator;
30 import com.android.mail.preferences.PreferenceMigratorHolder;
31 import com.android.mail.preferences.PreferenceMigratorHolder.PreferenceMigratorCreator;
/packages/apps/Email/src/com/android/email/preferences/
H A DEmailPreferenceMigrator.java16 package com.android.email.preferences;
26 import com.android.mail.preferences.BasePreferenceMigrator;
27 import com.android.mail.preferences.FolderPreferences;
28 import com.android.mail.preferences.MailPrefs;
73 final Preferences preferences = Preferences.getPreferences(context);
78 final boolean hasSwipeDelete = preferences.hasSwipeDelete();
80 final boolean swipeDelete = preferences.getSwipeDelete();
85 final boolean isReplyAllSet = preferences.hasReplyAll();
87 final boolean replyAll = preferences.getReplyAll();
169 final Set<String> whitelistedAddresses = preferences
[all...]
/packages/apps/Camera2/src/com/android/camera/settings/
H A DSettingsManager.java103 * Get the SettingsManager's default preferences. This is useful
118 SharedPreferences preferences = mContext.getSharedPreferences(
122 preferences.registerOnSharedPreferenceChangeListener(listener);
125 return preferences;
138 protected void closePreferences(SharedPreferences preferences) { argument
140 preferences.unregisterOnSharedPreferenceChangeListener(listener);
236 default preferences. */
243 * Camera and module preferences files are cached,
322 SharedPreferences preferences = getPreferencesFromScope(scope);
323 return preferences
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DTwoStatePreferenceHelper.java46 final ArrayList<Preference> preferences = new ArrayList<>();
49 preferences.add(group.getPreference(index));
53 final Preference preference = preferences.get(index);
/packages/apps/Browser/src/com/android/browser/preferences/
H A DLabPreferencesFragment.java17 package com.android.browser.preferences;
33 // Load the XML preferences file
H A DNonformattingListPreference.java16 package com.android.browser.preferences;
H A DDebugPreferencesFragment.java17 package com.android.browser.preferences;
35 // Load the XML preferences file
H A DPrivacySecurityPreferencesFragment.java17 package com.android.browser.preferences;
35 // Load the preferences from an XML resource
H A DBandwidthPreferencesFragment.java17 package com.android.browser.preferences;
36 // Load the XML preferences file
H A DFontSizePreview.java17 package com.android.browser.preferences;
H A DInvertedContrastPreview.java17 package com.android.browser.preferences;
H A DSeekBarSummaryPreference.java17 package com.android.browser.preferences;
H A DWebViewPreview.java17 package com.android.browser.preferences;
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastReceiverApp.java28 * The application class loads the default preferences at first start,
38 PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
/packages/apps/Email/src/com/android/email/activity/setup/
H A DGeneralPreferences.java24 import com.android.mail.preferences.MailPrefs.PreferenceKeys;
/packages/apps/Browser/src/com/android/browser/
H A DBrowserPreferencesPage.java25 import com.android.browser.preferences.BandwidthPreferencesFragment;
26 import com.android.browser.preferences.DebugPreferencesFragment;
H A DSystemAllowGeolocationOrigins.java91 SharedPreferences preferences = BrowserSettings.getInstance()
94 preferences.getString(LAST_READ_ALLOW_GEOLOCATION_ORIGINS, "");
102 preferences.edit()
/packages/apps/Camera/src/com/android/camera/
H A DCameraSettings.java416 // Note: This method accesses the global preferences directly, not the
417 // combo preferences.
438 public static int readExposure(ComboPreferences preferences) { argument
439 String exposure = preferences.getString(
496 ComboPreferences preferences, Parameters parameters) {
497 int currentCameraId = readPreferredCameraId(preferences);
499 // Clear the preferences of both cameras.
502 preferences.setLocalId(context, backCameraId);
503 Editor editor = preferences.edit();
509 preferences
495 restorePreferences(Context context, ComboPreferences preferences, Parameters parameters) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraSettings.java363 public static int readExposure(ComboPreferences preferences) { argument
364 String exposure = preferences.getString(
422 ComboPreferences preferences, Parameters parameters) {
423 int currentCameraId = readPreferredCameraId(preferences);
425 // Clear the preferences of both cameras.
428 preferences.setLocalId(context, backCameraId);
429 Editor editor = preferences.edit();
435 preferences.setLocalId(context, frontCameraId);
436 Editor editor = preferences.edit();
441 // Switch back to the preferences o
421 restorePreferences(Context context, ComboPreferences preferences, Parameters parameters) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/
H A DClearPictureApprovalsDialogFragment.java28 import com.android.mail.preferences.MailPrefs;
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DCachedBluetoothDevice.java677 // Migrates data from old data store (in Settings app's shared preferences) to new (in Bluetooth
678 // app's shared preferences).
680 SharedPreferences preferences = mContext.getSharedPreferences(
682 if (!preferences.contains(mDevice.getAddress())) {
687 int oldPermission = preferences.getInt(mDevice.getAddress(), ACCESS_UNKNOWN);
695 SharedPreferences.Editor editor = preferences.edit();
720 // Migrates data from old data store (in Settings app's shared preferences) to new (in Bluetooth
721 // app's shared preferences).
723 SharedPreferences preferences = mContext.getSharedPreferences(
725 if (!preferences
[all...]

Completed in 407 milliseconds

123