/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | ConnectionRecordManager.java | 45 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/ |
D | PluginPrefs.java | 40 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/ |
D | BugreportPrefs.java | 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 | 45 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); in onResume() 56 .getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); in onPause()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | SharedPreferencesTest.java | 43 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/ |
D | PreferenceManager.java | 510 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()
|
D | Preference.java | 1228 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/ |
D | NavigationModeController.java | 327 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/ |
D | CrashingMainActivity.java | 37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
|
/frameworks/base/test-mock/api/ |
D | removed.txt | 5 method public android.content.SharedPreferences getSharedPreferences(java.io.File, int);
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | RemoveReceiver.java | 33 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetConfigure.java | 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
|
D | TestAppWidgetProvider.java | 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/base/services/net/java/android/net/ |
D | NetworkStackClient.java | 353 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/ |
D | TertiaryKeyRotationTracker.java | 49 context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE)); in getInstance()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 114 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/ |
D | PluginEnablerImpl.java | 36 mAutoDisabledPrefs = context.getSharedPreferences( in PluginEnablerImpl()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneResultAdapter.java | 144 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/ |
D | ApprovedPrintServices.java | 47 mPreferences = owner.getSharedPreferences(APPROVED_SERVICES_PREFERENCE, in ApprovedPrintServices()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpServer.java | 66 mContext.getSharedPreferences(strID_PREFS_NAME, Context.MODE_PRIVATE); in MtpServer()
|
/frameworks/base/telephony/java/android/telephony/ |
D | MbmsDownloadSession.java | 475 SharedPreferences prefs = mContext.getSharedPreferences( 509 SharedPreferences prefs = mContext.getSharedPreferences( 548 SharedPreferences prefs = mContext.getSharedPreferences(
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 124 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/ |
D | TileLifecycleManager.java | 429 … 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/ |
D | ContextWrapper.java | 177 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/ |
D | HashedStringCache.java | 195 return context.getSharedPreferences(prefsFile, Context.MODE_PRIVATE); in getHashSharedPreferences()
|