Home
last modified time | relevance | path

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

12345678910

/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/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/RemoteProvisioner/src/com/android/remoteprovisioner/
DSettingsManager.java52 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in generateAndSetId()
69 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in getId()
88 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in setDeviceConfig()
116 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in getExtraSignedKeysAvailable()
125 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in getExpiringBy()
135 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in getUrl()
148 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in incrementFailureCounter()
161 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in getFailureCounter()
170 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in clearFailureCounter()
183 context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in clearPreferences()
/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.java60 doReturn(getSharedPreferences()).when(mContext).getSharedPreferences(anyString(), anyInt()); in setUp()
68 getSharedPreferences().edit().putBoolean( in sholdShow_delay1000msec_shouldShowEmergencyCallLimitationDisclaimer()
92 getSharedPreferences().edit().putBoolean( in sholdShow_alreadyAgreed_shouldNotShowEmergencyCallLimitationDisclaimer()
108 assertThat(getSharedPreferences().getBoolean( in onAgreed_shouldSetSharedPreferencesToAgreed()
113 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in EmergencyCallLimitationDisclaimerTest
114 return mContext.getSharedPreferences(TEST_SHARED_PREFERENCE, Context.MODE_PRIVATE); in getSharedPreferences()
DLocationPolicyDisclaimerTest.java59 doReturn(getSharedPreferences()).when(mContext).getSharedPreferences(anyString(), anyInt()); in setUp()
68 getSharedPreferences().edit().putBoolean( in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer()
105 getSharedPreferences().edit().putBoolean( in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer()
121 assertThat(getSharedPreferences().getBoolean( in onAgreed_shouldSetSharedPreferencesToAgreed()
126 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in LocationPolicyDisclaimerTest
127 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/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/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java175 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
211 mContext.getSharedPreferences(SHARED_PREFS_TAG, 0 /* mode */) in setBuildIndexed()
218 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
225 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isBuildIndexed()
231 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java74 SharedPreferences sp = mContext.getSharedPreferences( in tearDown()
153 SharedPreferences sp = mContext.getSharedPreferences( in onChangePassword_savesNewPassword()
171 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToNone_visibilityIsFalse()
190 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToWPA2PSK_visibilityIsTrue()
210 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToNone_updatesSecurityTypeToNone()
231 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK()
249 SharedPreferences sp = mContext.getSharedPreferences( in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword()
/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/
DSettings.java76 SharedPreferences sharedPref = cxt.getSharedPreferences( in Settings()
81 sharedPref = cxt.getSharedPreferences(PREF_TEST_CONFIG, Context.MODE_PRIVATE); in Settings()
89 sharedPref = cxt.getSharedPreferences(PREF_SERVICE_CONFIG, Context.MODE_PRIVATE); in Settings()
136 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateCarrierConfig()
189 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateServiceConfig()
241 SharedPreferences sharedPref = cxt.getSharedPreferences( in updateTestConfig()
/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/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingUtils.java37 SharedPreferences preferences = context.getSharedPreferences( in getBackupCallWaitingStatus()
43 SharedPreferences preferences = context.getSharedPreferences( in getBackupCallForwardingStatus()
59 SharedPreferences.Editor preferences = context.getSharedPreferences( in saveCallWaitingStatus()
66 SharedPreferences.Editor preferences = context.getSharedPreferences( in saveCallForwardingStatus()
78 SharedPreferences.Editor preferences = context.getSharedPreferences( in clearBackupData()
/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/src/com/android/settings/accessibility/
DPreferredShortcuts.java88 return getSharedPreferences(context).getStringSet(USER_SHORTCUT_TYPE, Set.of()); in getFromSharedPreferences()
93 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveToSharedPreferences()
97 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in PreferredShortcuts
98 return context.getSharedPreferences(ACCESSIBILITY_PERF, Context.MODE_PRIVATE); in getSharedPreferences()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java284 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_packageNotInSharedPrefs_returnTrue()
294 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
313 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
315 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
335 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
337 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
360 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
362 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/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()
/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 …]

12345678910