Home
last modified time | relevance | path

Searched refs:sourceIds (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterBroadcastDispatcher.java146 List<String> sourceIds = userIdsToSourceIds.valueAt(i); in sendRefreshSafetySourcesBroadcast() local
149 sourceIds = new ArrayList<>(sourceIds); in sendRefreshSafetySourcesBroadcast()
150 sourceIds.removeAll(deniedSourceIds); in sendRefreshSafetySourcesBroadcast()
154 sourceIds = new ArrayList<>(sourceIds); in sendRefreshSafetySourcesBroadcast()
155 sourceIds.retainAll(requiredSourceIds); in sendRefreshSafetySourcesBroadcast()
158 if (sourceIds.isEmpty()) { in sendRefreshSafetySourcesBroadcast()
162 Intent intent = createRefreshIntent(refreshReason, packageName, sourceIds, broadcastId); in sendRefreshSafetySourcesBroadcast()
167 broadcastId, sourceIds, userId); in sendRefreshSafetySourcesBroadcast()
390 List<String> sourceIds = new ArrayList<>(); in getSourceIdsForRefreshReason() local
402 sourceIds.add(sourceId); in getSourceIdsForRefreshReason()
[all …]
DSafetyCenterRefreshTracker.java132 String refreshBroadcastId, List<String> sourceIds, @UserIdInt int userId) { in reportSourceRefreshesInFlight() argument
138 for (int i = 0; i < sourceIds.size(); i++) { in reportSourceRefreshesInFlight()
139 SafetySourceKey key = SafetySourceKey.of(sourceIds.get(i), userId); in reportSourceRefreshesInFlight()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DSafetySourceBroadcastReceiver.java73 private static void refreshSafetySources(Context context, List<String> sourceIds, in refreshSafetySources() argument
75 if (sourceIds.contains(LockScreenSafetySource.SAFETY_SOURCE_ID)) { in refreshSafetySources()
80 if (sourceIds.contains(BiometricsSafetySource.SAFETY_SOURCE_ID)) { in refreshSafetySources()
84 if (sourceIds.contains(PrivateSpaceSafetySource.SAFETY_SOURCE_ID)) { in refreshSafetySources()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/
DMeasurementDataDeleter.java127 List<String> sourceIds = in delete() local
159 !sourceIds.isEmpty() || !triggerIds.isEmpty() || !asyncRegistrationIds.isEmpty(); in delete()
167 dao.fetchMatchingAggregateReports(sourceIds, triggerIds); in delete()
199 extendedSourceIds.addAll(sourceIds); in delete()
203 eventReports = dao.fetchMatchingEventReports(sourceIds, triggerIds); in delete()
213 dao.deleteSources(sourceIds); in delete()
229 dao.updateSourceStatus(sourceIds, Source.Status.MARKED_TO_DELETE); in delete()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/deletion/
DMeasurementDataDeleterTest.java489 List<String> sourceIds = List.of("sourceId1", "sourceId2"); in delete_deletionModeAll_success() local
523 when(mMeasurementDao.fetchMatchingEventReports(sourceIds, triggerIds)) in delete_deletionModeAll_success()
525 when(mMeasurementDao.fetchMatchingAggregateReports(sourceIds, triggerIds)) in delete_deletionModeAll_success()
567 verify(mMeasurementDao).deleteSources(sourceIds); in delete_deletionModeAll_success()
581 List<String> sourceIds = List.of("sourceId1", "sourceId2"); in delete_deletionModeAllFlexApi_success() local
650 when(mMeasurementDao.fetchMatchingAggregateReports(sourceIds, triggerIds)) in delete_deletionModeAllFlexApi_success()
659 .thenReturn(sourceIds); in delete_deletionModeAllFlexApi_success()
701 verify(mMeasurementDao).deleteSources(sourceIds); in delete_deletionModeAllFlexApi_success()
720 List<String> sourceIds = List.of("sourceId1", "sourceId2"); in delete_deletionModeExcludeInternalData_success() local
750 when(mMeasurementDao.fetchMatchingEventReports(sourceIds, triggerIds)) in delete_deletionModeExcludeInternalData_success()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DIMeasurementDao.java285 void updateSourceStatus(@NonNull Collection<String> sourceIds, @Source.Status int status) in updateSourceStatus() argument
514 void deleteSources(@NonNull Collection<String> sourceIds) throws DatastoreException; in deleteSources() argument
592 @NonNull Collection<String> sourceIds, @NonNull Collection<String> triggerIds) in fetchMatchingAggregateReports()
604 @NonNull Collection<String> sourceIds, @NonNull Collection<String> triggerIds) in fetchMatchingEventReports()
810 void deletePendingAggregateReportsAndAttributionsForSources(List<String> sourceIds) in deletePendingAggregateReportsAndAttributionsForSources() argument
DMeasurementDao.java997 public void updateSourceStatus(@NonNull Collection<String> sourceIds, @Source.Status int status) in updateSourceStatus() argument
1010 .limit(sourceIds.size()) in updateSourceStatus()
1013 sourceIds.toArray(new String[0])); in updateSourceStatus()
1014 if (rows != sourceIds.size()) { in updateSourceStatus()
1866 @NonNull Collection<String> sourceIds, @NonNull Collection<String> triggerIds) in fetchMatchingAggregateReports()
1871 sourceIds, in fetchMatchingAggregateReports()
1879 @NonNull Collection<String> sourceIds, @NonNull Collection<String> triggerIds) in fetchMatchingEventReports()
1884 sourceIds, in fetchMatchingEventReports()
1893 Set<String> sourceIds = new HashSet<>(); in fetchFlexSourceIdsFor() local
1938 sourceIds.add(sourceId); in fetchFlexSourceIdsFor()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/
DSafetySourceBroadcastReceiver.kt98 sourceIds: List<String>, in refreshSafetySources()
101 if (HEALTH_CONNECT_SOURCE_ID in sourceIds) { in refreshSafetySources()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceIntentHandler.kt124 val sourceIds = intent.getStringArrayExtra(EXTRA_REFRESH_SAFETY_SOURCE_IDS) in processRefreshSafetySources() constant
125 if (sourceIds.isNullOrEmpty()) { in processRefreshSafetySources()
131 for (sourceId in sourceIds) { in processRefreshSafetySources()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterNotificationTest.kt1318 fun setFlagsForImmediateNotifications(vararg sourceIds: String) { in setFlagsForImmediateNotifications()
1319 SafetyCenterFlags.notificationsAllowedSources = sourceIds.toSet() in setFlagsForImmediateNotifications()
1321 sourceIds.map { "$it/$ISSUE_TYPE_ID" }.toSet() in setFlagsForImmediateNotifications()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java6065 List<String> sourceIds = in markLruDestSourcesAsDeleted_appDestEmptyExclusions_deletesLruDestinationSource() local
6075 assertEquals(Sets.newSet("s31"), new HashSet<>(sourceIds)); in markLruDestSourcesAsDeleted_appDestEmptyExclusions_deletesLruDestinationSource()
6135 List<String> sourceIds = in markLruDestSourcesAsDeleted_appDestWebPubEmptyExclusions_deletesLruDestSource() local
6145 assertEquals(Sets.newSet("s31"), new HashSet<>(sourceIds)); in markLruDestSourcesAsDeleted_appDestWebPubEmptyExclusions_deletesLruDestSource()
6201 List<String> sourceIds = in markLruDestSourcesAsDeleted_diffEnrollments_deletesLruDestSourceForChosenEnrollment() local
6211 assertEquals(Sets.newSet("s12"), new HashSet<>(sourceIds)); in markLruDestSourcesAsDeleted_diffEnrollments_deletesLruDestSourceForChosenEnrollment()
6226 List<String> sourceIds = in markLruDestSourcesAsDeleted_appDestExcludeLruSource_deletes2ndLruDestSources() local
6236 assertEquals(Sets.newSet("s11", "s12"), new HashSet<>(sourceIds)); in markLruDestSourcesAsDeleted_appDestExcludeLruSource_deletes2ndLruDestSources()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DAttributionJobHandlerTest.java2009 List<String> sourceIds = sourceIdArg.getAllValues(); in shouldPerformMultipleAttributions() local
2011 assertEquals(source1.getId(), sourceIds.get(0)); in shouldPerformMultipleAttributions()
2013 assertEquals(source2.getId(), sourceIds.get(1)); in shouldPerformMultipleAttributions()