Home
last modified time | relevance | path

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

123456

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java209 return getSharedPreferences().getInt(PreferenceKeys.MIGRATED_VERSION, 0) in hasMigrationCompleted()
219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
232 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
251 return getSharedPreferences().getBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, false); in getDefaultReplyAll()
268 final SharedPreferences sharedPreferences = getSharedPreferences(); in getRemovalAction()
291 final SharedPreferences sharedPreferences = getSharedPreferences(); in getIsConversationListSwipeEnabled()
322 return getSharedPreferences() in getActiveNotificationSet()
338 return getSharedPreferences() in isConversationPhotoTeaserAlreadyShown()
355 return getSharedPreferences() in isLongPressToSelectTipAlreadyShown()
384 final SharedPreferences sharedPreferences = getSharedPreferences(); in getDisplayImagesFromSender()
[all …]
DAccountPreferences.java97 return getSharedPreferences().contains(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED); in isDefaultInboxNotificationsEnabledSet()
101 return getSharedPreferences() in getDefaultInboxNotificationsEnabled()
114 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, true); in areNotificationsEnabled()
123 return getSharedPreferences().getInt(PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in getNumOfDismissesForAccountSyncOff()
127 final int value = getSharedPreferences().getInt( in resetNumOfDismissesForAccountSyncOff()
135 final int value = getSharedPreferences().getInt( in incNumOfDismissesForAccountSyncOff()
141 return getSharedPreferences().getInt(PreferenceKeys.LAST_SEEN_OUTBOX_COUNT, 0); in getLastSeenOutboxCount()
DFolderPreferences.java207 return getSharedPreferences().contains(PreferenceKeys.NOTIFICATIONS_ENABLED); in isNotificationsEnabledSet()
211 return getSharedPreferences().getBoolean( in areNotificationsEnabled()
221 return getSharedPreferences().getString(PreferenceKeys.NOTIFICATION_RINGTONE, in getNotificationRingtoneUri()
231 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, false); in isNotificationVibrateEnabled()
240 return getSharedPreferences() in isEveryMessageNotificationEnabled()
DVersionedPrefs.java64 mSharedPreferences = context.getSharedPreferences(sharedPrefsName, Context.MODE_PRIVATE); in VersionedPrefs()
98 protected SharedPreferences getSharedPreferences() { in getSharedPreferences() method in VersionedPrefs
194 final SharedPreferences sharedPreferences = getSharedPreferences(); in getBackupPreferences()
263 final Map<String, ?> allPrefs = getSharedPreferences().getAll(); in shouldBackUp()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java56 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences
57 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
61 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
86 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
136 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
145 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
155 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp()
165 return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr); in hasDockAutoConnectSetting()
169 return getSharedPreferences(context).getBoolean(KEY_DOCK_AUTO_CONNECT + addr, in getDockAutoConnectSetting()
174 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveDockAutoConnectSetting()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java52 final SharedPreferences prefs = getSharedPreferences(context); in getCitySort()
63 final SharedPreferences prefs = getSharedPreferences(context); in toggleCitySort()
72 final SharedPreferences prefs = getSharedPreferences(context); in getAutoShowHomeClock()
80 final SharedPreferences prefs = getSharedPreferences(context); in getHomeTimeZone()
92 final SharedPreferences prefs = getSharedPreferences(context); in setDefaultHomeTimeZone()
118 final SharedPreferences prefs = getSharedPreferences(context); in getTimerRingtoneUri()
128 final SharedPreferences prefs = getSharedPreferences(context); in getDefaultAlarmRingtoneUri()
137 final SharedPreferences prefs = getSharedPreferences(context); in setDefaultAlarmRingtoneUri()
143 final SharedPreferences prefs = getSharedPreferences(context); in getClockStyle()
150 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in SettingsDAO
DStopwatchDAO.java62 final SharedPreferences prefs = getSharedPreferences(context); in getStopwatch()
74 final SharedPreferences prefs = getSharedPreferences(context); in setStopwatch()
94 final SharedPreferences prefs = getSharedPreferences(context); in getLaps()
129 getSharedPreferences(context).edit() in addLap()
139 final SharedPreferences prefs = getSharedPreferences(context); in clearLaps()
151 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in StopwatchDAO
DTimerDAO.java76 final SharedPreferences prefs = getSharedPreferences(context); in getTimers()
109 final SharedPreferences prefs = getSharedPreferences(context); in addTimer()
142 final SharedPreferences prefs = getSharedPreferences(context); in updateTimer()
162 final SharedPreferences prefs = getSharedPreferences(context); in removeTimer()
190 final SharedPreferences prefs = getSharedPreferences(context); in getTimerIds()
194 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in TimerDAO
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java45 final SharedPreferences prefs = mContext.getSharedPreferences( in getInt()
53 final SharedPreferences prefs = mContext.getSharedPreferences( in getLong()
61 final SharedPreferences prefs = mContext.getSharedPreferences( in getBoolean()
69 final SharedPreferences prefs = mContext.getSharedPreferences( in getString()
83 final SharedPreferences prefs = mContext.getSharedPreferences( in putInt()
93 final SharedPreferences prefs = mContext.getSharedPreferences( in putLong()
103 final SharedPreferences prefs = mContext.getSharedPreferences( in putBoolean()
113 final SharedPreferences prefs = mContext.getSharedPreferences( in putString()
129 final SharedPreferences prefs = mContext.getSharedPreferences( in remove()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/
DUsbTunerPreferences.java56 return getSharedPreferences(context) in getChannelDataVersion()
65 getSharedPreferences(context).edit() in setChannelDataVersion()
75 return getSharedPreferences(context) in getScannedChannelCount()
84 getSharedPreferences(context).edit() in setScannedChannelCount()
94 return getSharedPreferences(context) in isScanDone()
103 getSharedPreferences(context).edit() in setScanDone()
113 return getSharedPreferences(context) in shouldShowSetupActivity()
122 getSharedPreferences(context).edit() in setShouldShowSetupActivity()
128 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in UsbTunerPreferences
129 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
/packages/apps/TV/common/src/com/android/tv/common/
DSharedPreferencesUtils.java50 context.getSharedPreferences(SHARED_PREF_FEATURES, Context.MODE_PRIVATE); in initialize()
51 context.getSharedPreferences(SHARED_PREF_BROWSABLE, Context.MODE_PRIVATE); in initialize()
52 context.getSharedPreferences(SHARED_PREF_WATCHED_HISTORY, Context.MODE_PRIVATE); in initialize()
53 context.getSharedPreferences(SHARED_PREF_AUDIO_CAPABILITIES, in initialize()
55 context.getSharedPreferences(SHARED_PREF_RECURRING_RUNNER, in initialize()
/packages/apps/TV/src/com/android/tv/receiver/
DAudioCapabilitiesReceiver.java123 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in AudioCapabilitiesReceiver
124 return mContext.getSharedPreferences(SharedPreferencesUtils.SHARED_PREF_AUDIO_CAPABILITIES, in getSharedPreferences()
129 return getSharedPreferences().getBoolean(key, def); in getBoolean()
133 getSharedPreferences().edit().putBoolean(key, val).apply(); in setBoolean()
137 return getSharedPreferences().getInt(key, def); in getInt()
141 getSharedPreferences().edit().putInt(key, val).apply(); in setInt()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAdvancedSettingsFragment.java57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate()
100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume()
118 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
132 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings()
176 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressSoundVolumeSettings()
227 final SharedPreferences prefs = getSharedPreferences(); in setupKeyLongpressTimeoutSettings()
DSubScreenFragment.java79 final SharedPreferences getSharedPreferences() {
80 return getPreferenceManager().getSharedPreferences();
119 getSharedPreferences().registerOnSharedPreferenceChangeListener(
125 getSharedPreferences().unregisterOnSharedPreferenceChangeListener(
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilterController.java89 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences()); in ContactListFilterControllerImpl()
108 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ContactListFilterControllerImpl
122 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter); in setContactListFilter()
151 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()), in checkFilterValidity()
/packages/apps/TV/src/com/android/tv/util/
DRecurringRunner.java113 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in RecurringRunner
114 return mContext.getSharedPreferences(SharedPreferencesUtils.SHARED_PREF_RECURRING_RUNNER, in getSharedPreferences()
122 long next = getSharedPreferences().getLong(mName, System.currentTimeMillis()); in getNextRunTime()
131 getSharedPreferences().edit().putLong(mName, next).apply(); in resetNextRunTime()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); in onQueryComplete()
223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in setTimeZone()
273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in getTimeZone()
353 public static SharedPreferences getSharedPreferences(Context context, String prefsName) { in getSharedPreferences() method in CalendarUtils
354 return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in getSharedPreferences()
DGeneralPreferences.java133 public static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in GeneralPreferences
134 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
152 final SharedPreferences sharedPreferences = getSharedPreferences(activity); in onCreate()
191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, in onCreate()
252 getPreferenceScreen().getSharedPreferences() in onStart()
273 getPreferenceScreen().getSharedPreferences() in onStop()
DUtils.java221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref()
331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
341 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
346 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
351 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
363 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
368 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
385 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
392 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
399 SharedPreferences prefs = context.getSharedPreferences( in removeSharedPreference()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactsActivity.java55 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContactsActivity
58 SharedPreferences prefs = services.getSharedPreferences(); in getSharedPreferences()
64 return super.getSharedPreferences(name, mode); in getSharedPreferences()
DContactsApplication.java75 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContactsApplication
77 SharedPreferences prefs = sInjectedServices.getSharedPreferences(); in getSharedPreferences()
83 return super.getSharedPreferences(name, mode); in getSharedPreferences()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java49 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in onDeleted()
89 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in migrateLegacyWidgetInformation()
176 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadAccountIdPref()
187 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadMailboxIdPref()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java109 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in MyMockContext
110 return mRealTestContext.getSharedPreferences(name, mode); in getSharedPreferences()
130 SharedPreferences prefs = mRealTestContext.getSharedPreferences( in initializeContext()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DQuickSettingsPreferenceFragment.java85 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onResume()
97 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onPause()
161 getPreferenceManager().getSharedPreferences().edit() in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java222 context.getSharedPreferences(INDEX, 0).edit().clear().commit(); in clearLocalesIndexed()
226 context.getSharedPreferences(INDEX, 0).edit().putBoolean(locale, true).commit(); in setLocaleIndexed()
230 return context.getSharedPreferences(INDEX, 0).getBoolean(locale, false); in isLocaleAlreadyIndexed()

123456