/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventReportingJobHandlerTest.java | 52 import com.android.adservices.service.measurement.EventReport; 178 EventReport eventReport = in testSendReportForPendingReportSuccess() 179 new EventReport.Builder() in testSendReportForPendingReportSuccess() 183 .setStatus(EventReport.Status.PENDING) in testSendReportForPendingReportSuccess() 223 EventReport eventReport = in testSendReportForPendingDebugReportSuccess() 224 new EventReport.Builder() in testSendReportForPendingDebugReportSuccess() 228 .setStatus(EventReport.Status.PENDING) in testSendReportForPendingDebugReportSuccess() 229 .setDebugReportStatus(EventReport.DebugReportStatus.PENDING) in testSendReportForPendingDebugReportSuccess() 268 EventReport eventReport = in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 269 new EventReport.Builder() in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() [all …]
|
D | EventReportingJobHandlerWrapper.java | 28 import com.android.adservices.service.measurement.EventReport; 61 ArgumentCaptor<EventReport> eventReport = ArgumentCaptor.forClass(EventReport.class); in spyPerformScheduledPendingReportsInWindow()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | EventReportTest.java | 136 EventReport eventReport = createExample(); in creation_success() 147 assertEquals(EventReport.Status.PENDING, eventReport.getStatus()); in creation_success() 148 assertEquals(EventReport.DebugReportStatus.PENDING, eventReport.getDebugReportStatus()); in creation_success() 160 EventReport eventReport = createExampleSingleSourceDebugKey(); in creationSuccessSingleSourceDebugKey() 172 assertEquals(EventReport.Status.PENDING, eventReport.getStatus()); in creationSuccessSingleSourceDebugKey() 173 assertEquals(EventReport.DebugReportStatus.PENDING, eventReport.getDebugReportStatus()); in creationSuccessSingleSourceDebugKey() 184 EventReport eventReport = createExampleSingleTriggerDebugKey(); in creationSuccessSingleTriggerDebugKey() 196 assertEquals(EventReport.Status.PENDING, eventReport.getStatus()); in creationSuccessSingleTriggerDebugKey() 197 assertEquals(EventReport.DebugReportStatus.PENDING, eventReport.getDebugReportStatus()); in creationSuccessSingleTriggerDebugKey() 208 EventReport eventReport = createExampleMultipleTriggerDebugKeys(); in creationSuccessMultipleTriggerDebugKeys() [all …]
|
D | E2EMockTest.java | 426 (List<EventReport>) eventCaptures[0], in processActualDebugReportJob() 491 (List<EventReport>) eventCaptures[0], in processAction() 520 List<EventReport> eventReports, List<Uri> destinations, List<JSONObject> payloads) in processActualEventReports() 529 List<EventReport> eventReports, in processActualDebugEventReports() 551 List<EventReport> eventReports, List<Uri> destinations, List<JSONObject> payloads) { in getActualEventReportObjects()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | EventReportTest.java | 42 EventReport.Type type = EventReport.Type.PARTICIPANT_CHAT_STATE_CHANGED; in fromStream() 58 EventReport report = EventReport.fromStream(new DataInputStream(stream)); in fromStream() 76 EventReport report = EventReport.fromStream(new DataInputStream(stream)); in fromStream_withInvalidXml_doesNotCrash_andReturnNull() 83 EventReport.Type type = EventReport.Type.PARTICIPANT_CHAT_STATE_CHANGED; in fromStreamWithDateTime() 101 EventReport report = EventReport.fromStream(new DataInputStream(stream)); in fromStreamWithDateTime() 119 EventReport report = EventReport.fromStream(new DataInputStream(stream)); in fromStream_withIOException_doesNotCrash_andReturnNull() 132 EventReport report = EventReport.fromStream(new DataInputStream(stream)); in fromStream_withIllegalArgumentException_doesNotCrash_andReturnNull()
|
D | MapClientStateMachineTest.java | 679 EventReport event = in testReceivedNewSms_messageStoredAsUnseen() 725 EventReport event = in testReceivedNewMms_messageStoredAsUnseen() 879 EventReport event = in testReceiveNewMessageNotification() 919 EventReport event = in testReceivedNewMmsNoSMSDefaultPackage_broadcastToSMSReplyPackage() 1065 ACTION_MESSAGE_SENT, EventReport.Type.SENDING_SUCCESS); in testSendMapMessageSentPendingIntent_notifyStatusSuccess() 1083 ACTION_MESSAGE_DELIVERED, EventReport.Type.DELIVERY_SUCCESS); in testSendMapMessageDeliveryPendingIntent_notifyStatusSuccess() 1101 testSendMapMessagePendingIntents_base(null, EventReport.Type.SENDING_SUCCESS); in testSendMapMessageNullPendingIntent_noNotifyStatus() 1118 ACTION_MESSAGE_SENT, EventReport.Type.SENDING_FAILURE); in testSendMapMessageSentPendingIntent_notifyStatusFailure() 1137 ACTION_MESSAGE_DELIVERED, EventReport.Type.DELIVERY_FAILURE); in testSendMapMessageDeliveryPendingIntent_notifyStatusFailure() 1150 private void testSendMapMessagePendingIntents_base(String action, EventReport.Type type) { in testSendMapMessagePendingIntents_base() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | EventReportingJobHandler.java | 36 import com.android.adservices.service.measurement.EventReport; 186 private String getAppPackageName(EventReport eventReport) { in getAppPackageName() 212 Optional<EventReport> eventReportOpt = in performReport() 220 EventReport eventReport = eventReportOpt.get(); in performReport() 224 && eventReport.getDebugReportStatus() != EventReport.DebugReportStatus.PENDING) { in performReport() 229 if (!mIsDebugInstance && eventReport.getStatus() != EventReport.Status.PENDING) { in performReport() 248 eventReportId, EventReport.Status.DELIVERED); in performReport() 292 eventReportId, EventReport.Status.MARKED_TO_DELETE)); in performReport() 320 private void updateAppReportHistory(EventReport eventReport, IMeasurementDao dao) in updateAppReportHistory() 344 JSONObject createReportJsonPayload(EventReport eventReport) throws JSONException { in createReportJsonPayload()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/ |
D | EventReportFixture.java | 30 public static EventReport.Builder getBaseEventReportBuild() { in getBaseEventReportBuild() 31 return new EventReport.Builder() in getBaseEventReportBuild() 39 .setStatus(EventReport.Status.PENDING) in getBaseEventReportBuild() 40 .setDebugReportStatus(EventReport.DebugReportStatus.PENDING) in getBaseEventReportBuild()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandlerTest.java | 58 import com.android.adservices.service.measurement.EventReport; 455 ArgumentCaptor<EventReport> reportArg = ArgumentCaptor.forClass(EventReport.class); in shouldNotCreateEventReportAfterEventReportWindow_secondTrigger() 458 List<EventReport> newReportArgs = reportArg.getAllValues(); in shouldNotCreateEventReportAfterEventReportWindow_secondTrigger() 694 doReturn(Arrays.asList(mock(EventReport.class), mock(EventReport.class))) in performPendingAttributions_vtcWithConfiguredReportsCount_attributeUptoConfigLimit() 729 EventReport eventReport1 = new EventReport.Builder() in shouldIgnoreForMaxReportsPerSource() 730 .setStatus(EventReport.Status.DELIVERED) in shouldIgnoreForMaxReportsPerSource() 732 EventReport eventReport2 = new EventReport.Builder() in shouldIgnoreForMaxReportsPerSource() 733 .setStatus(EventReport.Status.DELIVERED) in shouldIgnoreForMaxReportsPerSource() 735 EventReport eventReport3 = new EventReport.Builder().setStatus( in shouldIgnoreForMaxReportsPerSource() 736 EventReport.Status.DELIVERED).build(); in shouldIgnoreForMaxReportsPerSource() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | EventReport.java | 40 public class EventReport { class 50 EventReport(HashMap<String, String> attrs) throws IllegalArgumentException { in EventReport() method in EventReport 89 static EventReport fromStream(DataInputStream in) { in fromStream() 90 EventReport ev = null; in fromStream() 107 ev = new EventReport(attrs); in fromStream()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | IMeasurementDao.java | 27 import com.android.adservices.service.measurement.EventReport; 323 List<EventReport> getSourceEventReports(Source source) throws DatastoreException; in getSourceEventReports() 332 EventReport getEventReport(String eventReportId) throws DatastoreException; in getEventReport() 358 void markEventReportStatus(String eventReportId, @EventReport.Status int status) in markEventReportStatus() 396 void insertEventReport(EventReport eventReport) throws DatastoreException; in insertEventReport() 399 void deleteEventReportAndAttribution(EventReport eventReport) throws DatastoreException; in deleteEventReportAndAttribution() 603 List<EventReport> fetchMatchingEventReports( in fetchMatchingEventReports() 618 void deleteFlexEventReportsAndAttributions(List<EventReport> eventReports) in deleteFlexEventReportsAndAttributions()
|
D | MeasurementDao.java | 39 import com.android.adservices.service.measurement.EventReport; 359 MeasurementTables.EventReportContract.STATUS, EventReport.Status.MARKED_TO_DELETE); in ignoreSourcesAndDeleteFakeReportsForAttributionScope() 595 public EventReport getEventReport(@NonNull String eventReportId) throws DatastoreException { in getEventReport() 1057 public void markEventReportStatus(@NonNull String eventReportId, @EventReport.Status int status) in markEventReportStatus() 1117 EventReport.DebugReportStatus.DELIVERED); in markEventDebugReportDelivered() 1153 public List<EventReport> getSourceEventReports(Source source) throws DatastoreException { in getSourceEventReports() 1154 List<EventReport> eventReports = new ArrayList<>(); in getSourceEventReports() 1175 public void deleteEventReportAndAttribution(EventReport eventReport) throws DatastoreException { in deleteEventReportAndAttribution() 1297 String.valueOf(EventReport.Status.PENDING), in getPendingEventReportIdsForGivenApp() 1310 public void insertEventReport(EventReport eventReport) throws DatastoreException { in insertEventReport() [all …]
|
D | SqliteObjectMapper.java | 25 import com.android.adservices.service.measurement.EventReport; 45 static EventReport constructEventReportFromCursor(Cursor cursor) { in constructEventReportFromCursor() 46 EventReport.Builder builder = new EventReport.Builder(); in constructEventReportFromCursor()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | EventReport.java | 42 public class EventReport { class 87 private EventReport() { in EventReport() method in EventReport 94 if (!(obj instanceof EventReport)) { in equals() 97 EventReport eventReport = (EventReport) obj; in equals() 287 private final EventReport mBuilding; 290 mBuilding = new EventReport(); in Builder() 534 public EventReport build() { in build()
|
D | TriggerSpecs.java | 289 List<EventReport> sourceEventReports, in prepareFlexAttribution() 291 List<EventReport> reportsToDelete, in prepareFlexAttribution() 295 Comparator.comparing(EventReport::getTriggerData) in prepareFlexAttribution() 301 for (EventReport eventReport : sourceEventReports) { in prepareFlexAttribution() 334 AttributedTrigger attributedTrigger, EventReport eventReport, long bucketSize) { in restoreTriggerContributionAndGetBucketDelta()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleter.java | 31 import com.android.adservices.service.measurement.EventReport; 170 List<EventReport> eventReports; in delete() 219 for (EventReport eventReport : eventReports) { in delete() 220 dao.markEventReportStatus(eventReport.getId(), EventReport.Status.MARKED_TO_DELETE); in delete() 264 void resetDedupKeys(@NonNull IMeasurementDao dao, @NonNull List<EventReport> eventReports) in resetDedupKeys() 266 for (EventReport report : eventReports) { in resetDedupKeys()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateReportFixture.java | 23 import com.android.adservices.service.measurement.EventReport; 53 .setStatus(EventReport.Status.PENDING) in getValidAggregateReportBuilder() 54 .setDebugReportStatus(EventReport.DebugReportStatus.PENDING) in getValidAggregateReportBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | MeasurementDaoTest.java | 75 import com.android.adservices.service.measurement.EventReport; 2846 EventReport e111 = measurementDao.getEventReport("E11_1"); in deleteFlexEventReportsAndAttributions_success() 2847 EventReport e112 = measurementDao.getEventReport("E11_2"); in deleteFlexEventReportsAndAttributions_success() 2868 EventReport e21 = measurementDao.getEventReport("E21"); in deleteFlexEventReportsAndAttributions_success() 2884 EventReport e222 = measurementDao.getEventReport("E22_2"); in deleteFlexEventReportsAndAttributions_success() 3129 EventReport e111 = createEventReportForSourceAndTrigger("E11_1", s1, t1); in prepareDataForFlexEventReportAndAttributionDeletion() 3130 EventReport e112 = createEventReportForSourceAndTrigger("E11_2", s1, t1); in prepareDataForFlexEventReportAndAttributionDeletion() 3131 EventReport e113 = createEventReportForSourceAndTrigger("E11_3", s1, t1); in prepareDataForFlexEventReportAndAttributionDeletion() 3132 EventReport e21 = createEventReportForSourceAndTrigger("E21", s2, t1); in prepareDataForFlexEventReportAndAttributionDeletion() 3133 EventReport e221 = createEventReportForSourceAndTrigger("E22_1", s2, t2); in prepareDataForFlexEventReportAndAttributionDeletion() [all …]
|
D | DbState.java | 27 import com.android.adservices.service.measurement.EventReport; 61 List<EventReport> mEventReportList; 120 EventReport eventReport = getEventReportFrom(rJSON); in DbState() 331 Comparator.comparing(EventReport::getReportTime) in sortAll() 332 .thenComparing(EventReport::getTriggerTime)); in sortAll() 438 private EventReport getEventReportFrom(JSONObject rJSON) throws JSONException { in getEventReportFrom() 439 return new EventReport.Builder() in getEventReportFrom()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandler.java | 42 import com.android.adservices.service.measurement.EventReport; 983 EventReport newEventReport = in maybeGenerateEventReport() 984 new EventReport.Builder() in maybeGenerateEventReport() 1005 if (newEventReport.getDebugReportStatus() == EventReport.DebugReportStatus.PENDING) { in maybeGenerateEventReport() 1036 List<EventReport> sourceEventReports = measurementDao.getSourceEventReports(source); in restoreTriggerContributionsAndProvisionFlexEventReportQuota() 1038 List<EventReport> reportsToDelete = new ArrayList<>(); in restoreTriggerContributionsAndProvisionFlexEventReportQuota() 1249 EventReport newEventReport, in provisionEventReportQuota() 1252 List<EventReport> sourceEventReports = measurementDao.getSourceEventReports(source); in provisionEventReportQuota() 1258 List<EventReport> relevantEventReports = in provisionEventReportQuota() 1262 r.getStatus() == EventReport.Status.PENDING in provisionEventReportQuota() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MceStateMachine.java | 716 EventReport notification = (EventReport) message.obj; in processMessage() 847 private void processNotification(EventReport event) { in processNotification() 1172 private void notifySentMessageStatus(String handle, EventReport.Type status) { in notifySentMessageStatus() 1180 if (status == EventReport.Type.SENDING_FAILURE in notifySentMessageStatus() 1181 || status == EventReport.Type.SENDING_SUCCESS) { in notifySentMessageStatus() 1183 } else if (status == EventReport.Type.DELIVERY_SUCCESS in notifySentMessageStatus() 1184 || status == EventReport.Type.DELIVERY_FAILURE) { in notifySentMessageStatus() 1192 if (status == EventReport.Type.SENDING_FAILURE in notifySentMessageStatus() 1193 || status == EventReport.Type.DELIVERY_FAILURE) { in notifySentMessageStatus() 1268 void receiveEvent(EventReport ev) { in receiveEvent()
|
D | MnsObexServer.java | 113 EventReport ev = EventReport.fromStream(op.openDataInputStream()); in onPut()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleterTest.java | 45 import com.android.adservices.service.measurement.EventReport; 147 @Mock private EventReport mEventReport1; 148 @Mock private EventReport mEventReport2; 149 @Mock private EventReport mEventReport3; 780 eq("eventReportId1"), eq(EventReport.Status.MARKED_TO_DELETE)); in delete_deletionModeExcludeInternalData_success() 783 eq("eventReportId2"), eq(EventReport.Status.MARKED_TO_DELETE)); in delete_deletionModeExcludeInternalData_success()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncRegistrationQueueRunner.java | 40 import com.android.adservices.service.measurement.EventReport; 798 private List<EventReport> generateFakeEventReports( in generateFakeEventReports() 803 new EventReport.Builder() in generateFakeEventReports() 815 .setStatus(EventReport.Status.PENDING) in generateFakeEventReports() 847 for (EventReport report : generateFakeEventReports(sourceId, source, fakeReports)) { in insertSourceFromTransaction()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncRegistrationQueueRunnerTest.java | 72 import com.android.adservices.service.measurement.EventReport; 513 verify(mMeasurementDao, times(0)).insertEventReport(any(EventReport.class)); in test_runAsyncRegistrationQueueWorker_ThreadInterrupted() 595 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() 665 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeLocation() 734 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSource_middleRegistration_redirectTypeLocation() 785 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWellKnown_typeLocation() 928 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWithExistingPathAndQuery() 1010 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource() 1073 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectAlreadyWellKnown() 1683 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in test_runAsyncRegistrationQueueWorker_appSource_noRedirects_success() [all …]
|