Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPrefs.java26 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/
DBugreportPrefs.java35 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/
DSettingsActivity.java45 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); in onResume()
56 .getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); in onPause()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java351 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()
DPreference.java1045 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/
DTestAppWidgetConfigure.java46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
DTestAppWidgetProvider.java53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DUsageTracker.java71 return mContext.getSharedPreferences(mContext.getPackageName(), 0); in getSharedPrefs()
/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/docs/html/training/basics/data-storage/
Dshared-preferences.jd50 <li>{@link android.content.Context#getSharedPreferences(String,int)
51 getSharedPreferences()} &mdash; Use this if you need multiple shared preference files identified
67 SharedPreferences sharedPref = context.getSharedPreferences(
/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/SystemUI/src/com/android/systemui/recents/
DRecentsConfiguration.java169 SharedPreferences settings = context.getSharedPreferences(context.getPackageName(), 0); in update()
290 SharedPreferences settings = context.getSharedPreferences(context.getPackageName(), 0); in updateSearchBarAppWidgetId()
DRecentsActivity.java577 SharedPreferences settings = getSharedPreferences(getPackageName(), 0); in onDebugModeTriggered()
/frameworks/base/core/java/android/content/
DContextWrapper.java168 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper
169 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
DContext.java556 public abstract SharedPreferences getSharedPreferences(String name, in getSharedPreferences() method in Context
/frameworks/base/core/java/com/android/server/
DBootReceiver.java98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java39 SharedPreferences sp = getContext().getSharedPreferences("OperationSchedulerTest", 0); in getFreshStorage()
/frameworks/webview/chromium/java/com/android/webview/chromium/
DWebViewChromiumFactoryProvider.java115 mWebViewPrefs = ActivityThread.currentApplication().getSharedPreferences( in WebViewChromiumFactoryProvider()
/frameworks/multidex/library/src/android/support/multidex/
DMultiDexExtractor.java245 return context.getSharedPreferences(PREFS_FILE, in getMultiDexPreferences()
/frameworks/base/docs/html/guide/topics/data/
Ddata-storage.jd87 <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/
DImsManager.java174 return context.getSharedPreferences(IMS_SHARED_PREFERENCES, in isEnhanced4gLteModeSettingEnabledByUser()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java143 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MockContext
/frameworks/base/docs/html/training/efficient-downloads/
Dregular_updates.jd72 context.getSharedPreferences(PREFS, Context.MODE_WORLD_READABLE);
/frameworks/base/docs/html/training/basics/network-ops/
Dmanaging.jd257 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);
267 … getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
/frameworks/base/docs/html/training/cloudsync/
Dbackupapi.jd140 // are the same strings that are passed to getSharedPreferences(String, int).

12