/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/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/base/services/backup/java/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTracker.java | 20 import android.content.SharedPreferences; 52 private final SharedPreferences mSharedPreferences; 56 TertiaryKeyRotationTracker(SharedPreferences sharedPreferences) { in TertiaryKeyRotationTracker() 103 SharedPreferences.Editor editor = mSharedPreferences.edit(); in markAllForRotation()
|
/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()
|
D | OperationScheduler.java | 19 import android.content.SharedPreferences; 76 private final SharedPreferences mStorage; 82 public OperationScheduler(SharedPreferences storage) { in OperationScheduler() 315 SharedPreferences.Editor editor = mStorage.edit(); in onTransientError()
|
/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/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/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/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/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()
|
D | Preference.java | 27 import android.content.SharedPreferences; 1228 public SharedPreferences getSharedPreferences() { in getSharedPreferences() 1256 public SharedPreferences.Editor getEditor() { in getEditor() 1618 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit() 1655 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() 1708 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet() 1761 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() 1815 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistFloat() 1869 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistLong() 1923 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistBoolean()
|
/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/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)
|
D | TestAppWidgetProvider.java | 23 import android.content.SharedPreferences; 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | MultiDexExtractor.java | 20 import android.content.SharedPreferences; 180 SharedPreferences multiDexPreferences = getMultiDexPreferences(context); in loadExistingExtractions() 223 SharedPreferences prefs = getMultiDexPreferences(context); in isModified() 326 SharedPreferences prefs = getMultiDexPreferences(context); in putStoredApkInfo() 327 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo() 348 private static SharedPreferences getMultiDexPreferences(Context context) { in getMultiDexPreferences()
|
/frameworks/base/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 26 import android.content.SharedPreferences; 309 final SharedPreferences prefs = getSharedPreferences(); in maybeCrashWithTerribleFailure() 352 private SharedPreferences getSharedPreferences() { 364 private long tryGetLastCrashTime(@Nullable SharedPreferences prefs) { 374 private void tryWriteLastCrashTime(@Nullable SharedPreferences prefs, long value) {
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 26 import android.content.SharedPreferences; 114 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 123 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 125 SharedPreferences.Editor editor = prefs.edit();
|
/frameworks/base/core/java/android/content/ |
D | SharedPreferences.java | 48 public interface SharedPreferences { interface 68 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged()
|
/frameworks/base/core/java/android/util/ |
D | HashedStringCache.java | 20 import android.content.SharedPreferences; 59 private SharedPreferences mSharedPreferences; 188 private SharedPreferences getHashSharedPreferences(Context context) { in getHashSharedPreferences()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginEnablerImpl.java | 19 import android.content.SharedPreferences; 29 private final SharedPreferences mAutoDisabledPrefs;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeSharedPreferences.java | 19 import android.content.SharedPreferences; 28 public class BridgeSharedPreferences implements SharedPreferences {
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverTargetActionsDialogFragment.java | 26 import android.content.SharedPreferences; 77 SharedPreferences sp = ChooserActivity.getPinnedSharedPrefs(getContext()); in onClick()
|