Home
last modified time | relevance | path

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

12345678

/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java65 return getSharedPreferences(context) in getHamburgerPromoDisplayedBefore()
70 getSharedPreferences(context).edit() in setHamburgerPromoDisplayedBefore()
77 return getSharedPreferences(context) in getHamburgerMenuClickedBefore()
82 getSharedPreferences(context).edit() in setHamburgerMenuClickedBefore()
89 return getSharedPreferences(context) in getHamburgerPromoTriggerActionHappenedBefore()
94 getSharedPreferences(context).edit() in setHamburgerPromoTriggerActionHappenedBefore()
115 protected static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in SharedPreferenceUtil
116 return context.getSharedPreferences(getSharedPreferencesFilename(context), in getSharedPreferences()
125 return getSharedPreferences(context).getInt(PREFERENCE_KEY_GLOBAL_SYNC_OFF_DISMISSES, 0); in getNumOfDismissesForAutoSyncOff()
129 final int value = getSharedPreferences(context).getInt( in resetNumOfDismissesForAutoSyncOff()
[all …]
/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/TV/src/com/android/tv/tuner/
DTunerPreferences.java115 getSharedPreferences(context); in initialize()
167 return getSharedPreferences(context) in getChannelDataVersion()
177 getSharedPreferences(context).edit() in setChannelDataVersion()
188 return getSharedPreferences(context) in getScannedChannelCount()
197 getSharedPreferences(context).edit() in setScannedChannelCount()
208 return getSharedPreferences(context).getString(PREFS_KEY_LAST_POSTAL_CODE, null); in getLastPostalCode()
216 getSharedPreferences(context).edit() in setLastPostalCode()
226 return getSharedPreferences(context) in isScanDone()
235 getSharedPreferences(context).edit() in setScanDone()
246 return getSharedPreferences(context) in shouldShowSetupActivity()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/
DSharedPreferencesUtils.java59 context.getSharedPreferences(SHARED_PREF_FEATURES, Context.MODE_PRIVATE); in initialize()
60 context.getSharedPreferences(SHARED_PREF_BROWSABLE, Context.MODE_PRIVATE); in initialize()
61 context.getSharedPreferences(SHARED_PREF_WATCHED_HISTORY, Context.MODE_PRIVATE); in initialize()
62 context.getSharedPreferences(SHARED_PREF_DVR_WATCHED_POSITION, in initialize()
64 context.getSharedPreferences(SHARED_PREF_AUDIO_CAPABILITIES, in initialize()
66 context.getSharedPreferences(SHARED_PREF_RECURRING_RUNNER, in initialize()
68 context.getSharedPreferences(SHARED_PREF_EPG, Context.MODE_PRIVATE); in initialize()
69 context.getSharedPreferences(SHARED_PREF_SERIES_RECORDINGS, in initialize()
71 context.getSharedPreferences(SHARED_PREF_UI_SETTINGS, Context.MODE_PRIVATE); in initialize()
/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/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java52 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences
53 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
57 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
82 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
135 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
144 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
/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/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java286 context.getSharedPreferences(INDEX, Context.MODE_PRIVATE).edit().clear().commit(); in clearCachedIndexed()
290 context.getSharedPreferences(INDEX, Context.MODE_PRIVATE) in setLocaleIndexed()
297 context.getSharedPreferences(INDEX, Context.MODE_PRIVATE) in setProvidersIndexed()
304 return context.getSharedPreferences(INDEX, Context.MODE_PRIVATE).getBoolean(locale, false); in isLocaleAlreadyIndexed()
308 final String indexedProviders = context.getSharedPreferences(INDEX, Context.MODE_PRIVATE) in areProvidersIndexed()
314 return context.getSharedPreferences(INDEX, Context.MODE_PRIVATE).getBoolean(buildNo, false); in isBuildIndexed()
318 context.getSharedPreferences(INDEX, 0).edit().putBoolean(buildNo, true).commit(); in setBuildIndexed()
/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/Contacts/src/com/android/contacts/list/
DContactListFilterController.java98 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences()); in ContactListFilterControllerImpl()
130 return ContactListFilter.restoreDefaultPreferences(getSharedPreferences()); in getPersistedFilter()
133 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ContactListFilterControllerImpl
147 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter); in setContactListFilter()
176 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()), in checkFilterValidity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/support/
DNewDeviceIntroSuggestionActivityTest.java70 .thenReturn(getSharedPreferences()); in setUp()
87 getSharedPreferences().edit().putLong(PREF_KEY_SUGGGESTION_FIRST_DISPLAY_TIME, in isSuggestionComplete_suggestionExpired_shouldReturnTrue()
106 getSharedPreferences().edit().putBoolean(PREF_KEY_SUGGGESTION_COMPLETE, true).commit(); in isSuggestionComplete_alreadyLaunchedBefore_shouldReturnTrue()
122 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in NewDeviceIntroSuggestionActivityTest
123 return mContext.getSharedPreferences("test_new_device_sugg", Context.MODE_PRIVATE); in getSharedPreferences()
/packages/apps/Calendar/src/com/android/calendar/
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 …]
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()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java89 SharedPreferences sp = getSharedPreferences(getContext()); in onClick()
104 SharedPreferences sp = getSharedPreferences(getContext()); in onCancel()
127 long nextTimeToShow = getSharedPreferences(context).getLong(NEXT_SHOW_TIME, 0); in shouldShow()
135 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in StorageManagerUpsellDialog
136 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
DConfirmDeletionDialog.java74 SharedPreferences.Editor editor = getSharedPreferences().edit(); in onClick()
112 SharedPreferences sp = getSharedPreferences(); in getClearWarningText()
118 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ConfirmDeletionDialog
119 return getContext().getSharedPreferences(Constants.SHARED_PREFERENCE_NAME, in getSharedPreferences()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilterController.java85 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences()); in ContactListFilterControllerImpl()
104 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ContactListFilterControllerImpl
118 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter); in setContactListFilter()
147 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()), in checkFilterValidity()
/packages/apps/TV/src/com/android/tv/util/
DRecurringRunner.java120 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in RecurringRunner
121 return mContext.getSharedPreferences(SharedPreferencesUtils.SHARED_PREF_RECURRING_RUNNER, in getSharedPreferences()
129 long next = getSharedPreferences().getLong(mName, System.currentTimeMillis()); in getNextRunTime()
138 getSharedPreferences().edit().putLong(mName, next).apply(); in resetNextRunTime()
/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/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java151 SharedPreferences sp = context.getSharedPreferences( in shouldShowNotification()
253 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationShownCount()
262 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationDismissedCount()
271 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in delayNextNotification()
/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()

12345678