Home
last modified time | relevance | path

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

12345678910>>...23

/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/
DSettings.java20 import android.content.SharedPreferences;
81 SharedPreferences sharedPref = getSharedPreferences(context); in hasErrDataBudget()
85 SharedPreferences.Editor editor = sharedPref.edit(); in hasErrDataBudget()
102 SharedPreferences sharedPref = getSharedPreferences(context); in getErrDataBudgetConsumed()
117 SharedPreferences sharedPref = getSharedPreferences(context); in consumeErrDataBudget()
118 SharedPreferences.Editor editor = sharedPref.edit(); in consumeErrDataBudget()
134 SharedPreferences sharedPref = getSharedPreferences(context); in generateAndSetId()
141 SharedPreferences.Editor editor = sharedPref.edit(); in generateAndSetId()
150 SharedPreferences sharedPref = getSharedPreferences(context); in getId()
178 SharedPreferences sharedPref = getSharedPreferences(context); in setDeviceConfig()
[all …]
/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 …]
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()
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()
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()
/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/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/DocumentsUI/src/com/android/documentsui/prefs/
DPrefsBackupHelper.java19 import android.content.SharedPreferences;
20 import android.content.SharedPreferences.Editor;
32 private SharedPreferences mDefaultPreferences;
35 PrefsBackupHelper(SharedPreferences overridePreferences) { in PrefsBackupHelper()
46 void getBackupPreferences(SharedPreferences prefs) { in getBackupPreferences()
57 void putBackupPreferences(SharedPreferences prefs) { in putBackupPreferences()
64 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/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 …]
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/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/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSStatsTest.java26 import android.content.SharedPreferences;
54 private SharedPreferences mSharedPreferences;
59 private class FakeSharedPreferences implements SharedPreferences {
120 private class TestEditor implements SharedPreferences.Editor {
124 public SharedPreferences.Editor putString(String key, String value) { in putString()
130 public SharedPreferences.Editor putStringSet(String key, Set<String> values) { in putStringSet()
136 public SharedPreferences.Editor putInt(String key, int value) { in putInt()
142 public SharedPreferences.Editor putLong(String key, long value) { in putLong()
148 public SharedPreferences.Editor putFloat(String key, float value) { in putFloat()
154 public SharedPreferences.Editor putBoolean(String key, boolean value) { in putBoolean()
[all …]
/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/
DSettings.java20 import android.content.SharedPreferences;
76 SharedPreferences sharedPref = cxt.getSharedPreferences( in Settings()
136 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateCarrierConfig()
138 SharedPreferences.Editor editor = sharedPref.edit(); in updateCarrierConfig()
161 public String loadServicePackageName(int subId, SharedPreferences sharedPref) { in loadServicePackageName()
171 public int loadReleaseTime(int subId, SharedPreferences sharedPref) { in loadReleaseTime()
189 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateServiceConfig()
191 SharedPreferences.Editor editor = sharedPref.edit(); in updateServiceConfig()
241 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateTestConfig()
243 SharedPreferences.Editor editor = sharedPref.edit(); in updateTestConfig()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DWatchdog.java19 import android.content.SharedPreferences;
39 private final SharedPreferences mSharedPrefs;
52 public Watchdog(TextView view, SharedPreferences prefs) { in Watchdog()
97 private LinkedList<String> getEventsFromSharedPrefs(SharedPreferences prefs) { in getEventsFromSharedPrefs()
106 private void saveEventsToSharedPrefs(SharedPreferences prefs, LinkedList<String> list) { in saveEventsToSharedPrefs()
115 SharedPreferences.Editor editor = prefs.edit(); in saveEventsToSharedPrefs()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.kt22 import android.content.SharedPreferences
55 fun setSharedPreference(prefs: SharedPreferences, key: String?, value: Boolean) { in setSharedPreference()
56 val editor: SharedPreferences.Editor = prefs.edit() in setSharedPreference()
63 fun getSharedPreferences(context: Context, prefsName: String?): SharedPreferences { in getSharedPreferences()
76 fun setSharedPreference(prefs: SharedPreferences, key: String?, value: String?) { in setSharedPreference()
77 val editor: SharedPreferences.Editor = prefs.edit() in setSharedPreference()
133 val prefs: SharedPreferences = in onQueryComplete()
219 val prefs: SharedPreferences = getSharedPreferences(context, mPrefsName) in setTimeZone()
268 val prefs: SharedPreferences = getSharedPreferences(context, mPrefsName) in getTimeZone()
/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()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DPersonalStorage.java27 import android.content.SharedPreferences;
44 private final SharedPreferences mSharedPrefs;
58 SharedPreferences.Editor editor = mSharedPrefs.edit(); in store()
70 SharedPreferences.Editor editor = mSharedPrefs.edit(); in storeWifi()
142 SharedPreferences.Editor editor = mSharedPrefs.edit(); in saveReapplyPansOnBootCompleteState()
148 SharedPreferences.Editor editor = mSharedPrefs.edit(); in saveReapplyWifiOnBootCompleteState()
/packages/apps/Contacts/src/com/android/contacts/testing/
DInjectedServices.java20 import android.content.SharedPreferences;
34 private SharedPreferences mSharedPreferences;
45 public void setSharedPreferences(SharedPreferences sharedPreferences) { in setSharedPreferences()
49 public SharedPreferences getSharedPreferences() { in getSharedPreferences()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailProviderSettingsUtil.java20 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/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DNbIotSatellite.java24 import android.content.SharedPreferences;
161 SharedPreferences sh = getSharedPreferences("MySharedPref", MODE_PRIVATE); in onResume()
174 SharedPreferences sharedPreferences = getSharedPreferences(MY_SHARED_PREF, MODE_PRIVATE); in onPause()
175 SharedPreferences.Editor myEdit = sharedPreferences.edit(); in onPause()
188 SharedPreferences sharedPreferences = getSharedPreferences(MY_SHARED_PREF, MODE_PRIVATE); in onDestroy()
190 final SharedPreferences.Editor sharedPrefsEditor = sharedPreferences.edit(); in onDestroy()
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingUtils.java20 import android.content.SharedPreferences;
37 SharedPreferences preferences = context.getSharedPreferences( in getBackupCallWaitingStatus()
43 SharedPreferences preferences = context.getSharedPreferences( in getBackupCallForwardingStatus()
59 SharedPreferences.Editor preferences = context.getSharedPreferences( in saveCallWaitingStatus()
66 SharedPreferences.Editor preferences = context.getSharedPreferences( in saveCallForwardingStatus()
78 SharedPreferences.Editor preferences = context.getSharedPreferences( in clearBackupData()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java23 import android.content.SharedPreferences;
92 SharedPreferences sp = getSharedPreferences(getContext()); in onClick()
94 SharedPreferences.Editor editor = sp.edit(); in onClick()
107 SharedPreferences sp = getSharedPreferences(getContext()); in onCancel()
109 SharedPreferences.Editor editor = sp.edit(); in onCancel()
137 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()

12345678910>>...23