/packages/apps/Contacts/src/com/android/contacts/util/ |
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() 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/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/ |
D | UserParameters.java | 60 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in UserParameters 63 return deviceContext.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in getSharedPreferences() 73 return getSharedPreferences(context).getInt(KEY_PROVISION_STATE, in getProvisionState() 81 getSharedPreferences(context).edit().putInt(KEY_PROVISION_STATE, state).apply(); in setProvisionState() 88 return getSharedPreferences(context).getBoolean(KEY_NEED_INITIAL_CHECK_IN, true); in needInitialCheckIn() 93 getSharedPreferences(context).edit().putBoolean(KEY_NEED_INITIAL_CHECK_IN, false).apply(); in initialCheckInScheduled() 101 return getSharedPreferences(context).getLong(KEY_BOOT_TIME_MILLS, 0L); in getBootTimeMillis() 106 getSharedPreferences(context).edit().putLong(KEY_BOOT_TIME_MILLS, bootTime).apply(); in setBootTimeMillis() 114 return getSharedPreferences(context).getLong(KEY_NEXT_CHECK_IN_TIME_MILLIS, 0L); in getNextCheckInTimeMillis() 120 getSharedPreferences(context).edit().putLong(KEY_NEXT_CHECK_IN_TIME_MILLIS, in setNextCheckInTimeMillis() [all …]
|
D | GlobalParameters.java | 53 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in GlobalParameters 56 return deviceContext.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in getSharedPreferences() 60 return getSharedPreferences(context).getBoolean(KEY_IS_PROVISION_READY, false); in isProvisionReady() 64 getSharedPreferences(context).edit().putBoolean(KEY_IS_PROVISION_READY, in setProvisionReady() 77 SharedPreferences preferences = getSharedPreferences(context); in getRegisteredDeviceId() 88 getSharedPreferences(context) in setRegisteredDeviceId() 101 return getSharedPreferences(context).getBoolean(KEY_FORCED_PROVISION, false); in isProvisionForced() 109 return getSharedPreferences(context).getInt(KEY_DEVICE_STATE, DeviceState.UNDEFINED); in getDeviceState() 116 getSharedPreferences(context).edit().putInt(KEY_DEVICE_STATE, state).apply(); in setDeviceState() 124 return getSharedPreferences(context).getInt( in getFinalizationState() [all …]
|
D | SetupParameters.java | 79 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in SetupParameters 81 return deviceContext.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in getSharedPreferences() 91 populatePreferencesLocked(getSharedPreferences(context), bundle); in overridePrefs() 132 SharedPreferences sharedPreferences = getSharedPreferences(context); in createPrefs() 173 return getSharedPreferences(context).getString(KEY_KIOSK_PACKAGE, null /* defValue */); in getKioskPackage() 183 return getSharedPreferences(context) in getOutgoingCallsDisabled() 194 SharedPreferences sharedPreferences = getSharedPreferences(context); in getKioskAllowlist() 207 return getSharedPreferences(context) in isNotificationsInLockTaskModeEnabled() 218 return getSharedPreferences(context).getBoolean(KEY_ALLOW_DEBUGGING, false /* defValue */); in isDebuggingAllowed() 229 return getSharedPreferences(context).getInt(KEY_PROVISIONING_TYPE, TYPE_UNDEFINED); in getProvisioningType() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | Settings.java | 81 SharedPreferences sharedPref = getSharedPreferences(context); in hasErrDataBudget() 102 SharedPreferences sharedPref = getSharedPreferences(context); in getErrDataBudgetConsumed() 117 SharedPreferences sharedPref = getSharedPreferences(context); in consumeErrDataBudget() 134 SharedPreferences sharedPref = getSharedPreferences(context); in generateAndSetId() 150 SharedPreferences sharedPref = getSharedPreferences(context); in getId() 178 SharedPreferences sharedPref = getSharedPreferences(context); in setDeviceConfig() 205 SharedPreferences sharedPref = getSharedPreferences(context); in getExtraSignedKeysAvailable() 213 SharedPreferences sharedPref = getSharedPreferences(context); in getExpiringBy() 230 SharedPreferences sharedPref = getSharedPreferences(context); in getUrl() 261 SharedPreferences sharedPref = getSharedPreferences(context); in incrementFailureCounter() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/ |
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()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
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()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
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()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleNotificationDataManager.java | 55 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocaleNotificationDataManager 56 return context.getSharedPreferences(LOCALE_NOTIFICATION, Context.MODE_PRIVATE); in getSharedPreferences() 69 SharedPreferences.Editor editor = getSharedPreferences(mContext).edit(); in putNotificationInfo() 80 SharedPreferences.Editor editor = getSharedPreferences(mContext).edit(); in removeNotificationInfo() 94 String json = getSharedPreferences(mContext).getString(locale, ""); in getNotificationInfo() 105 Map<String, String> map = (Map<String, String>) getSharedPreferences(mContext).getAll(); in getLocaleNotificationInfoMap() 118 getSharedPreferences(mContext).edit().clear().apply(); in clearLocaleNotificationMap()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/debug/ |
D | DeviceCheckInClientDebug.java | 71 getSharedPreferences(context).edit().putBoolean(DEBUG_DEVICELOCK_CHECKIN, enabled).apply(); in setDebugClientEnabled() 75 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_CHECKIN_STATUS, in setDebugCheckInStatus() 80 getSharedPreferences(context).edit().putBoolean(DEBUG_DEVICELOCK_CHECKIN_FORCE_PROVISIONING, in setDebugForceProvisioning() 85 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_CHECKIN_RETRY_DELAY, in setDebugCheckInRetryDelay() 91 getSharedPreferences(context).edit().putBoolean(DEBUG_DEVICELOCK_CHECKIN_APPROVED_COUNTRY, in setDebugApprovedCountry() 97 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_CHECKIN_NEXT_PROVISION_STATE, in setDebugNextProvisionState() 103 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_CHECKIN_DAYS_LEFT_UNTIL_RESET, in setDebugDaysLeftUntilReset() 109 "Current Debug Client Responses:\n" + getSharedPreferences(context).getAll()); in dumpDebugCheckInClientResponses() 113 getSharedPreferences(context).edit().clear().apply(); in clear() 117 SharedPreferences preferences = getSharedPreferences(/* context= */ null); in getSharedPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
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()
|
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()
|
/packages/apps/TV/common/src/com/android/tv/common/ |
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() 173 return getSharedPreferences(context) in getTrickplaySetting() 185 getSharedPreferences(context) in setTrickplaySetting() 197 return getSharedPreferences(context).getBoolean(PREFS_KEY_STORE_TS_STREAM, false); in getStoreTsStream() 205 getSharedPreferences(context) in setStoreTsStream() 217 return getSharedPreferences(context).getString(PREFS_KEY_LAST_POSTAL_CODE, null); in getLastPostalCode() 225 getSharedPreferences(context) in setLastPostalCode() 232 protected static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in CommonPreferences [all …]
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/ |
D | LegacyRoleFallbackEnabledUtils.java | 51 private static SharedPreferences getSharedPreferences(@NonNull UserHandle user, in getSharedPreferences() method in LegacyRoleFallbackEnabledUtils 62 return context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE); in getSharedPreferences() 73 SharedPreferences sharedPreferences = getSharedPreferences(user, context); in getFallbackDisabledRoles() 91 return !getSharedPreferences(user, context) in isRoleFallbackEnabledAsUser() 102 getSharedPreferences(user, context).edit().remove(key).apply(); in setRoleFallbackEnabledAsUser() 104 getSharedPreferences(user, context).edit().putBoolean(key, true).apply(); in setRoleFallbackEnabledAsUser()
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPreferencesTest.kt | 53 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 74 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 97 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setHomeLiveWallpaperMetadata_metadataShouldBeSavedToPreferences() 110 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setHomeLiveWallpaperMetadata_metadataShouldBeSavedToPreferences() 137 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 158 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 181 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setLockLiveWallpaperMetadata_metadataShouldBeSavedToPreferences() 194 (ApplicationProvider.getApplicationContext() as Context).getSharedPreferences( in setLockLiveWallpaperMetadata_metadataShouldBeSavedToPreferences()
|
/packages/apps/TV/src/com/android/tv/receiver/ |
D | AudioCapabilitiesReceiver.java | 121 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in AudioCapabilitiesReceiver 122 return mContext.getSharedPreferences( in getSharedPreferences() 127 return getSharedPreferences().getBoolean(key, def); in getBoolean() 131 getSharedPreferences().edit().putBoolean(key, val).apply(); in setBoolean() 135 return getSharedPreferences().getInt(key, def); in getInt() 139 getSharedPreferences().edit().putInt(key, val).apply(); in setInt()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 55 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences 56 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences() 60 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp() 86 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() 153 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() 162 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/ |
D | DeviceLockControllerSchedulerImpl.java | 103 private static synchronized SharedPreferences getSharedPreferences( in getSharedPreferences() method in DeviceLockControllerSchedulerImpl 106 sSharedPreferences = context.createDeviceProtectedStorageContext().getSharedPreferences( in getSharedPreferences() 118 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_PAUSED_MINUTES, in setDebugProvisionPausedMinutes() 126 getSharedPreferences(context).edit().putLong(DEBUG_DEVICELOCK_REPORT_INTERVAL_MINUTES, in setDebugReportIntervalMinutes() 135 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_RESET_DEVICE_MINUTES, in setDebugResetDeviceMinutes() 144 getSharedPreferences(context).edit().putInt(DEBUG_DEVICELOCK_MANDATORY_RESET_DEVICE_MINUTES, in setDebugMandatoryResetDeviceMinutes() 153 "Current Debug Scheduler setups:\n" + getSharedPreferences(context).getAll()); in dumpDebugScheduler() 160 getSharedPreferences(context).edit().clear().apply(); in clear() 243 getSharedPreferences(mContext).getInt(DEBUG_DEVICELOCK_PAUSED_MINUTES, in scheduleResumeProvisionAlarm() 377 long minutes = Build.isDebuggable() ? getSharedPreferences(mContext).getLong( [all …]
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SlicesDatabaseHelper.java | 186 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct() 222 mContext.getSharedPreferences(SHARED_PREFS_TAG, 0 /* mode */) in setBuildIndexed() 229 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed() 236 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isBuildIndexed() 242 return mContext.getSharedPreferences(SHARED_PREFS_TAG, in isLocaleIndexed()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
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()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityQuickSettingUtils.java | 57 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in optInValueToSharedPreferences() 93 return getSharedPreferences(context).getString(KEY_TILE_SERVICE_SHOWN, ""); in getFromSharedPreferences() 96 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in AccessibilityQuickSettingUtils 97 return context.getSharedPreferences(ACCESSIBILITY_PERF, Context.MODE_PRIVATE); in getSharedPreferences()
|
D | PreferredShortcuts.java | 151 return getSharedPreferences(context).getStringSet(USER_SHORTCUT_TYPE, Set.of()); in getFromSharedPreferences() 156 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveToSharedPreferences() 160 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in PreferredShortcuts 161 return context.getSharedPreferences(ACCESSIBILITY_PERF, Context.MODE_PRIVATE); in getSharedPreferences() 166 getSharedPreferences(context).edit().clear().apply(); in clearPreferredShortcuts()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/ |
D | DeviceCheckInClient.java | 63 protected static synchronized SharedPreferences getSharedPreferences( in getSharedPreferences() method in DeviceCheckInClient 68 0).createDeviceProtectedStorageContext().getSharedPreferences(FILENAME, in getSharedPreferences() 78 getSharedPreferences(context).edit().putString(HOST_NAME_OVERRIDE, override).apply(); in setHostNameOverride() 93 useDebugClient = getSharedPreferences(context).getBoolean( in getInstance() 95 hostNameOverride = getSharedPreferences(context).getString( in getInstance()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 92 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in BluetoothUtils 93 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences() 97 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp() 122 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() 175 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() 182 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
|
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
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()
|