/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | SharedPreferenceUtil.java | 65 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() 140 getSharedPreferences(context).edit() in incNumOfDismissesForAutoSyncOff() 164 getSharedPreferences(context).edit() in incNumOfDismissesForAccountSyncOff() 187 getSharedPreferences(context).edit() in persistSimStates() 205 return getSharedPreferences(context) in getImportedSims() [all …]
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/ |
H A D | TunerPreferences.java | 39 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()
|
/aosp12/packages/apps/TV/common/src/com/android/tv/common/util/ |
H A D | SharedPreferencesUtils.java | 59 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()
|
/aosp12/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/ |
H A D | SettingsManager.java | 52 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | BuglePrefsImpl.java | 45 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
H A D | EmergencyCallLimitationDisclaimerTest.java | 60 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()
|
H A D | LocationPolicyDisclaimerTest.java | 59 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()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
H A D | ConnectionRecordManager.java | 45 private SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in ConnectionRecordManager 46 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences() 56 return getSharedPreferences(context).getInt(id, 0); in fetchConnectionRecord() 63 mLastSelectedDevice = getSharedPreferences(context).getString(KEY_LAST_SELECTED_DEVICE, in fetchLastSelectedDevice() 74 final SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in setConnectionRecord()
|
/aosp12/packages/apps/TV/common/src/com/android/tv/common/ |
H A D | CommonPreferences.java | 108 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 …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | LocalBluetoothPreferences.java | 51 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()
|
/aosp12/packages/apps/TV/src/com/android/tv/receiver/ |
H A D | AudioCapabilitiesReceiver.java | 120 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()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothUtils.java | 83 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/slices/ |
H A D | SlicesDatabaseHelper.java | 179 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct() 215 mContext.getSharedPreferences(SHARED_PREFS_TAG, 0 /* mode */) in setBuildIndexed() 222 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed() 229 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isBuildIndexed() 235 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isLocaleIndexed()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactListFilterController.java | 98 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | PreferredShortcuts.java | 88 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
H A D | SmartForwardingUtils.java | 37 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()
|
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
H A D | StorageManagerUpsellDialog.java | 92 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()
|
H A D | ConfirmDeletionDialog.java | 77 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()
|
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/list/ |
H A D | ContactListFilterController.java | 85 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()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
H A D | PluginPrefs.java | 40 mSharedPrefs = context.getSharedPreferences(PREFS, 0); in PluginPrefs() 55 return context.getSharedPreferences(PREFS, 0).getBoolean(HAS_PLUGINS, false); in hasPlugins() 59 context.getSharedPreferences(PREFS, 0).edit().putBoolean(HAS_PLUGINS, true).apply(); in setHasPlugins()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
H A D | WifiTetherPasswordPreferenceControllerTest.java | 74 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()
|
/aosp12/packages/apps/TV/src/com/android/tv/util/ |
H A D | RecurringRunner.java | 118 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()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | SubScreenFragment.java | 79 final SharedPreferences getSharedPreferences() { 80 return getPreferenceManager().getSharedPreferences(); 119 getSharedPreferences().registerOnSharedPreferenceChangeListener( 125 getSharedPreferences().unregisterOnSharedPreferenceChangeListener(
|
H A D | AdvancedSettingsFragment.java | 57 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()
|
/aosp12/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/ |
H A D | Settings.java | 76 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()
|