Home
last modified time | relevance | path

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

123

/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceManager.java278 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in PreferenceManager
290 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
306 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences()
418 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
446 mEditor = getSharedPreferences().edit(); in getEditor()
451 return getSharedPreferences().edit(); in getEditor()
DPreference.java1013 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference
1018 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences()
1322 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue()
1404 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString()
1448 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt()
1492 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat()
1536 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong()
1580 return mPreferenceManager.getSharedPreferences().getBoolean(mKey, defaultReturnValue); in getPersistedBoolean()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportPrefs.java37 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState()
43 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.java456 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in PreferenceManager
471 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
487 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences()
602 final SharedPreferences defaultValueSp = context.getSharedPreferences( in setDefaultValues()
636 mEditor = getSharedPreferences().edit(); in getEditor()
641 return getSharedPreferences().edit(); in getEditor()
DPreference.java1056 public SharedPreferences getSharedPreferences() { in getSharedPreferences() method in Preference
1061 return mPreferenceManager.getSharedPreferences(); in getSharedPreferences()
1383 if (!shouldPersist || !getSharedPreferences().contains(mKey)) { in dispatchSetInitialValue()
1472 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue); in getPersistedString()
1523 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
1567 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue); in getPersistedInt()
1611 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue); in getPersistedFloat()
1655 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue); in getPersistedLong()
1699 return mPreferenceManager.getSharedPreferences().getBoolean(mKey, defaultReturnValue); in getPersistedBoolean()
/frameworks/support/v4/java/android/support/v4/app/
DAppLaunchChecker.java51 return context.getSharedPreferences(SHARED_PREFS_NAME, 0) in hasStartedFromLauncher()
67 final SharedPreferences sp = activity.getSharedPreferences(SHARED_PREFS_NAME, 0); in onActivityCreate()
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} &mdash; Используйте этот метод, если вам потребуется несколько общих файлов…
68 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} &mdash; 若您需要使用多個共用偏好設定檔案 (根據名稱進行識別,第一個參數將指定名稱),請使用此方法。
68 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} &mdash; 여러 공유 기본 설정 파일이 필요한 경우 이 메서드를 사용합니다. 이러한 파일은 첫 번째 매개변수로 지정하는
68 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} - 最初のパラメータで指定した名前で識別される共有の環境設定ファイルが複数必要な場合に使用します。
68 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} &mdash; 如果您需要按照您用第一个参数指定的名称识别的多个共享首选项文件,请使用此方法。
68 SharedPreferences sharedPref = context.getSharedPreferences(
/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/support/v14/preference/src/android/support/v14/preference/
DMultiSelectListPreference.java107 SharedPreferences.Editor editor = getPreferenceManager().getSharedPreferences().edit(); in persistStringSet()
136 return getPreferenceManager().getSharedPreferences() in getPersistedStringSet()
/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/docs/html-intl/intl/pt-br/training/basics/data-storage/
Dshared-preferences.jd51 <li>{@link android.content.Context#getSharedPreferences(String,int)
52 getSharedPreferences()} &mdash; Use este método se precisar identificar vários arquivos de preferên…
68 SharedPreferences sharedPref = context.getSharedPreferences(
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java692 SharedPreferences preferences = mContext.getSharedPreferences( in migratePhonebookPermissionChoice()
755 SharedPreferences preferences = mContext.getSharedPreferences( in migrateMessagePermissionChoice()
787 SharedPreferences preference = mContext.getSharedPreferences( in fetchMessageRejectionCount()
793 SharedPreferences.Editor editor = mContext.getSharedPreferences( in saveMessageRejectionCount()
/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/EasterEgg/src/com/android/egg/neko/
DPrefState.java39 mPrefs = mContext.getSharedPreferences(FILE_NAME, 0); in PrefState()
/frameworks/base/core/java/android/content/
DContextWrapper.java163 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper
164 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
169 public SharedPreferences getSharedPreferences(File file, int mode) { in getSharedPreferences() method in ContextWrapper
170 return mBase.getSharedPreferences(file, mode); in getSharedPreferences()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java47 mPreferences = owner.getSharedPreferences(APPROVED_SERVICES_PREFERENCE, in ApprovedPrintServices()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java124 return context.getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE); in get()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java139 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MockContext
145 public SharedPreferences getSharedPreferences(File file, int mode) { in getSharedPreferences() method in MockContext

123