Home
last modified time | relevance | path

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

12345

/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java21 import android.content.SharedPreferences;
48 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVibrationEnabled()
49 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled()
61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVibrationPreference()
67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setRingtoneUri()
70 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri()
82 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getRingTonePreference()
97 Context context, SharedPreferences prefs) { in migrateVoicemailVibrationSettingsIfNeeded()
110 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
123 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java24 import android.content.SharedPreferences;
31 public static void clear(SharedPreferences sp) { in clear()
32 SharedPreferences.Editor editor = sp.edit(); in clear()
38 public static void setPeopleTileKey(SharedPreferences sp, PeopleTileKey key) { in setPeopleTileKey()
43 public static void setPeopleTileKey(SharedPreferences sp, String shortcutId, int userId, in setPeopleTileKey()
45 SharedPreferences.Editor editor = sp.edit(); in setPeopleTileKey()
53 public static PeopleTileKey getPeopleTileKey(SharedPreferences sp) { in getPeopleTileKey()
DPeopleBackupFollowUpJob.java31 import android.content.SharedPreferences;
110 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); in onStartJob()
111 SharedPreferences.Editor editor = sp.edit(); in onStartJob()
112 SharedPreferences followUp = this.getSharedPreferences( in onStartJob()
114 SharedPreferences.Editor followUpEditor = followUp.edit(); in onStartJob()
140 public Map<String, Set<String>> processFollowUpFile(SharedPreferences followUp, in processFollowUpFile()
141 SharedPreferences.Editor followUpEditor) { in processFollowUpFile()
187 SharedPreferences.Editor followUpEditor, SharedPreferences sp) { in cancelJobAndClearRemainingWidgets()
195 Set<String>> remainingWidgets, SharedPreferences sp) { in removeUnavailableShortcutsFromSharedStorage()
DPeopleSpaceUtils.java33 import android.content.SharedPreferences;
93 public static Set<String> getStoredWidgetIds(SharedPreferences sp, PeopleTileKey key) { in getStoredWidgetIds()
108 SharedPreferences widgetSp = context.getSharedPreferences(String.valueOf(appWidgetId), in setSharedPreferencesStorageForTile()
112 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in setSharedPreferencesStorageForTile()
113 SharedPreferences.Editor editor = sp.edit(); in setSharedPreferencesStorageForTile()
131 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in removeSharedPreferencesStorageForTile()
132 SharedPreferences.Editor editor = sp.edit(); in removeSharedPreferencesStorageForTile()
139 SharedPreferences widgetSp = context.getSharedPreferences(String.valueOf(widgetId), in removeSharedPreferencesStorageForTile()
141 SharedPreferences.Editor widgetEditor = widgetSp.edit(); in removeSharedPreferencesStorageForTile()
148 private static void addAppWidgetIdForKey(SharedPreferences sp, SharedPreferences.Editor editor, in addAppWidgetIdForKey()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleBackupHelper.java33 import android.content.SharedPreferences;
125 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in performBackup()
132 SharedPreferences backupSp = mContext.getSharedPreferences( in performBackup()
134 SharedPreferences.Editor backupEditor = backupSp.edit(); in performBackup()
162 SharedPreferences backupSp = mContext.getSharedPreferences( in restoreEntity()
166 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in restoreEntity()
167 SharedPreferences.Editor editor = sp.edit(); in restoreEntity()
168 SharedPreferences followUp = mContext.getSharedPreferences( in restoreEntity()
170 SharedPreferences.Editor followUpEditor = followUp.edit(); in restoreEntity()
195 public void backupKey(Map.Entry<String, ?> entry, SharedPreferences.Editor backupEditor, in backupKey()
[all …]
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/utils/
DContextWithServiceOverrides.java21 import android.content.SharedPreferences;
30 private SharedPreferences mSharedPreferencesOverride;
54 public void setSharedPreferencesOverride(SharedPreferences override) { in setSharedPreferencesOverride()
59 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DSharedPreferencesHelperTest.java26 import android.content.SharedPreferences;
50 SharedPreferences widgetSp = mContext.getSharedPreferences( in setStorageForTile()
53 SharedPreferences.Editor widgetEditor = widgetSp.edit(); in setStorageForTile()
64 SharedPreferences sp = mContext.getSharedPreferences( in testGetPeopleTileKey()
76 SharedPreferences sp = mContext.getSharedPreferences( in testSetPeopleTileKey()
90 SharedPreferences sp = mContext.getSharedPreferences( in testClear()
DPeopleBackupFollowUpJobTest.java32 import android.content.SharedPreferences;
85 private final SharedPreferences mSp = PreferenceManager.getDefaultSharedPreferences(mContext);
86 private final SharedPreferences.Editor mEditor = mSp.edit();
87 private final SharedPreferences mFollowUpSp = mContext.getSharedPreferences(
89 private final SharedPreferences.Editor mFollowUpEditor = mFollowUpSp.edit();
90 private final SharedPreferences mWidgetIdSp = mContext.getSharedPreferences(
92 private final SharedPreferences mSecondWidgetIdSp = mContext.getSharedPreferences(
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java21 import android.content.SharedPreferences;
22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
39 private final SharedPreferences mPreferences;
103 SharedPreferences.Editor editor = mPreferences.edit(); in addApprovedService()
153 SharedPreferences.Editor editor = mPreferences.edit(); in pruneApprovedServices()
/frameworks/ex/common/java/com/android/common/
DSharedPreferencesCompat.java19 import android.content.SharedPreferences;
32 Class cls = SharedPreferences.Editor.class;
39 public static void apply(SharedPreferences.Editor editor) { in apply()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DCryptoSettings.java22 import android.content.SharedPreferences;
23 import android.content.SharedPreferences.Editor;
61 private final SharedPreferences mSharedPreferences;
73 SharedPreferences sharedPreferences = in getInstance()
85 SharedPreferences sharedPreferences = in getInstanceForTesting()
90 private CryptoSettings(SharedPreferences sharedPreferences, Context context) { in CryptoSettings()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportPrefs.java20 import android.content.SharedPreferences;
37 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState()
43 final SharedPreferences prefs = context.getSharedPreferences( in setWarningState()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationTracker.java22 import android.content.SharedPreferences;
55 private final SharedPreferences mSharedPreferences;
63 TertiaryKeyRotationTracker(SharedPreferences sharedPreferences, int maxBackupsTillRotation) { in TertiaryKeyRotationTracker()
117 SharedPreferences.Editor editor = mSharedPreferences.edit(); in markAllForRotation()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DSettingsActivity.java17 import android.content.SharedPreferences;
18 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSharedPreferenceLoggerTest.java27 import android.content.SharedPreferences;
59 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putInt_shouldNotLogInitialPut()
77 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putBoolean_shouldNotLogInitialPut()
99 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_shouldNotLogInitialPut()
115 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_biggerThanIntMax_shouldLogIntMax()
129 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_smallerThanIntMin_shouldLogIntMin()
142 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putFloat_shouldNotLogInitialPut()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DPrefState.java20 import android.content.SharedPreferences;
21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
38 private final SharedPreferences mPrefs;
97 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DConnectionRecordManager.java19 import android.content.SharedPreferences;
45 private SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
74 final SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in setConnectionRecord()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupPreferences.java20 import android.content.SharedPreferences;
34 private final SharedPreferences mPreferences;
35 private final SharedPreferences.Editor mEditor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePrefs.java20 import android.content.SharedPreferences;
21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
60 private static SharedPreferences prefs(Context context) { in prefs()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java27 import android.content.SharedPreferences;
104 private SharedPreferences mSharedPreferences;
118 private SharedPreferences.Editor mEditor;
510 public SharedPreferences getSharedPreferences() { in getSharedPreferences()
544 public static SharedPreferences getDefaultSharedPreferences(Context context) { in getDefaultSharedPreferences()
663 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
672 SharedPreferences.Editor editor = in setDefaultValues()
695 SharedPreferences.Editor getEditor() { in getEditor()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DRemoveReceiver.java22 import android.content.SharedPreferences;
33 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DSharedPreferencesTest.java20 import android.content.SharedPreferences;
43 SharedPreferences prefs = context.getSharedPreferences("test", Context.MODE_PRIVATE); in timeCachedGetSharedPreferences()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginPrefs.java18 import android.content.SharedPreferences;
37 private final SharedPreferences mSharedPrefs;
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/
DUceUtils.java20 import android.content.SharedPreferences;
274 SharedPreferences sharedPreferences = in saveDeviceStateToPreference()
276 SharedPreferences.Editor editor = sharedPreferences.edit(); in saveDeviceStateToPreference()
283 SharedPreferences sharedPreferences = in restoreDeviceState()
316 SharedPreferences sharedPreferences = in removeDeviceStateFromPreference()
318 SharedPreferences.Editor editor = sharedPreferences.edit(); in removeDeviceStateFromPreference()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetConfigure.java21 import android.content.SharedPreferences;
46SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)

12345