Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPrefs.java32 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE); in read()
36 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE).edit(); in edit()
/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()
455 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
489 mEditor = getSharedPreferences().edit(); in getEditor()
494 return getSharedPreferences().edit(); in getEditor()
DPreference.java1001 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference
1006 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences()
1307 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue()
1396 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString()
1451 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
1495 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt()
1539 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat()
1583 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong()
1627 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/core/java/android/content/
DContextWrapper.java152 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper
153 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
DContext.java431 public abstract SharedPreferences getSharedPreferences(String name, in getSharedPreferences() method in Context
/frameworks/base/services/java/com/android/server/
DBootReceiver.java86 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/base/test-runner/src/android/test/mock/
DMockContext.java127 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MockContext
/frameworks/base/docs/html/guide/topics/data/
Ddata-storage.jd99 <li>{@link android.content.Context#getSharedPreferences(String,int)
100 getSharedPreferences()} - Use this if you need multiple preferences files identified by name,
136 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
147 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
/frameworks/base/core/java/android/webkit/
DWebSettings.java324 .getSharedPreferences(PREF_FILE, in createHandler()
1855 SharedPreferences sp = mContext.getSharedPreferences(PREF_FILE, in syncSettingsAndCreateHandler()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java145 … mDeviceProperties = context.getSharedPreferences(devicePropertiesName, Context.MODE_PRIVATE); in initDeviceProperties()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java1087 public SharedPreferences getSharedPreferences(String arg0, int arg1) { in getSharedPreferences() method in BridgeContext
/frameworks/base/core/java/android/server/
DBluetoothService.java1142 SharedPreferences sp = mContext.getSharedPreferences(SHARED_PREFERENCES_NAME, in isBluetoothDock()
1665 mContext.getSharedPreferences(SHARED_PREFERENCES_NAME,
/frameworks/base/docs/html/guide/topics/security/
Dsecurity.jd101 with {@link android.content.Context#getSharedPreferences},
/frameworks/base/core/java/android/app/
DContextImpl.java576 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextImpl
DActivity.java3975 return getSharedPreferences(getLocalClassName(), mode); in getPreferences()
/frameworks/base/api/
Dcurrent.txt5039 …method public abstract android.content.SharedPreferences getSharedPreferences(java.lang.String, in…
5173 method public android.content.SharedPreferences getSharedPreferences(java.lang.String, int);
15357 method public android.content.SharedPreferences getSharedPreferences();
15538 method public android.content.SharedPreferences getSharedPreferences();
19623 method public android.content.SharedPreferences getSharedPreferences(java.lang.String, int);
D14.txt5039 …method public abstract android.content.SharedPreferences getSharedPreferences(java.lang.String, in…
5173 method public android.content.SharedPreferences getSharedPreferences(java.lang.String, int);
15357 method public android.content.SharedPreferences getSharedPreferences();
15538 method public android.content.SharedPreferences getSharedPreferences();
19623 method public android.content.SharedPreferences getSharedPreferences(java.lang.String, int);