Home
last modified time | relevance | path

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

1234567891011

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java20 import android.content.SharedPreferences;
42 public final class Settings implements SharedPreferences.OnSharedPreferenceChangeListener {
129 private SharedPreferences mPrefs;
159 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged()
179 final SharedPreferences prefs = mPrefs; in loadSettings()
210 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, in readKeypressSoundEnabled()
216 public static boolean readVibrationEnabled(final SharedPreferences prefs, in readVibrationEnabled()
230 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs, in readBlockPotentiallyOffensive()
240 public static boolean readGestureInputEnabled(final SharedPreferences prefs, in readGestureInputEnabled()
246 public static boolean readPhraseGestureEnabled(final SharedPreferences prefs, in readPhraseGestureEnabled()
[all …]
DAdvancedSettingsFragment.java20 import android.content.SharedPreferences;
58 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate()
118 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume()
128 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged()
141 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
155 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings()
199 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressSoundVolumeSettings()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java20 import android.content.SharedPreferences;
21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
77 private final SharedPreferences mDefaultPreferences;
78 private SharedPreferences mCustomPreferences;
108 public SharedPreferences getDefaultPreferences() { in getDefaultPreferences()
117 protected SharedPreferences openPreferences(String scope) { in openPreferences()
118 SharedPreferences preferences = mContext.getSharedPreferences( in openPreferences()
138 protected void closePreferences(SharedPreferences preferences) { in closePreferences()
159 SharedPreferences sharedPreferences, String key) { in getSharedPreferenceListener()
247 private SharedPreferences getPreferencesFromScope(String scope) {
[all …]
DAppUpgrader.java20 import android.content.SharedPreferences;
147 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); in upgradeTypesToStrings()
148 SharedPreferences oldGlobalPreferences = in upgradeTypesToStrings()
259 SharedPreferences oldGlobalPreferences = in forceLocationChoice()
326 private void copyPreferences(SharedPreferences oldPrefs, in copyPreferences()
327 SharedPreferences newPrefs) { in copyPreferences()
371 SharedPreferences oldCameraPreferences = in upgradeCameraSettingsFiles()
374 SharedPreferences newCameraPreferences = in upgradeCameraSettingsFiles()
388 SharedPreferences oldModulePreferences = in upgradeModuleSettingsFiles()
398 SharedPreferences newModulePreferences = in upgradeModuleSettingsFiles()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java10 import android.content.SharedPreferences;
255 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in saveNotification()
257 SharedPreferences.Editor editor = prefs.edit(); in saveNotification()
273 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in showSavedNotification()
294 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in clearSavedNotification()
296 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification()
310 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in readFromSharedPrefs()
318 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in readLapsFromPrefs()
337 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in writeToSharedPrefs()
339 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPrefs()
[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;
116 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize()
343 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences()
352 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
362 public static void upgradeGlobalPreferences(SharedPreferences pref) { in upgradeGlobalPreferences()
367 private static void upgradeOldVersion(SharedPreferences pref) { in upgradeOldVersion()
376 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion()
413 private static void upgradeCameraId(SharedPreferences pref) { in upgradeCameraId()
427 public static int readPreferredCameraId(SharedPreferences pref) { in readPreferredCameraId()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java20 import android.content.SharedPreferences;
83 public void writeToSharedPref(SharedPreferences prefs) { in writeToSharedPref()
84 final SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref()
100 public void readFromSharedPref(SharedPreferences prefs) { in readFromSharedPref()
118 public void deleteFromSharedPref(SharedPreferences prefs) { in deleteFromSharedPref()
119 SharedPreferences.Editor editor = prefs.edit(); in deleteFromSharedPref()
233 SharedPreferences prefs, ArrayList<TimerObj> timers) { in getTimersFromSharedPrefs()
253 SharedPreferences prefs, ArrayList<TimerObj> timers, int match) { in getTimersFromSharedPrefs()
269 SharedPreferences prefs, ArrayList<TimerObj> timers) { in putTimersInSharedPrefs()
278 SharedPreferences prefs) { in dumpTimersFromSharedPrefs()
[all …]
DTimerFullScreenFragment.java30 import android.content.SharedPreferences;
31 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
90 private SharedPreferences mPrefs;
116 TimersListAdapter createAdapter(Context context, SharedPreferences prefs) { in createAdapter()
128 SharedPreferences mmPrefs;
135 public TimersListAdapter(Context context, SharedPreferences prefs) { in TimersListAdapter()
346 public TimesUpListAdapter(Context context, SharedPreferences prefs) { in TimesUpListAdapter()
508 SharedPreferences.Editor editor = mPrefs.edit(); in onResume()
515 SharedPreferences.Editor editor = mPrefs.edit(); in onResume()
681 SharedPreferences.Editor editor = mPrefs.edit(); in updateAllTimesUpTimers()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
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 …]
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()
DGeneralPreferences.java24 import android.content.SharedPreferences;
25 import android.content.SharedPreferences.Editor;
26 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
133 public static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
152 final SharedPreferences sharedPreferences = getSharedPreferences(activity); in onCreate()
191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, in onCreate()
280 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
360 private void migrateOldPreferences(SharedPreferences prefs) { in migrateOldPreferences()
/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/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/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java21 import android.content.SharedPreferences;
52 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
82 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
120 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
129 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
139 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp()
158 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveDockAutoConnectSetting()
164 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in removeDockAutoConnectSetting()
/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/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java23 import android.content.SharedPreferences;
72 private static void addToStringSet(SharedPreferences sharedPrefs, in addToStringSet()
73 SharedPreferences.Editor editor, String key, String value) { in addToStringSet()
85 SharedPreferences sharedPrefs, PendingInstallShortcutInfo info) { in addToInstallQueue()
105 SharedPreferences.Editor editor = sharedPrefs.edit(); in addToInstallQueue()
115 public static void removeFromInstallQueue(SharedPreferences sharedPrefs, in removeFromInstallQueue()
154 SharedPreferences sharedPrefs) { in getAndClearInstallQueue()
249 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in onReceive()
265 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in flushInstallQueue()
/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;
245 final SharedPreferences sharedPreferences = getSharedPreferences(); in getRemovalAction()
263 final SharedPreferences sharedPreferences = getSharedPreferences(); in getIsConversationListSwipeEnabled()
356 final SharedPreferences sharedPreferences = getSharedPreferences(); in getDisplayImagesFromSender()
406 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelist()
413 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelistPatterns()
420 final SharedPreferences.Editor editor = getEditor(); in clearSenderWhiteList()
432 final SharedPreferences sharedPreferences = getSharedPreferences(); in getShowSenderImages()
/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()
360 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean()
509 final SharedPreferences.Editor editor = prefs.edit(); in setParameterBoolean()
530 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean()
561 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterInt()
563 final SharedPreferences.Editor editor = prefs.edit(); in setParameterInt()
796 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterInt()
869 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterIntArray()
[all …]
/packages/apps/Email/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/Calendar/src/com/android/calendar/alerts/
DAlertUtils.java25 import android.content.SharedPreferences;
229 public static SharedPreferences getFiredAlertsTable(Context context) {
249 SharedPreferences prefs = getFiredAlertsTable(context);
260 SharedPreferences prefs = getFiredAlertsTable(context);
261 SharedPreferences.Editor editor = prefs.edit();
272 SharedPreferences prefs = getFiredAlertsTable(context);
283 SharedPreferences.Editor editor = prefs.edit();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java19 import android.content.SharedPreferences;
107 static KeyboardTheme getDefaultKeyboardTheme(final SharedPreferences prefs, in getDefaultKeyboardTheme()
142 final SharedPreferences prefs) { in saveKeyboardThemeId()
156 final SharedPreferences prefs, final int sdkVersion) { in saveKeyboardThemeId()
161 public static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs) { in getKeyboardTheme()
166 static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs, final int sdkVersion) { in getKeyboardTheme()

1234567891011