/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Prefs.java | 26 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE); in read() 30 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE).edit(); in edit()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportPrefs.java | 35 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState() 41 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/core/java/android/preference/ |
D | PreferenceManager.java | 351 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in PreferenceManager 353 mSharedPreferences = mContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences() 369 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences() 478 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues() 512 mEditor = getSharedPreferences().edit(); in getEditor() 517 return getSharedPreferences().edit(); in getEditor()
|
D | Preference.java | 1045 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference 1050 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences() 1371 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue() 1460 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString() 1515 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet() 1559 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt() 1603 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat() 1647 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong() 1691 return mPreferenceManager.getSharedPreferences().getBoolean(mKey, defaultReturnValue); in getPersistedBoolean()
|
/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/packages/SystemUI/src/com/android/systemui/qs/ |
D | UsageTracker.java | 71 return mContext.getSharedPreferences(mContext.getPackageName(), 0); in getSharedPrefs()
|
/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/docs/html/training/basics/data-storage/ |
D | shared-preferences.jd | 50 <li>{@link android.content.Context#getSharedPreferences(String,int) 51 getSharedPreferences()} — Use this if you need multiple shared preference files identified 67 SharedPreferences sharedPref = context.getSharedPreferences(
|
/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/SystemUI/src/com/android/systemui/recents/ |
D | RecentsConfiguration.java | 169 SharedPreferences settings = context.getSharedPreferences(context.getPackageName(), 0); in update() 290 SharedPreferences settings = context.getSharedPreferences(context.getPackageName(), 0); in updateSearchBarAppWidgetId()
|
D | RecentsActivity.java | 577 SharedPreferences settings = getSharedPreferences(getPackageName(), 0); in onDebugModeTriggered()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 168 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper 169 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
|
D | Context.java | 556 public abstract SharedPreferences getSharedPreferences(String name, in getSharedPreferences() method in Context
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
|
/frameworks/ex/common/tests/src/com/android/common/ |
D | OperationSchedulerTest.java | 39 SharedPreferences sp = getContext().getSharedPreferences("OperationSchedulerTest", 0); in getFreshStorage()
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
D | WebViewChromiumFactoryProvider.java | 115 mWebViewPrefs = ActivityThread.currentApplication().getSharedPreferences( in WebViewChromiumFactoryProvider()
|
/frameworks/multidex/library/src/android/support/multidex/ |
D | MultiDexExtractor.java | 245 return context.getSharedPreferences(PREFS_FILE, in getMultiDexPreferences()
|
/frameworks/base/docs/html/guide/topics/data/ |
D | data-storage.jd | 87 <li>{@link android.content.Context#getSharedPreferences(String,int) 88 getSharedPreferences()} - Use this if you need multiple preferences files identified by name, 124 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); 135 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 174 return context.getSharedPreferences(IMS_SHARED_PREFERENCES, in isEnhanced4gLteModeSettingEnabledByUser()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 143 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MockContext
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | regular_updates.jd | 72 context.getSharedPreferences(PREFS, Context.MODE_WORLD_READABLE);
|
/frameworks/base/docs/html/training/basics/network-ops/ |
D | managing.jd | 257 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); 267 … getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
|
/frameworks/base/docs/html/training/cloudsync/ |
D | backupapi.jd | 140 // are the same strings that are passed to getSharedPreferences(String, int).
|