Searched refs:getSharedPreferences (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/core/java/android/util/
H A DCalendarUtils.java115 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName);
212 SharedPreferences prefs = getSharedPreferences(context, mPrefsName);
265 SharedPreferences prefs = getSharedPreferences(context, mPrefsName);
317 // SharedPreferences prefs = getSharedPreferences(context);
332 // SharedPreferences prefs = getSharedPreferences(context, prefsName);
339 public static SharedPreferences getSharedPreferences(Context context, String prefsName) { method in class:CalendarUtils
340 return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);
/frameworks/base/core/java/android/preference/
H A DPreferenceManager.java281 * @return The name that can be passed to {@link Context#getSharedPreferences(String, int)}.
282 * @see Context#getSharedPreferences(String, int)
293 * @see Context#getSharedPreferences(String, int)
304 * @return The mode that can be passed to {@link Context#getSharedPreferences(String, int)}.
305 * @see Context#getSharedPreferences(String, int)
316 * @see Context#getSharedPreferences(String, int)
330 public SharedPreferences getSharedPreferences() { method in class:PreferenceManager
332 mSharedPreferences = mContext.getSharedPreferences(mSharedPreferencesName,
348 return context.getSharedPreferences(getDefaultSharedPreferencesName(context),
437 final SharedPreferences defaultValueSp = context.getSharedPreferences(
[all...]
H A DPreference.java861 public SharedPreferences getSharedPreferences() { method in class:Preference
866 return mPreferenceManager.getSharedPreferences();
875 * {@link #getSharedPreferences()}. If {@link #shouldCommit()} returns
886 * @see #getSharedPreferences()
1167 if (!shouldPersist || !getSharedPreferences().contains(mKey)) {
1256 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue);
1300 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue);
1344 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue);
1388 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue);
1432 return mPreferenceManager.getSharedPreferences()
[all...]
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
H A DTestAppWidgetProvider.java53 SharedPreferences prefs = context.getSharedPreferences(
/frameworks/base/tests/backup/src/com/android/backuptest/
H A 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/
H A DContextWrapper.java145 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContextWrapper
146 return mBase.getSharedPreferences(name, mode);
H A DContext.java328 public abstract SharedPreferences getSharedPreferences(String name, method in class:Context
/frameworks/base/services/java/com/android/server/
H A DBootReceiver.java99 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE);
/frameworks/ex/common/tests/src/com/android/common/
H A DOperationSchedulerTest.java39 SharedPreferences sp = getContext().getSharedPreferences("OperationSchedulerTest", 0);
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java255 .getSharedPreferences(PREF_FILE,
1457 SharedPreferences sp = mContext.getSharedPreferences(PREF_FILE,
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java126 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:MockContext
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java1058 public SharedPreferences getSharedPreferences(String arg0, int arg1) { method in class:BridgeContext
/frameworks/base/core/java/android/server/
H A DBluetoothService.java1352 SharedPreferences sp = mContext.getSharedPreferences(SHARED_PREFERENCES_NAME,
1898 mContext.getSharedPreferences(SHARED_PREFERENCES_NAME,
/frameworks/base/core/java/android/app/
H A DActivity.java493 * {@link Context#getSharedPreferences Context.getSharedPreferences()} method
515 * SharedPreferences mPrefs = getSharedPreferences();
3511 * {@link #getSharedPreferences(String, int)} method by passing in this activity's
3522 return getSharedPreferences(getLocalClassName(), mode);
H A DContextImpl.java343 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContextImpl
384 Log.w(TAG, "getSharedPreferences", e);
386 Log.w(TAG, "getSharedPreferences", e);
388 Log.w(TAG, "getSharedPreferences", e);

Completed in 220 milliseconds