Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPrefs.java33 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE); in read()
37 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE).edit(); in edit()
/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.java348 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in PreferenceManager
350 mSharedPreferences = mContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
366 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences()
475 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
509 mEditor = getSharedPreferences().edit(); in getEditor()
514 return getSharedPreferences().edit(); in getEditor()
DPreference.java1011 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference
1016 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences()
1317 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue()
1406 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString()
1461 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
1505 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt()
1549 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat()
1593 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong()
1637 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/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.jd52 <li>{@link android.content.Context#getSharedPreferences(String,int)
53 getSharedPreferences()} &mdash; Use this if you need multiple shared preference files identified
69 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/services/java/com/android/server/
DBootReceiver.java98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
/frameworks/base/core/java/android/content/
DContextWrapper.java160 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper
161 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
DContext.java483 public abstract SharedPreferences getSharedPreferences(String name, in getSharedPreferences() method in Context
/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java39 SharedPreferences sp = getContext().getSharedPreferences("OperationSchedulerTest", 0); in getFreshStorage()
/frameworks/base/docs/html/guide/topics/data/
Ddata-storage.jd86 <li>{@link android.content.Context#getSharedPreferences(String,int)
87 getSharedPreferences()} - Use this if you need multiple preferences files identified by name,
123 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
134 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
/frameworks/base/core/java/android/webkit/
DWebSettingsClassic.java220 .getSharedPreferences(PREF_FILE, in createHandler()
1705 SharedPreferences sp = mContext.getSharedPreferences(PREF_FILE, in syncSettingsAndCreateHandler()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java131 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).
/frameworks/base/docs/html/training/enterprise/
Ddevice-management-policy.jd107 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE);
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java192 … mDeviceProperties = context.getSharedPreferences(devicePropertiesName, Context.MODE_PRIVATE); in initDeviceProperties()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java1100 public SharedPreferences getSharedPreferences(String arg0, int arg1) { in getSharedPreferences() method in BridgeContext
/frameworks/base/docs/html/guide/topics/ui/
Dsettings.jd852 getPreferenceScreen().getSharedPreferences()
859 getPreferenceScreen().getSharedPreferences()
/frameworks/base/docs/html/guide/topics/security/
Dpermissions.jd102 with {@link android.content.Context#getSharedPreferences},
/frameworks/base/core/java/android/app/
DContextImpl.java659 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextImpl
DActivity.java4449 return getSharedPreferences(getLocalClassName(), mode); in getPreferences()

12