Home
last modified time | relevance | path

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

1234

/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/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/base/services/backup/java/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationTracker.java20 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/
DSharedPreferencesCompat.java19 import android.content.SharedPreferences;
32 Class cls = SharedPreferences.Editor.class;
39 public static void apply(SharedPreferences.Editor editor) { in apply()
DOperationScheduler.java19 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/
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/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/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/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/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()
DPreference.java27 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/
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/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetConfigure.java21 import android.content.SharedPreferences;
46SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
DTestAppWidgetProvider.java23 import android.content.SharedPreferences;
53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java20 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/
DConnectivityModuleConnector.java26 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/
DBackupTestActivity.java26 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/
DSharedPreferences.java48 public interface SharedPreferences { interface
68 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged()
/frameworks/base/core/java/android/util/
DHashedStringCache.java20 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/
DPluginEnablerImpl.java19 import android.content.SharedPreferences;
29 private final SharedPreferences mAutoDisabledPrefs;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java19 import android.content.SharedPreferences;
28 public class BridgeSharedPreferences implements SharedPreferences {
/frameworks/base/core/java/com/android/internal/app/
DResolverTargetActionsDialogFragment.java26 import android.content.SharedPreferences;
77 SharedPreferences sp = ChooserActivity.getPinnedSharedPrefs(getContext()); in onClick()

1234