/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | PreferenceManager.java | 278 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()
|
D | Preference.java | 1013 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/ |
D | BugreportPrefs.java | 37 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/ |
D | SettingsActivity.java | 45 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); in onResume() 56 .getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); in onPause()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 456 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()
|
D | Preference.java | 1056 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/ |
D | AppLaunchChecker.java | 51 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/ |
D | shared-preferences.jd | 51 <li>{@link android.content.Context#getSharedPreferences(String,int) 52 getSharedPreferences()} — Используйте этот метод, если вам потребуется несколько общих файлов… 68 SharedPreferences sharedPref = context.getSharedPreferences(
|
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/ |
D | shared-preferences.jd | 51 <li>{@link android.content.Context#getSharedPreferences(String,int) 52 getSharedPreferences()} — 若您需要使用多個共用偏好設定檔案 (根據名稱進行識別,第一個參數將指定名稱),請使用此方法。 68 SharedPreferences sharedPref = context.getSharedPreferences(
|
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/ |
D | shared-preferences.jd | 51 <li>{@link android.content.Context#getSharedPreferences(String,int) 52 getSharedPreferences()} — 여러 공유 기본 설정 파일이 필요한 경우 이 메서드를 사용합니다. 이러한 파일은 첫 번째 매개변수로 지정하는 68 SharedPreferences sharedPref = context.getSharedPreferences(
|
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/ |
D | shared-preferences.jd | 51 <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/ |
D | shared-preferences.jd | 51 <li>{@link android.content.Context#getSharedPreferences(String,int) 52 getSharedPreferences()} — 如果您需要按照您用第一个参数指定的名称识别的多个共享首选项文件,请使用此方法。 68 SharedPreferences sharedPref = context.getSharedPreferences(
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetConfigure.java | 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
|
D | TestAppWidgetProvider.java | 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
D | MultiSelectListPreference.java | 107 SharedPreferences.Editor editor = getPreferenceManager().getSharedPreferences().edit(); in persistStringSet() 136 return getPreferenceManager().getSharedPreferences() in getPersistedStringSet()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 114 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/ |
D | shared-preferences.jd | 52 <li>{@link android.content.Context#getSharedPreferences(String,int) 53 getSharedPreferences()} — 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/ |
D | shared-preferences.jd | 51 <li>{@link android.content.Context#getSharedPreferences(String,int) 52 getSharedPreferences()} — 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/ |
D | CachedBluetoothDevice.java | 692 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/ |
D | TimeZoneResultAdapter.java | 144 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/ |
D | PrefState.java | 39 mPrefs = mContext.getSharedPreferences(FILE_NAME, 0); in PrefState()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 163 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/ |
D | ApprovedPrintServices.java | 47 mPreferences = owner.getSharedPreferences(APPROVED_SERVICES_PREFERENCE, in ApprovedPrintServices()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 124 return context.getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE); in get()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 139 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
|