Home
last modified time | relevance | path

Searched refs:SharedPreferences (Results 1 – 25 of 269) sorted by relevance

1234567891011

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java20 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 …]
DAdvancedSettingsFragment.java20 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()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java20 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/
DVoicemailNotificationSettingsUtil.java20 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 …]
DVisualVoicemailSettingsUtil.java19 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 …]
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java20 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 …]
DAppUpgrader.java20 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 …]
DCameraPictureSizesCacher.java20 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()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java8 import android.content.SharedPreferences;
71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this) ; in onStartCommand()
278 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in saveNotification()
280 SharedPreferences.Editor editor = prefs.edit(); in saveNotification()
296 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in showSavedNotification()
317 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in clearSavedNotification()
319 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification()
333 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in readFromSharedPrefs()
341 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in readLapsFromPrefs()
360 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in writeToSharedPrefs()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java20 import android.content.SharedPreferences;
85 public void writeToSharedPref(SharedPreferences prefs) { in writeToSharedPref()
91 final SharedPreferences.Editor editor = prefs.edit() in writeToSharedPref()
106 public void readFromSharedPref(SharedPreferences prefs) { in readFromSharedPref()
119 public boolean deleteFromSharedPref(SharedPreferences prefs) { in deleteFromSharedPref()
125 final SharedPreferences.Editor editor = prefs.edit() in deleteFromSharedPref()
200 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getNextTimerId()
260 public static TimerObj getTimerFromSharedPrefs(SharedPreferences prefs, int timerId) { in getTimerFromSharedPrefs()
267 public static void getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers) { in getTimersFromSharedPrefs()
281 public static void getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers, in getTimersFromSharedPrefs()
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/
DFmUtils.java20 import android.content.SharedPreferences;
213 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getLastSearchedLocation()
226 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setLastSearchedLocation()
227 SharedPreferences.Editor editor = prefs.edit(); in setLastSearchedLocation()
239 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isFirstTimePlayFm()
249 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setIsFirstTimePlayFm()
250 SharedPreferences.Editor editor = prefs.edit(); in setIsFirstTimePlayFm()
259 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isFirstEnterStationList()
262 SharedPreferences.Editor editor = prefs.edit(); in isFirstEnterStationList()
309 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getIsSpeakerModeOnFocusLost()
[all …]
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java21 import android.content.SharedPreferences;
22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
31 SharedPreferences,
33 private SharedPreferences mPrefGlobal; // global preferences
34 private SharedPreferences mPrefLocal; // per-camera preferences
54 SharedPreferences oldprefs = in ComboPreferences()
78 Map<String, ?> m, String key, SharedPreferences src) { in movePrefFrom()
96 private void moveGlobalPrefsFrom(SharedPreferences src) { in moveGlobalPrefsFrom()
129 public SharedPreferences getGlobal() { in getGlobal()
133 public SharedPreferences getLocal() { in getLocal()
[all …]
DCameraSettings.java22 import android.content.SharedPreferences;
23 import android.content.SharedPreferences.Editor;
115 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize()
342 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences()
351 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
361 public static void upgradeGlobalPreferences(SharedPreferences pref) { in upgradeGlobalPreferences()
366 private static void upgradeOldVersion(SharedPreferences pref) { in upgradeOldVersion()
375 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion()
412 private static void upgradeCameraId(SharedPreferences pref) { in upgradeCameraId()
426 public static int readPreferredCameraId(SharedPreferences pref) { in readPreferredCameraId()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java22 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/Calendar/src/com/android/calendar/
DCalendarUtils.java23 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()
DUtils.java30 import android.content.SharedPreferences;
221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref()
310 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate()
331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
341 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
346 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
351 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
363 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
368 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
385 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java21 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/LegacyCamera/src/com/android/camera/
DCameraSettings.java21 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 …]
DComboPreferences.java20 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()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumSettings.java18 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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DCommonPreferences.java20 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/apps/UnifiedEmail/src/com/android/mail/preferences/
DVersionedPrefs.java25 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()
DMailPrefs.java21 import android.content.SharedPreferences;
268 final SharedPreferences sharedPreferences = getSharedPreferences(); in getRemovalAction()
291 final SharedPreferences sharedPreferences = getSharedPreferences(); in getIsConversationListSwipeEnabled()
384 final SharedPreferences sharedPreferences = getSharedPreferences(); in getDisplayImagesFromSender()
434 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelist()
441 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelistPatterns()
448 final SharedPreferences.Editor editor = getEditor(); in clearSenderWhiteList()
460 final SharedPreferences sharedPreferences = getSharedPreferences(); in getShowSenderImages()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java21 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/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java20 import android.content.SharedPreferences;
159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences()
161 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences()
359 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean()
508 final SharedPreferences.Editor editor = prefs.edit(); in setParameterBoolean()
529 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean()
560 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterInt()
562 final SharedPreferences.Editor editor = prefs.edit(); in setParameterInt()
795 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterInt()
868 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterIntArray()
[all …]

1234567891011