/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | VoicemailNotificationSettingsUtil.java | 21 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/ |
D | SharedPreferencesHelper.java | 24 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()
|
D | PeopleBackupFollowUpJob.java | 31 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()
|
D | PeopleSpaceUtils.java | 33 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/ |
D | PeopleBackupHelper.java | 33 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/ |
D | ContextWithServiceOverrides.java | 21 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/ |
D | SharedPreferencesHelperTest.java | 26 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()
|
D | PeopleBackupFollowUpJobTest.java | 32 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/ |
D | ApprovedPrintServices.java | 21 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/ |
D | SharedPreferencesCompat.java | 19 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/ |
D | CryptoSettings.java | 22 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/ |
D | BugreportPrefs.java | 20 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/ |
D | TertiaryKeyRotationTracker.java | 22 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/ |
D | SettingsActivity.java | 17 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/ |
D | SharedPreferenceLoggerTest.java | 27 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/ |
D | PrefState.java | 20 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/ |
D | ConnectionRecordManager.java | 19 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/ |
D | UserBackupPreferences.java | 20 import android.content.SharedPreferences; 34 private final SharedPreferences mPreferences; 35 private final SharedPreferences.Editor mEditor;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumePrefs.java | 20 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/ |
D | PreferenceManager.java | 27 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/ |
D | RemoveReceiver.java | 22 import android.content.SharedPreferences; 33 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | SharedPreferencesTest.java | 20 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/ |
D | PluginPrefs.java | 18 import android.content.SharedPreferences; 37 private final SharedPreferences mSharedPrefs;
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/ |
D | UceUtils.java | 20 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/ |
D | TestAppWidgetConfigure.java | 21 import android.content.SharedPreferences; 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
|