Home
last modified time | relevance | path

Searched refs:getSharedPreferences (Results 1 – 25 of 221) 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/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/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/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/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/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java69 SharedPreferences sp = mContext.getSharedPreferences( in tearDown()
148 SharedPreferences sp = mContext.getSharedPreferences( in onChangePassword_savesNewPassword()
166 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToNone_visibilityIsFalse()
185 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToWPA2PSK_visibilityIsTrue()
205 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToNone_updatesSecurityTypeToNone()
226 SharedPreferences sp = mContext.getSharedPreferences( in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK()
244 SharedPreferences sp = mContext.getSharedPreferences( in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword()
/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/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/Settings/src/com/android/settings/accessibility/
DSharedPreferenceUtils.java33 private static SharedPreferences getSharedPreferences(Context context, String fileName) { in getSharedPreferences() method in SharedPreferenceUtils
34 return context.getSharedPreferences(fileName, Context.MODE_PRIVATE); in getSharedPreferences()
39 return getSharedPreferences(context, ACCESSIBILITY_PERF) in getUserShortcutTypes()
45 SharedPreferences.Editor editor = getSharedPreferences(context, ACCESSIBILITY_PERF).edit(); in setUserShortcutType()
/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 …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java227 verify(mContext, never()).getSharedPreferences(anyString(), anyInt()); in testMigrateSharedPreferenceFromLegacyWhenNoLegacyProvider()
242 verify(mContext).getSharedPreferences(anyString(), anyInt()); in testMigrateSharedPreferenceFromLegacyWhenBundleNull()
250 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testSetTestingMode()
261 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testIsTestingMode()
270 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testAdjustReminderInterval()
348 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testTryCdmaSetCatergory()
376 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testHandleCdmaSmsCbProgramDataOperationAddAndDelete()
399 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in testHandleCdmaSmsCbProgramDataOprationClear()
/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