/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 20 import android.content.SharedPreferences; 45 public final class Settings implements SharedPreferences.OnSharedPreferenceChangeListener { 125 private SharedPreferences mPrefs; 156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() 177 final SharedPreferences prefs = mPrefs; in loadSettings() 204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, in readKeypressSoundEnabled() 210 public static boolean readVibrationEnabled(final SharedPreferences prefs, in readVibrationEnabled() 217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs, in readAutoCorrectEnabled() 226 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs, in readBlockPotentiallyOffensive() 236 public static boolean readGestureInputEnabled(final SharedPreferences prefs, in readGestureInputEnabled() [all …]
|
D | AdvancedSettingsFragment.java | 20 import android.content.SharedPreferences; 57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate() 100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume() 105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() 118 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings() 132 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings() 176 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressSoundVolumeSettings() 227 final SharedPreferences prefs = getSharedPreferences(); in setupKeyLongpressTimeoutSettings()
|
D | SubScreenFragment.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 79 final SharedPreferences getSharedPreferences() { 105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { 131 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | BuglePrefsImpl.java | 20 import android.content.SharedPreferences; 45 final SharedPreferences prefs = mContext.getSharedPreferences( in getInt() 53 final SharedPreferences prefs = mContext.getSharedPreferences( in getLong() 61 final SharedPreferences prefs = mContext.getSharedPreferences( in getBoolean() 69 final SharedPreferences prefs = mContext.getSharedPreferences( in getString() 83 final SharedPreferences prefs = mContext.getSharedPreferences( in putInt() 85 final SharedPreferences.Editor editor = prefs.edit(); in putInt() 93 final SharedPreferences prefs = mContext.getSharedPreferences( in putLong() 95 final SharedPreferences.Editor editor = prefs.edit(); in putLong() 103 final SharedPreferences prefs = mContext.getSharedPreferences( in putBoolean() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | VoicemailNotificationSettingsUtil.java | 20 import android.content.SharedPreferences; 49 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setVibrationEnabled() 50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() 56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in isVibrationEnabled() 62 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setRingtoneUri() 65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() 71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in getRingtoneUri() 86 Phone phone, SharedPreferences prefs) { in migrateVoicemailVibrationSettingsIfNeeded() 99 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() 112 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() [all …]
|
D | VisualVoicemailSettingsUtil.java | 19 import android.content.SharedPreferences; 61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailEnabled() 62 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailEnabled() 76 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailEnabled() 96 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailUserSet() 104 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailCredentialsFromStatusMessage() 105 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailCredentialsFromStatusMessage() 124 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVisualVoicemailCredentials() 130 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVisualVoicemailRetryInterval() 142 SharedPreferences.Editor editor = in setVisualVoicemailRetryInterval() [all …]
|
D | VoicemailProviderSettingsUtil.java | 20 import android.content.SharedPreferences; 55 SharedPreferences prefs = getPrefs(context); in load() 103 SharedPreferences prefs = getPrefs(context); in save() 104 SharedPreferences.Editor editor = prefs.edit(); in save() 136 SharedPreferences prefs = getPrefs(context); in delete() 143 private static SharedPreferences getPrefs(Context context) { in getPrefs()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.java | 20 import android.content.SharedPreferences; 43 private static SharedPreferences sPrefs; 52 final SharedPreferences prefs = getSharedPreferences(context); in getCitySort() 63 final SharedPreferences prefs = getSharedPreferences(context); in toggleCitySort() 72 final SharedPreferences prefs = getSharedPreferences(context); in getAutoShowHomeClock() 80 final SharedPreferences prefs = getSharedPreferences(context); in getHomeTimeZone() 92 final SharedPreferences prefs = getSharedPreferences(context); in setDefaultHomeTimeZone() 118 final SharedPreferences prefs = getSharedPreferences(context); in getTimerRingtoneUri() 128 final SharedPreferences prefs = getSharedPreferences(context); in getDefaultAlarmRingtoneUri() 137 final SharedPreferences prefs = getSharedPreferences(context); in setDefaultAlarmRingtoneUri() [all …]
|
D | StopwatchDAO.java | 20 import android.content.SharedPreferences; 54 private static SharedPreferences sPrefs; 62 final SharedPreferences prefs = getSharedPreferences(context); in getStopwatch() 74 final SharedPreferences prefs = getSharedPreferences(context); in setStopwatch() 75 final SharedPreferences.Editor editor = prefs.edit(); in setStopwatch() 94 final SharedPreferences prefs = getSharedPreferences(context); in getLaps() 139 final SharedPreferences prefs = getSharedPreferences(context); in clearLaps() 140 final SharedPreferences.Editor editor = prefs.edit(); in clearLaps() 151 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
|
D | TimerDAO.java | 20 import android.content.SharedPreferences; 68 private static SharedPreferences sPrefs; 76 final SharedPreferences prefs = getSharedPreferences(context); in getTimers() 109 final SharedPreferences prefs = getSharedPreferences(context); in addTimer() 110 final SharedPreferences.Editor editor = prefs.edit(); in addTimer() 142 final SharedPreferences prefs = getSharedPreferences(context); in updateTimer() 143 final SharedPreferences.Editor editor = prefs.edit(); in updateTimer() 162 final SharedPreferences prefs = getSharedPreferences(context); in removeTimer() 163 final SharedPreferences.Editor editor = prefs.edit(); in removeTimer() 190 final SharedPreferences prefs = getSharedPreferences(context); in getTimerIds() [all …]
|
D | CityDAO.java | 20 import android.content.SharedPreferences; 55 private static SharedPreferences sPrefs; 64 final SharedPreferences prefs = getSharedPreferences(context); in getSelectedCities() 83 final SharedPreferences prefs = getSharedPreferences(context); in setSelectedCities() 84 final SharedPreferences.Editor editor = prefs.edit(); in setSelectedCities() 153 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | SettingsManager.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 82 private final SharedPreferences mDefaultPreferences; 83 private SharedPreferences mCustomPreferences; 117 public SharedPreferences getDefaultPreferences() { in getDefaultPreferences() 128 protected SharedPreferences openPreferences(String scope) { in openPreferences() 130 SharedPreferences preferences; in openPreferences() 151 protected void closePreferences(SharedPreferences preferences) { in closePreferences() 182 SharedPreferences sharedPreferences, String key) { in getSharedPreferenceListener() 276 private SharedPreferences getPreferencesFromScope(String scope) { [all …]
|
D | CameraPictureSizesCacher.java | 20 import android.content.SharedPreferences; 46 SharedPreferences defaultPrefs = PreferenceManager.getDefaultSharedPreferences(context); in updateSizesForCamera() 51 SharedPreferences.Editor editor = defaultPrefs.edit(); in updateSizesForCamera() 86 SharedPreferences defaultPrefs = PreferenceManager.getDefaultSharedPreferences(context); in getSizesForCamera() 91 SharedPreferences.Editor editor = defaultPrefs.edit(); in getSizesForCamera() 112 SharedPreferences defaultPrefs = PreferenceManager.getDefaultSharedPreferences(context); in getCachedSizesForCamera()
|
D | AppUpgrader.java | 20 import android.content.SharedPreferences; 107 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); in getLastVersion() 174 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); in upgradeTypesToStrings() 175 SharedPreferences oldGlobalPreferences = in upgradeTypesToStrings() 281 SharedPreferences oldGlobalPreferences = in forceLocationChoice() 353 private void copyPreferences(SharedPreferences oldPrefs, in copyPreferences() 354 SharedPreferences newPrefs) { in copyPreferences() 400 SharedPreferences oldCameraPreferences = in upgradeCameraSettingsFiles() 403 SharedPreferences newCameraPreferences = in upgradeCameraSettingsFiles() 417 SharedPreferences oldModulePreferences = in upgradeModuleSettingsFiles() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | CommonPreferences.java | 20 import android.content.SharedPreferences; 25 public static SharedPreferences getCommonPreferences(final Context context) { in getCommonPreferences() 29 public static void enable(final SharedPreferences pref, final String id) { in enable() 30 final SharedPreferences.Editor editor = pref.edit(); in enable() 35 public static void disable(final SharedPreferences pref, final String id) { in disable() 36 final SharedPreferences.Editor editor = pref.edit(); in disable()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | AlbumSettings.java | 18 import android.content.SharedPreferences; 31 private static HashMap<SharedPreferences, AlbumSettings> singletons; 33 private final SharedPreferences mSettings; 36 public static AlbumSettings getAlbumSettings(SharedPreferences settings) { in getAlbumSettings() 38 singletons = new HashMap<SharedPreferences, AlbumSettings>(); in getAlbumSettings() 109 private AlbumSettings(SharedPreferences settings) { in AlbumSettings() 124 SharedPreferences.Editor editor = mSettings.edit(); in writeEnabledAlbumsLocked()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 21 import android.content.SharedPreferences; 56 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() 86 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() 136 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() 145 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() 155 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp() 174 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveDockAutoConnectSetting() 180 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in removeDockAutoConnectSetting()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarUtils.java | 23 import android.content.SharedPreferences; 126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); in onQueryComplete() 223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in setTimeZone() 273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in getTimeZone() 330 public static void setSharedPreference(SharedPreferences prefs, String key, String value) { in setSharedPreference() 332 SharedPreferences.Editor editor = prefs.edit(); in setSharedPreference() 345 public static void setSharedPreference(SharedPreferences prefs, String key, boolean value) { in setSharedPreference() 347 SharedPreferences.Editor editor = prefs.edit(); in setSharedPreference() 353 public static SharedPreferences getSharedPreferences(Context context, String prefsName) { in getSharedPreferences()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ComboPreferences.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 29 public class ComboPreferences implements SharedPreferences, OnSharedPreferenceChangeListener { 30 private SharedPreferences mPrefGlobal; // global preferences 31 private SharedPreferences mPrefLocal; // per-camera preferences 63 public SharedPreferences getGlobal() { in getGlobal() 67 public SharedPreferences getLocal() { in getLocal() 235 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in onSharedPreferenceChanged()
|
D | CameraSettings.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.Editor; 105 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() 287 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences() 296 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences() 306 public static void upgradeGlobalPreferences(SharedPreferences pref) { in upgradeGlobalPreferences() 315 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences() 352 public static int readPreferredCameraId(SharedPreferences pref) { in readPreferredCameraId() 356 public static void writePreferredCameraId(SharedPreferences pref, in writePreferredCameraId() 375 public static int readEffectType(SharedPreferences pref) { in readEffectType() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | VersionedPrefs.java | 25 import android.content.SharedPreferences; 26 import android.content.SharedPreferences.Editor; 44 private final SharedPreferences mSharedPreferences; 98 protected SharedPreferences getSharedPreferences() { in getSharedPreferences() 107 SharedPreferences.OnSharedPreferenceChangeListener listener) { in registerOnSharedPreferenceChangeListener() 112 SharedPreferences.OnSharedPreferenceChangeListener listener) { in unregisterOnSharedPreferenceChangeListener() 194 final SharedPreferences sharedPreferences = getSharedPreferences(); in getBackupPreferences()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | InstallShortcutReceiver.java | 22 import android.content.SharedPreferences; 68 private static void addToStringSet(SharedPreferences sharedPrefs, in addToStringSet() 69 SharedPreferences.Editor editor, String key, String value) { in addToStringSet() 81 SharedPreferences sharedPrefs, PendingInstallShortcutInfo info) { in addToInstallQueue() 101 SharedPreferences.Editor editor = sharedPrefs.edit(); in addToInstallQueue() 111 SharedPreferences sharedPrefs) { in getAndClearInstallQueue() 208 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in onReceive() 224 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in flushInstallQueue() 235 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in processInstallShortcut() 280 final SharedPreferences sharedPrefs, int[] result) { in installShortcut() [all …]
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | WidgetProvider.java | 21 import android.content.SharedPreferences; 49 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in onDeleted() 50 final SharedPreferences.Editor editor = prefs.edit(); in onDeleted() 89 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in migrateLegacyWidgetInformation() 90 final SharedPreferences.Editor editor = prefs.edit(); in migrateLegacyWidgetInformation() 176 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadAccountIdPref() 187 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadMailboxIdPref()
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | QuickSettingsPreferenceFragment.java | 22 import android.content.SharedPreferences; 33 SharedPreferences.OnSharedPreferenceChangeListener, Preference.OnPreferenceClickListener { 85 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onResume() 97 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onPause() 102 private void updateDescriptions(SharedPreferences sharedPreferences) { in updateDescriptions() 120 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/testing/ |
D | InjectedServices.java | 20 import android.content.SharedPreferences; 36 private SharedPreferences mSharedPreferences; 49 public void setSharedPreferences(SharedPreferences sharedPreferences) { in setSharedPreferences() 53 public SharedPreferences getSharedPreferences() { in getSharedPreferences()
|