Home
last modified time | relevance | path

Searched refs:getSharedPreferences (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DConnectionRecordManager.java45 private SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in ConnectionRecordManager
46 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
56 return getSharedPreferences(context).getInt(id, 0); in fetchConnectionRecord()
63 mLastSelectedDevice = getSharedPreferences(context).getString(KEY_LAST_SELECTED_DEVICE, in fetchLastSelectedDevice()
74 final SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in setConnectionRecord()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginPrefs.java40 mSharedPrefs = context.getSharedPreferences(PREFS, 0); in PluginPrefs()
55 return context.getSharedPreferences(PREFS, 0).getBoolean(HAS_PLUGINS, false); in hasPlugins()
59 context.getSharedPreferences(PREFS, 0).edit().putBoolean(HAS_PLUGINS, true).apply(); in setHasPlugins()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportPrefs.java37 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.java45 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); in onResume()
56 .getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); in onPause()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DSharedPreferencesTest.java43 SharedPreferences prefs = context.getSharedPreferences("test", Context.MODE_PRIVATE); in timeCachedGetSharedPreferences()
45 prefs = context.getSharedPreferences("test", Context.MODE_PRIVATE); in timeCachedGetSharedPreferences()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java510 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in PreferenceManager
529 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
545 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences()
663 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
702 mEditor = getSharedPreferences().edit(); in getEditor()
707 return getSharedPreferences().edit(); in getEditor()
DPreference.java1228 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference
1233 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences()
1586 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue()
1681 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString()
1734 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
1788 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt()
1842 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat()
1896 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong()
1950 return mPreferenceManager.getSharedPreferences().getBoolean(mKey, defaultReturnValue); in getPersistedBoolean()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationModeController.java327 mCurrentUserContext.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE) in switchFromGestureNavModeIfNotSupportedByDefaultLauncher()
333 .getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE) in showNotificationIfDefaultLauncherSupportsGestureNav()
347 mCurrentUserContext.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE) in showNotificationIfDefaultLauncherSupportsGestureNav()
421 .getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE) in dump()
/frameworks/base/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/
DCrashingMainActivity.java37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
/frameworks/base/test-mock/api/
Dremoved.txt5 method public android.content.SharedPreferences getSharedPreferences(java.io.File, int);
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DRemoveReceiver.java33 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetConfigure.java46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
DTestAppWidgetProvider.java53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java353 final SharedPreferences prefs = getSharedPreferences(context); in maybeCrashWithTerribleFailure()
396 private SharedPreferences getSharedPreferences(@NonNull Context context) {
401 .getSharedPreferences(prefsFile, Context.MODE_PRIVATE);
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationTracker.java49 context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE)); in getInstance()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java114 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE);
123 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java36 mAutoDisabledPrefs = context.getSharedPreferences( in PluginEnablerImpl()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneResultAdapter.java144 SharedPreferences prefs = mContext.getSharedPreferences(SHARED_PREFS_NAME, in onSetFilter()
197 SharedPreferences prefs = mContext.getSharedPreferences(SHARED_PREFS_NAME, in saveRecentTimezone()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java47 mPreferences = owner.getSharedPreferences(APPROVED_SERVICES_PREFERENCE, in ApprovedPrintServices()
/frameworks/base/media/java/android/mtp/
DMtpServer.java66 mContext.getSharedPreferences(strID_PREFS_NAME, Context.MODE_PRIVATE); in MtpServer()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java475 SharedPreferences prefs = mContext.getSharedPreferences(
509 SharedPreferences prefs = mContext.getSharedPreferences(
548 SharedPreferences prefs = mContext.getSharedPreferences(
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java124 SharedPreferences prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in onFullBackup()
255 SharedPreferences prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in onRestoreFinished()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileLifecycleManager.java429 … return context.getSharedPreferences(TILES, 0).getBoolean(component.flattenToString(), false); in isTileAdded()
433 context.getSharedPreferences(TILES, 0).edit().putBoolean(component.flattenToString(), in setTileAdded()
/frameworks/base/core/java/android/content/
DContextWrapper.java177 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper
178 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
183 public SharedPreferences getSharedPreferences(File file, int mode) { in getSharedPreferences() method in ContextWrapper
184 return mBase.getSharedPreferences(file, mode); in getSharedPreferences()
/frameworks/base/core/java/android/util/
DHashedStringCache.java195 return context.getSharedPreferences(prefsFile, Context.MODE_PRIVATE); in getHashSharedPreferences()

123