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

12

/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraPreference.java54 public SharedPreferences getSharedPreferences() { method in class:CameraPreference
/packages/apps/ContactsCommon/src/com/android/contacts/common/testing/
H A DInjectedServices.java53 public SharedPreferences getSharedPreferences() { method in class:InjectedServices
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DCityDAO.java64 final SharedPreferences prefs = getSharedPreferences(context);
83 final SharedPreferences prefs = getSharedPreferences(context);
153 private static SharedPreferences getSharedPreferences(Context context) { method in class:CityDAO
H A DSettingsDAO.java52 final SharedPreferences prefs = getSharedPreferences(context);
63 final SharedPreferences prefs = getSharedPreferences(context);
72 final SharedPreferences prefs = getSharedPreferences(context);
80 final SharedPreferences prefs = getSharedPreferences(context);
92 final SharedPreferences prefs = getSharedPreferences(context);
118 final SharedPreferences prefs = getSharedPreferences(context);
128 final SharedPreferences prefs = getSharedPreferences(context);
137 final SharedPreferences prefs = getSharedPreferences(context);
143 final SharedPreferences prefs = getSharedPreferences(context);
150 private static SharedPreferences getSharedPreferences(Contex method in class:SettingsDAO
[all...]
H A DStopwatchDAO.java62 final SharedPreferences prefs = getSharedPreferences(context);
74 final SharedPreferences prefs = getSharedPreferences(context);
94 final SharedPreferences prefs = getSharedPreferences(context);
129 getSharedPreferences(context).edit()
139 final SharedPreferences prefs = getSharedPreferences(context);
151 private static SharedPreferences getSharedPreferences(Context context) { method in class:StopwatchDAO
H A DTimerDAO.java76 final SharedPreferences prefs = getSharedPreferences(context);
109 final SharedPreferences prefs = getSharedPreferences(context);
142 final SharedPreferences prefs = getSharedPreferences(context);
162 final SharedPreferences prefs = getSharedPreferences(context);
190 final SharedPreferences prefs = getSharedPreferences(context);
194 private static SharedPreferences getSharedPreferences(Context context) { method in class:TimerDAO
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DConfirmDeletionDialog.java74 SharedPreferences.Editor editor = getSharedPreferences().edit();
111 SharedPreferences sp = getSharedPreferences();
117 private SharedPreferences getSharedPreferences() { method in class:ConfirmDeletionDialog
118 return getContext().getSharedPreferences(Constants.SHARED_PREFERENCE_NAME,
H A DStorageManagerUpsellDialog.java81 SharedPreferences sp = getSharedPreferences(getContext());
95 SharedPreferences sp = getSharedPreferences(getContext());
118 long nextTimeToShow = getSharedPreferences(context).getLong(NEXT_SHOW_TIME, 0);
127 private static SharedPreferences getSharedPreferences(Context context) { method in class:StorageManagerUpsellDialog
128 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
/packages/apps/Contacts/src/com/android/contacts/
H A DContactsActivity.java55 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContactsActivity
58 SharedPreferences prefs = services.getSharedPreferences();
64 return super.getSharedPreferences(name, mode);
H A DContactsApplication.java75 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:ContactsApplication
77 SharedPreferences prefs = sInjectedServices.getSharedPreferences();
83 return super.getSharedPreferences(name, mode);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListFilterController.java89 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences());
108 private SharedPreferences getSharedPreferences() { method in class:ContactListFilterControllerImpl
122 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter);
151 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()),
/packages/apps/TV/src/com/android/tv/util/
H A DRecurringRunner.java113 private SharedPreferences getSharedPreferences() { method in class:RecurringRunner
114 return mContext.getSharedPreferences(SharedPreferencesUtils.SHARED_PREF_RECURRING_RUNNER,
122 long next = getSharedPreferences().getLong(mName, System.currentTimeMillis());
131 getSharedPreferences().edit().putLong(mName, next).apply();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DSubScreenFragment.java79 final SharedPreferences getSharedPreferences() { method in class:SubScreenFragment
80 return getPreferenceManager().getSharedPreferences();
119 getSharedPreferences().registerOnSharedPreferenceChangeListener(
125 getSharedPreferences().unregisterOnSharedPreferenceChangeListener(
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DLocalBluetoothPreferences.java56 private static SharedPreferences getSharedPreferences(Context context) { method in class:LocalBluetoothPreferences
57 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
61 return getSharedPreferences(context).getLong(
86 SharedPreferences sharedPreferences = getSharedPreferences(context);
136 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
145 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
155 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
165 return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr);
169 return getSharedPreferences(context).getBoolean(KEY_DOCK_AUTO_CONNECT + addr,
174 SharedPreferences.Editor editor = getSharedPreferences(contex
[all...]
/packages/apps/TV/src/com/android/tv/receiver/
H A DAudioCapabilitiesReceiver.java123 private SharedPreferences getSharedPreferences() { method in class:AudioCapabilitiesReceiver
124 return mContext.getSharedPreferences(SharedPreferencesUtils.SHARED_PREF_AUDIO_CAPABILITIES,
129 return getSharedPreferences().getBoolean(key, def);
133 getSharedPreferences().edit().putBoolean(key, val).apply();
137 return getSharedPreferences().getInt(key, def);
141 getSharedPreferences().edit().putInt(key, val).apply();
/packages/apps/TV/usbtuner/src/com/android/usbtuner/
H A DUsbTunerPreferences.java56 return getSharedPreferences(context)
65 getSharedPreferences(context).edit()
75 return getSharedPreferences(context)
84 getSharedPreferences(context).edit()
94 return getSharedPreferences(context)
103 getSharedPreferences(context).edit()
113 return getSharedPreferences(context)
122 getSharedPreferences(context).edit()
128 private static SharedPreferences getSharedPreferences(Context context) { method in class:UsbTunerPreferences
129 return context.getSharedPreferences(SHARED_PREFS_NAM
[all...]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
H A DMyMockContext.java109 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:MyMockContext
110 return mRealTestContext.getSharedPreferences(name, mode);
130 SharedPreferences prefs = mRealTestContext.getSharedPreferences(
/packages/services/Telephony/src/com/android/phone/
H A DVisualVoicemailSmsFilterConfig.java78 private static SharedPreferences getSharedPreferences(Context context) { method in class:VisualVoicemailSmsFilterConfig
97 mPrefsEditor = getSharedPreferences(context).edit();
137 mPrefs = getSharedPreferences(context);
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarUtils.java126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName);
223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName);
273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName);
331 // SharedPreferences prefs = getSharedPreferences(context);
346 // SharedPreferences prefs = getSharedPreferences(context, prefsName);
353 public static SharedPreferences getSharedPreferences(Context context, String prefsName) { method in class:CalendarUtils
354 return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);
H A DGeneralPreferences.java133 public static SharedPreferences getSharedPreferences(Context context) { method in class:GeneralPreferences
134 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);
152 final SharedPreferences sharedPreferences = getSharedPreferences(activity);
191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity,
252 getPreferenceScreen().getSharedPreferences()
273 getPreferenceScreen().getSharedPreferences()
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DDbTestUtils.java74 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:DbTestUtils.FakeContext
78 return super.getSharedPreferences(name, mode);
/packages/apps/Email/tests/src/com/android/email/
H A DDBTestHelper.java206 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:DBTestHelper.ProviderContextSetupHelper.MyIsolatedContext
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DVersionedPrefs.java64 mSharedPreferences = context.getSharedPreferences(sharedPrefsName, Context.MODE_PRIVATE);
98 protected SharedPreferences getSharedPreferences() { method in class:VersionedPrefs
194 final SharedPreferences sharedPreferences = getSharedPreferences();
263 final Map<String, ?> allPrefs = getSharedPreferences().getAll();
/packages/apps/Email/provider_src/com/android/email/
H A DPreferences.java92 mSharedPreferences = context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE);
108 public static SharedPreferences getSharedPreferences(Context context) { method in class:Preferences
/packages/apps/Settings/tests/unit/src/com/android/settings/
H A DTetherServiceTest.java362 public SharedPreferences getSharedPreferences(String name, int mode) { method in class:TetherServiceTest.TestContextWrapper
367 return super.getSharedPreferences(name, mode);

Completed in 1249 milliseconds

12