Searched defs:getSharedPreferences (Results 1 - 11 of 11) sorted by relevance

/frameworks/support/preference/src/main/java/androidx/preference/
H A DPreferenceManager.java168 * @return The name that can be passed to {@link Context#getSharedPreferences(String, int)}.
169 * @see Context#getSharedPreferences(String, int)
182 * @see Context#getSharedPreferences(String, int)
194 * @return The mode that can be passed to {@link Context#getSharedPreferences(String, int)}.
195 * @see Context#getSharedPreferences(String, int)
206 * @see Context#getSharedPreferences(String, int)
315 public SharedPreferences getSharedPreferences() { method in class:PreferenceManager
331 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName,
347 return context.getSharedPreferences(getDefaultSharedPreferencesName(context),
458 final SharedPreferences defaultValueSp = context.getSharedPreferences(
[all...]
H A DPreference.java1167 public SharedPreferences getSharedPreferences() { method in class:Preference
1172 return mPreferenceManager.getSharedPreferences();
1521 if (!shouldPersist || !getSharedPreferences().contains(mKey)) {
1610 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue);
1663 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue);
1718 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue);
1773 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue);
1828 return mPreferenceManager.getSharedPreferences().getLong(mKey, defaultReturnValue);
1883 return mPreferenceManager.getSharedPreferences().getBoolean(mKey, defaultReturnValue);
/frameworks/base/core/java/android/preference/
H A DPreferenceManager.java354 * @return The name that can be passed to {@link Context#getSharedPreferences(String, int)}.
355 * @see Context#getSharedPreferences(String, int)
368 * @see Context#getSharedPreferences(String, int)
380 * @return The mode that can be passed to {@link Context#getSharedPreferences(String, int)}.
381 * @see Context#getSharedPreferences(String, int)
392 * @see Context#getSharedPreferences(String, int)
491 public SharedPreferences getSharedPreferences() { method in class:PreferenceManager
510 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName,
526 return context.getSharedPreferences(getDefaultSharedPreferencesName(context),
643 final SharedPreferences defaultValueSp = context.getSharedPreferences(
[all...]
H A DPreference.java1199 public SharedPreferences getSharedPreferences() { method in class:Preference
1204 return mPreferenceManager.getSharedPreferences();
1213 * {@link #getSharedPreferences()}. If {@link #shouldCommit()} returns
1224 * @see #getSharedPreferences()
1555 if (!shouldPersist || !getSharedPreferences().contains(mKey)) {
1650 return mPreferenceManager.getSharedPreferences().getString(mKey, defaultReturnValue);
1703 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue);
1757 return mPreferenceManager.getSharedPreferences().getInt(mKey, defaultReturnValue);
1811 return mPreferenceManager.getSharedPreferences().getFloat(mKey, defaultReturnValue);
1865 return mPreferenceManager.getSharedPreferences()
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DContextFixture.java488 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContextFixture.FakeContext
/frameworks/base/core/java/android/content/
H A DContextWrapper.java173 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContextWrapper
174 return mBase.getSharedPreferences(name, mode);
179 public SharedPreferences getSharedPreferences(File file, int mode) { method in class:ContextWrapper
180 return mBase.getSharedPreferences(file, mode);
H A DContext.java193 * @see #getSharedPreferences
789 public abstract SharedPreferences getSharedPreferences(String name, @PreferencesMode int mode); method in class:Context
810 public abstract SharedPreferences getSharedPreferences(File file, @PreferencesMode int mode); method in class:Context
835 * @see #getSharedPreferences(String, int)
917 * {@link #getSharedPreferences(String, int)} is stored.
925 * @see #getSharedPreferences(String, int)
/frameworks/base/test-mock/src/android/test/mock/
H A DMockContext.java147 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:MockContext
153 public SharedPreferences getSharedPreferences(File file, int mode) { method in class:MockContext
/frameworks/base/core/java/android/app/
H A DContextImpl.java382 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContextImpl
404 return getSharedPreferences(file, mode);
408 public SharedPreferences getSharedPreferences(File file, int mode) { method in class:ContextImpl
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java1539 public SharedPreferences getSharedPreferences(String arg0, int arg1) { method in class:BridgeContext
1547 public SharedPreferences getSharedPreferences(File arg0, int arg1) { method in class:BridgeContext
/frameworks/support/jetifier/jetifier/processor/src/test/resources/changeDetectionTest/
H A DtestPreference.classPreference.java package android.support.v7.preference public android.support.v7.preference ...

Completed in 40 milliseconds