Home
last modified time | relevance | path

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

123456789

/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()
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java39 protected static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in TunerPreferences
40 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
45 return getSharedPreferences(context) in getChannelDataVersion()
53 getSharedPreferences(context) in setChannelDataVersion()
61 return getSharedPreferences(context) in getScannedChannelCount()
67 getSharedPreferences(context) in setScannedChannelCount()
75 return getSharedPreferences(context) in isScanDone()
81 getSharedPreferences(context) in setScanDone()
89 return getSharedPreferences(context) in getTrickplayExpiredMs()
95 getSharedPreferences(context) in setTrickplayExpiredMs()
/packages/apps/TV/common/src/com/android/tv/common/util/
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( in initialize()
64 context.getSharedPreferences( in initialize()
66 context.getSharedPreferences( in initialize()
68 context.getSharedPreferences(SHARED_PREF_EPG, Context.MODE_PRIVATE); in initialize()
69 context.getSharedPreferences( 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/TV/common/src/com/android/tv/common/
DCommonPreferences.java108 getSharedPreferences(context); in initialize()
155 return getSharedPreferences(context).getBoolean(PREFS_KEY_LAUNCH_SETUP, false); in shouldShowSetupActivity()
163 getSharedPreferences(context).edit().putBoolean(PREFS_KEY_LAUNCH_SETUP, need).apply(); in setShouldShowSetupActivity()
172 return getSharedPreferences(context) in getTrickplaySetting()
184 getSharedPreferences(context) in setTrickplaySetting()
196 return getSharedPreferences(context).getBoolean(PREFS_KEY_STORE_TS_STREAM, false); in getStoreTsStream()
204 getSharedPreferences(context) in setStoreTsStream()
216 return getSharedPreferences(context).getString(PREFS_KEY_LAST_POSTAL_CODE, null); in getLastPostalCode()
224 getSharedPreferences(context) in setLastPostalCode()
231 protected static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in CommonPreferences
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DEmergencyCallLimitationDisclaimerTest.java62 doReturn(getSharedPreferences()).when(mContext).getSharedPreferences(anyString(), anyInt()); in setUp()
70 getSharedPreferences().edit().putBoolean( in sholdShow_delay1000msec_shouldShowEmergencyCallLimitationDisclaimer()
94 getSharedPreferences().edit().putBoolean( in sholdShow_alreadyAgreed_shouldNotShowEmergencyCallLimitationDisclaimer()
110 assertThat(getSharedPreferences().getBoolean( in onAgreed_shouldSetSharedPreferencesToAgreed()
115 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in EmergencyCallLimitationDisclaimerTest
116 return mContext.getSharedPreferences(TEST_SHARED_PREFERENCE, Context.MODE_PRIVATE); in getSharedPreferences()
DLocationPolicyDisclaimerTest.java63 doReturn(getSharedPreferences()).when(mContext).getSharedPreferences(anyString(), anyInt()); in setUp()
72 getSharedPreferences().edit().putBoolean( in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer()
109 getSharedPreferences().edit().putBoolean( in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer()
125 assertThat(getSharedPreferences().getBoolean( in onAgreed_shouldSetSharedPreferencesToAgreed()
130 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in LocationPolicyDisclaimerTest
131 return mContext.getSharedPreferences(TEST_SHARED_PREFERENCE, Context.MODE_PRIVATE); in getSharedPreferences()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java51 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences
52 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
56 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
81 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
134 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
143 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DLocalBluetoothPreferences.java51 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences
52 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
56 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
81 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
134 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
143 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
/packages/apps/TV/src/com/android/tv/receiver/
DAudioCapabilitiesReceiver.java120 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in AudioCapabilitiesReceiver
121 return mContext.getSharedPreferences( in getSharedPreferences()
126 return getSharedPreferences().getBoolean(key, def); in getBoolean()
130 getSharedPreferences().edit().putBoolean(key, val).apply(); in setBoolean()
134 return getSharedPreferences().getInt(key, def); in getInt()
138 getSharedPreferences().edit().putInt(key, val).apply(); in setInt()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUtils.java83 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in BluetoothUtils
84 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
88 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
113 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
166 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
173 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseHelper.java164 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
200 mContext.getSharedPreferences(SHARED_PREFS_TAG, 0 /* mode */) in setBuildIndexed()
207 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
214 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isBuildIndexed()
220 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isLocaleIndexed()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java164 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
200 mContext.getSharedPreferences(SHARED_PREFS_TAG, 0 /* mode */) in setBuildIndexed()
207 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
214 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isBuildIndexed()
220 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isLocaleIndexed()
/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/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/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java92 SharedPreferences sp = getSharedPreferences(getContext()); in onClick()
107 SharedPreferences sp = getSharedPreferences(getContext()); in onCancel()
129 long nextTimeToShow = getSharedPreferences(context).getLong(NEXT_SHOW_TIME, 0); in shouldShow()
137 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in StorageManagerUpsellDialog
138 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
DConfirmDeletionDialog.java77 SharedPreferences.Editor editor = getSharedPreferences().edit(); in onClick()
115 SharedPreferences sp = getSharedPreferences(); in getClearWarningText()
121 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ConfirmDeletionDialog
122 return getContext().getSharedPreferences(Constants.SHARED_PREFERENCE_NAME, in getSharedPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java288 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_packageNotInSharedPrefs_returnTrue()
298 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
317 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
319 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
339 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
341 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
364 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
366 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java219 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref()
322 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
332 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
337 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
342 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
354 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
359 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
376 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
383 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
390 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()
/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.java118 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in RecurringRunner
119 return mContext.getSharedPreferences( in getSharedPreferences()
127 long next = getSharedPreferences().getLong(mName, System.currentTimeMillis()); in getNextRunTime()
136 getSharedPreferences().edit().putLong(mName, next).apply(); in resetNextRunTime()

123456789