/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/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 309 final SharedPreferences prefs = getSharedPreferences(); in maybeCrashWithTerribleFailure() 352 private SharedPreferences getSharedPreferences() { 357 .getSharedPreferences(prefsFile, Context.MODE_PRIVATE);
|
/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/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/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/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 | 67 mContext.getSharedPreferences(strID_PREFS_NAME, Context.MODE_PRIVATE); in MtpServer()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileLifecycleManager.java | 432 … return context.getSharedPreferences(TILES, 0).getBoolean(component.flattenToString(), false); in isTileAdded() 436 context.getSharedPreferences(TILES, 0).edit().putBoolean(component.flattenToString(), in setTileAdded()
|
/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/telephony/java/android/telephony/ |
D | MbmsDownloadSession.java | 553 SharedPreferences prefs = mContext.getSharedPreferences( in setTempFileRootDirectory() 587 SharedPreferences prefs = mContext.getSharedPreferences( in getTempFileRootDirectory() 626 SharedPreferences prefs = mContext.getSharedPreferences( in download()
|
/frameworks/base/core/java/android/util/ |
D | HashedStringCache.java | 195 return context.getSharedPreferences(prefsFile, Context.MODE_PRIVATE); in getHashSharedPreferences()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccProfileTest.java | 569 String brandInSharedPreference = mContext.getSharedPreferences("file name", 0) in testSetOperatorBrandOverride() 587 String brandInSharedPreference = mContext.getSharedPreferences("file name", 0) in testSetOperatorBrandOverrideIccNotMatch() 590 brandInSharedPreference = mContext.getSharedPreferences("file name", 0) in testSetOperatorBrandOverrideIccNotMatch()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 180 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper 181 return mBase.getSharedPreferences(name, mode); in getSharedPreferences() 186 public SharedPreferences getSharedPreferences(File file, int mode) { in getSharedPreferences() method in ContextWrapper 187 return mBase.getSharedPreferences(file, mode); in getSharedPreferences()
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | MbmsTempFileProvider.java | 177 SharedPreferences prefs = context.getSharedPreferences(TEMP_FILE_ROOT_PREF_FILE_NAME, 0); in getEmbmsTempFileDir()
|