/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Prefs.java | 33 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/ |
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 | 348 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()
|
D | Preference.java | 1011 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/ |
D | TestAppWidgetConfigure.java | 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
|
D | TestAppWidgetProvider.java | 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive()
|
/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/services/java/com/android/server/ |
D | BootReceiver.java | 98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 160 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextWrapper 161 return mBase.getSharedPreferences(name, mode); in getSharedPreferences()
|
D | Context.java | 483 public abstract SharedPreferences getSharedPreferences(String name, in getSharedPreferences() method in Context
|
/frameworks/ex/common/tests/src/com/android/common/ |
D | OperationSchedulerTest.java | 39 SharedPreferences sp = getContext().getSharedPreferences("OperationSchedulerTest", 0); in getFreshStorage()
|
/frameworks/base/docs/html/guide/topics/data/ |
D | data-storage.jd | 86 <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/ |
D | WebSettingsClassic.java | 220 .getSharedPreferences(PREF_FILE, in createHandler() 1705 SharedPreferences sp = mContext.getSharedPreferences(PREF_FILE, in syncSettingsAndCreateHandler()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 131 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MockContext
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | regular_updates.jd | 72 context.getSharedPreferences(PREFS, Context.MODE_WORLD_READABLE);
|
/frameworks/base/docs/html/training/basics/network-ops/ |
D | managing.jd | 257 getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); 267 … getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
|
/frameworks/base/docs/html/training/cloudsync/ |
D | backupapi.jd | 140 // are the same strings that are passed to getSharedPreferences(String, int).
|
/frameworks/base/docs/html/training/enterprise/ |
D | device-management-policy.jd | 107 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE);
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 192 … mDeviceProperties = context.getSharedPreferences(devicePropertiesName, Context.MODE_PRIVATE); in initDeviceProperties()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 1100 public SharedPreferences getSharedPreferences(String arg0, int arg1) { in getSharedPreferences() method in BridgeContext
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | settings.jd | 852 getPreferenceScreen().getSharedPreferences() 859 getPreferenceScreen().getSharedPreferences()
|
/frameworks/base/docs/html/guide/topics/security/ |
D | permissions.jd | 102 with {@link android.content.Context#getSharedPreferences},
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 659 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContextImpl
|
D | Activity.java | 4449 return getSharedPreferences(getLocalClassName(), mode); in getPreferences()
|