Home
last modified time | relevance | path

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

12345678910>>...18

/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.kt20 import android.content.SharedPreferences
62 fun getGlobalIntentId(prefs: SharedPreferences): Int { in getGlobalIntentId()
69 fun updateGlobalIntentId(prefs: SharedPreferences) { in updateGlobalIntentId()
77 fun getCitySort(prefs: SharedPreferences): CitySort { in getCitySort()
86 fun toggleCitySort(prefs: SharedPreferences) { in toggleCitySort()
96 fun getAutoShowHomeClock(prefs: SharedPreferences): Boolean { in getAutoShowHomeClock()
103 fun getHomeTimeZone(context: Context, prefs: SharedPreferences, defaultTZ: TimeZone): TimeZone { in getHomeTimeZone()
126 fun getClockStyle(context: Context, prefs: SharedPreferences): ClockStyle { in getClockStyle()
133 fun getDisplayClockSeconds(prefs: SharedPreferences): Boolean { in getDisplayClockSeconds()
140 fun setDisplayClockSeconds(prefs: SharedPreferences, displaySeconds: Boolean) { in setDisplayClockSeconds()
[all …]
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.kt19 import android.content.SharedPreferences
47 fun getStopwatch(prefs: SharedPreferences): Stopwatch { in getStopwatch()
66 fun setStopwatch(prefs: SharedPreferences, stopwatch: Stopwatch) { in setStopwatch()
67 val editor: SharedPreferences.Editor = prefs.edit() in setStopwatch()
87 fun getLaps(prefs: SharedPreferences): MutableList<Lap> { in getLaps()
120 fun addLap(prefs: SharedPreferences, newLapCount: Int, accumulatedTime: Long) { in addLap()
130 fun clearLaps(prefs: SharedPreferences) { in clearLaps()
131 val editor: SharedPreferences.Editor = prefs.edit() in clearLaps()
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.kt19 import android.content.SharedPreferences
60 fun getTimers(prefs: SharedPreferences): MutableList<Timer> { in getTimers()
93 fun addTimer(prefs: SharedPreferences, timer: Timer): Timer { in addTimer()
94 val editor: SharedPreferences.Editor = prefs.edit() in addTimer()
127 fun updateTimer(prefs: SharedPreferences, timer: Timer) { in updateTimer()
128 val editor: SharedPreferences.Editor = prefs.edit() in updateTimer()
148 fun removeTimer(prefs: SharedPreferences, timer: Timer) { in removeTimer()
149 val editor: SharedPreferences.Editor = prefs.edit() in removeTimer()
175 private fun getTimerIds(prefs: SharedPreferences): Set<String> { in getTimerIds()
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.kt19 import android.content.SharedPreferences
44 fun addCustomRingtone(prefs: SharedPreferences, uri: Uri, title: String?): CustomRingtone { in addCustomRingtone()
62 fun removeCustomRingtone(prefs: SharedPreferences, id: Long) { in removeCustomRingtone()
66 val editor: SharedPreferences.Editor = prefs.edit() in removeCustomRingtone()
83 fun getCustomRingtones(prefs: SharedPreferences): MutableList<CustomRingtone> { in getCustomRingtones()
97 private fun getRingtoneIds(prefs: SharedPreferences): MutableSet<String> { in getRingtoneIds()
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/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/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()
154 protected void closePreferences(SharedPreferences preferences) { in closePreferences()
185 SharedPreferences sharedPreferences, String key) { in getSharedPreferenceListener()
279 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()
/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java25 import android.content.SharedPreferences;
26 import android.content.SharedPreferences.Editor;
180 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in setTestingMode()
189 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in isTestingMode()
199 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in setServiceState()
207 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in getServiceState()
216 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in adjustReminderInterval()
243 public SharedPreferences getDefaultSharedPreferences() { in getDefaultSharedPreferences()
264 SharedPreferences sp = getDefaultSharedPreferences(); in initializeSharedPreference()
318 SharedPreferences.Editor sp = PreferenceManager in migrateSharedPreferenceFromLegacy()
[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/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()

12345678910>>...18