Home
last modified time | relevance | path

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

12345678910>>...17

/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/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java20 import android.content.SharedPreferences;
73 static int getGlobalIntentId(SharedPreferences prefs) { in getGlobalIntentId()
80 static void updateGlobalIntentId(SharedPreferences prefs) { in updateGlobalIntentId()
88 static CitySort getCitySort(SharedPreferences prefs) { in getCitySort()
97 static void toggleCitySort(SharedPreferences prefs) { in toggleCitySort()
107 static boolean getAutoShowHomeClock(SharedPreferences prefs) { in getAutoShowHomeClock()
114 static TimeZone getHomeTimeZone(Context context, SharedPreferences prefs, TimeZone defaultTZ) { in getHomeTimeZone()
137 static ClockStyle getClockStyle(Context context, SharedPreferences prefs) { in getClockStyle()
144 static boolean getDisplayClockSeconds(SharedPreferences prefs) { in getDisplayClockSeconds()
151 static void setDisplayClockSeconds(SharedPreferences prefs, boolean displaySeconds) { in setDisplayClockSeconds()
[all …]
DStopwatchDAO.java19 import android.content.SharedPreferences;
58 static Stopwatch getStopwatch(SharedPreferences prefs) { in getStopwatch()
77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) { in setStopwatch()
78 final SharedPreferences.Editor editor = prefs.edit(); in setStopwatch()
98 static List<Lap> getLaps(SharedPreferences prefs) { in getLaps()
131 static void addLap(SharedPreferences prefs, int newLapCount, long accumulatedTime) { in addLap()
141 static void clearLaps(SharedPreferences prefs) { in clearLaps()
142 final SharedPreferences.Editor editor = prefs.edit(); in clearLaps()
DTimerDAO.java19 import android.content.SharedPreferences;
72 static List<Timer> getTimers(SharedPreferences prefs) { in getTimers()
105 static Timer addTimer(SharedPreferences prefs, Timer timer) { in addTimer()
106 final SharedPreferences.Editor editor = prefs.edit(); in addTimer()
138 static void updateTimer(SharedPreferences prefs, Timer timer) { in updateTimer()
139 final SharedPreferences.Editor editor = prefs.edit(); in updateTimer()
158 static void removeTimer(SharedPreferences prefs, Timer timer) { in removeTimer()
159 final SharedPreferences.Editor editor = prefs.edit(); in removeTimer()
186 private static Set<String> getTimerIds(SharedPreferences prefs) { in getTimerIds()
DCustomRingtoneDAO.java19 import android.content.SharedPreferences;
53 static CustomRingtone addCustomRingtone(SharedPreferences prefs, Uri uri, String title) { in addCustomRingtone()
71 static void removeCustomRingtone(SharedPreferences prefs, long id) { in removeCustomRingtone()
75 final SharedPreferences.Editor editor = prefs.edit(); in removeCustomRingtone()
90 static List<CustomRingtone> getCustomRingtones(SharedPreferences prefs) { in getCustomRingtones()
104 private static Set<String> getRingtoneIds(SharedPreferences prefs) { in getRingtoneIds()
/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/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()
175 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); in upgradeTypesToStrings()
176 SharedPreferences oldGlobalPreferences = in upgradeTypesToStrings()
282 SharedPreferences oldGlobalPreferences = in forceLocationChoice()
354 private void copyPreferences(SharedPreferences oldPrefs, in copyPreferences()
355 SharedPreferences newPrefs) { in copyPreferences()
401 SharedPreferences oldCameraPreferences = in upgradeCameraSettingsFiles()
404 SharedPreferences newCameraPreferences = in upgradeCameraSettingsFiles()
418 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/DocumentsUI/src/com/android/documentsui/prefs/
DPrefsBackupHelper.java19 import android.content.SharedPreferences;
20 import android.content.SharedPreferences.Editor;
31 private SharedPreferences mDefaultPreferences;
34 PrefsBackupHelper(SharedPreferences overridePreferences) { in PrefsBackupHelper()
45 void getBackupPreferences(SharedPreferences prefs) { in getBackupPreferences()
56 void putBackupPreferences(SharedPreferences prefs) { in putBackupPreferences()
63 private void copyMatchingPreferences(SharedPreferences source, Editor destination) { in copyMatchingPreferences()
DPreferencesMonitor.java20 import android.content.SharedPreferences;
21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
37 private final SharedPreferences mPrefs;
43 SharedPreferences prefs, in PreferencesMonitor()
60 void onSharedPreferenceChanged(SharedPreferences prefs, String key) { 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/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;
219 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref()
301 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate()
322 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
332 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
337 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
342 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
354 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
359 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
376 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
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()
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 …]
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerUtils.java20 import android.content.SharedPreferences;
55 public static SharedPreferences getFacetSharedPrefs(Context context) { in getFacetSharedPrefs()
64 public static void launch(Context context, SharedPreferences sharedPrefs, String facetId, in launch()
66 SharedPreferences.Editor editor = sharedPrefs.edit(); in launch()
84 public static void saveLastLaunchedAppInfo(SharedPreferences sharedPrefs, String facetId, in saveLastLaunchedAppInfo()
86 SharedPreferences.Editor editor = sharedPrefs.edit(); in saveLastLaunchedAppInfo()
103 public static AppLaunchInformation getLastLaunchedAppInfo(SharedPreferences sharedPrefs) { in getLastLaunchedAppInfo()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DWatchdog.java19 import android.content.SharedPreferences;
38 private SharedPreferences mSharedPrefs;
47 public Watchdog(Context context, TextView view, SharedPreferences prefs) { in Watchdog()
88 private LinkedList<String> getEventsFromSharedPrefs(SharedPreferences prefs) { in getEventsFromSharedPrefs()
97 private void saveEventsToSharedPrefs(SharedPreferences prefs, LinkedList<String> list) { in saveEventsToSharedPrefs()
106 SharedPreferences.Editor editor = prefs.edit(); in saveEventsToSharedPrefs()
/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()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java26 import android.content.SharedPreferences;
153 SharedPreferences sp = context.getSharedPreferences( in shouldShowNotification()
255 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationShownCount()
257 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationShownCount()
264 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationDismissedCount()
266 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationDismissedCount()
273 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in delayNextNotification()
275 SharedPreferences.Editor editor = sp.edit(); in delayNextNotification()
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/preference/
DPreferenceLiveData.java19 import android.content.SharedPreferences;
34 private final SharedPreferences mPreferences;
37 private final SharedPreferences.OnSharedPreferenceChangeListener mListener =
45 @NonNull SharedPreferences preferences, @NonNull String key) { in PreferenceLiveData()
55 protected abstract T fetchValue(@NonNull SharedPreferences preferences, @NonNull String key); in fetchValue()
/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/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DQuickSettingsPreferenceFragment.java22 import android.content.SharedPreferences;
34 SharedPreferences.OnSharedPreferenceChangeListener, Preference.OnPreferenceClickListener {
86 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onResume()
98 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onPause()
103 private void updateDescriptions(SharedPreferences sharedPreferences) { in updateDescriptions()
121 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()

12345678910>>...17