/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventReportingJobHandlerTest.java | 178 EventReport eventReport = in testSendReportForPendingReportSuccess() local 190 .setReportId(eventReport.getId()) in testSendReportForPendingReportSuccess() 191 .setSourceEventId(eventReport.getSourceEventId()) in testSendReportForPendingReportSuccess() 192 .setAttributionDestination(eventReport.getAttributionDestinations()) in testSendReportForPendingReportSuccess() 196 when(mMeasurementDao.getEventReport(eventReport.getId())).thenReturn(eventReport); in testSendReportForPendingReportSuccess() 206 .markAggregateReportStatus(eventReport.getId(), AggregateReport.Status.DELIVERED); in testSendReportForPendingReportSuccess() 211 eventReport.getId(), new ReportingStatus())); in testSendReportForPendingReportSuccess() 223 EventReport eventReport = in testSendReportForPendingDebugReportSuccess() local 236 .setReportId(eventReport.getId()) in testSendReportForPendingDebugReportSuccess() 237 .setSourceEventId(eventReport.getSourceEventId()) in testSendReportForPendingDebugReportSuccess() [all …]
|
D | EventReportPayloadTest.java | 126 EventReportPayload eventReport = in toJson_success() local 136 JSONObject eventPayloadReportJson = eventReport.toJson(); in toJson_success() 171 EventReportPayload eventReport = createEventReportPayload( in toJson_multipleAttributionDestinations_setsDestinationsAsOrderedJSONArray() local 173 JSONObject eventPayloadReportJson = eventReport.toJson(); in toJson_multipleAttributionDestinations_setsDestinationsAsOrderedJSONArray() 190 EventReportPayload eventReport = createEventReportPayload(TRIGGER_DATA, null, null); in testEventPayloadJsonSerializationWithNullDebugKeys() local 191 JSONObject eventPayloadReportJson = eventReport.toJson(); in testEventPayloadJsonSerializationWithNullDebugKeys() 209 EventReportPayload eventReport = createEventReportPayload(null, null, null); in testEventPayloadJsonSerializationWithNullTriggerData() local 210 JSONObject eventPayloadReportJson = eventReport.toJson(); in testEventPayloadJsonSerializationWithNullTriggerData() 227 EventReportPayload eventReport = in testEventPayloadJsonSerializationWithSingleTriggerDebugKey() local 229 JSONObject eventPayloadReportJson = eventReport.toJson(); in testEventPayloadJsonSerializationWithSingleTriggerDebugKey() [all …]
|
D | EventReportingJobHandlerWrapper.java | 61 ArgumentCaptor<EventReport> eventReport = ArgumentCaptor.forClass(EventReport.class); in spyPerformScheduledPendingReportsInWindow() local 63 .createReportJsonPayload(eventReport.capture()); in spyPerformScheduledPendingReportsInWindow() 73 eventReport.getAllValues(), 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() local 137 assertEquals("1", eventReport.getId()); in creation_success() 138 assertEquals(new UnsignedLong(21L), eventReport.getSourceEventId()); in creation_success() 139 assertEquals("enrollment-id", eventReport.getEnrollmentId()); in creation_success() 141 eventReport.getAttributionDestinations().get(0).toString()); in creation_success() 142 assertEquals(1000L, eventReport.getTriggerTime()); in creation_success() 143 assertEquals(new UnsignedLong(8L), eventReport.getTriggerData()); in creation_success() 144 assertEquals(2L, eventReport.getTriggerPriority()); in creation_success() 145 assertEquals(new UnsignedLong(3L), eventReport.getTriggerDedupKey()); in creation_success() 146 assertEquals(2000L, eventReport.getReportTime()); in creation_success() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | EventReportingJobHandler.java | 186 private String getAppPackageName(EventReport eventReport) { in getAppPackageName() argument 190 if (eventReport.getSourceId() == null) { in getAppPackageName() 196 (dao) -> dao.getSourceRegistrant(eventReport.getSourceId())); in getAppPackageName() 220 EventReport eventReport = eventReportOpt.get(); in performReport() local 221 reportingStatus.setReportingDelay(System.currentTimeMillis() - eventReport.getReportTime()); in performReport() 222 reportingStatus.setSourceRegistrant(getAppPackageName(eventReport)); in performReport() 224 && eventReport.getDebugReportStatus() != EventReport.DebugReportStatus.PENDING) { in performReport() 229 if (!mIsDebugInstance && eventReport.getStatus() != EventReport.Status.PENDING) { in performReport() 235 Uri reportingOrigin = eventReport.getRegistrationOrigin(); in performReport() 236 JSONObject eventReportJsonPayload = createReportJsonPayload(eventReport); in performReport() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | EventReport.java | 97 EventReport eventReport = (EventReport) obj; in equals() local 98 return mStatus == eventReport.mStatus in equals() 99 && mDebugReportStatus == eventReport.mDebugReportStatus in equals() 100 && mReportTime == eventReport.mReportTime in equals() 101 && Objects.equals(mAttributionDestinations, eventReport.mAttributionDestinations) in equals() 103 .equals(ImmutableMultiset.copyOf(eventReport.mAttributionDestinations)) in equals() 104 && Objects.equals(mEnrollmentId, eventReport.mEnrollmentId) in equals() 105 && mTriggerTime == eventReport.mTriggerTime in equals() 106 && Objects.equals(mTriggerData, eventReport.mTriggerData) in equals() 107 && Objects.equals(mSourceEventId, eventReport.mSourceEventId) in equals() [all …]
|
D | TriggerSpecs.java | 297 eventReport -> eventReport.getTriggerSummaryBucket().first))); in prepareFlexAttribution() 301 for (EventReport eventReport : sourceEventReports) { in prepareFlexAttribution() 304 if (eventReport.getReportTime() > triggerTime) { in prepareFlexAttribution() 305 reportsToDelete.add(eventReport); in prepareFlexAttribution() 309 UnsignedLong triggerData = eventReport.getTriggerData(); in prepareFlexAttribution() 323 attributedTrigger, eventReport, bucketSize); in prepareFlexAttribution() 334 AttributedTrigger attributedTrigger, EventReport eventReport, long bucketSize) { in restoreTriggerContributionAndGetBucketDelta() argument 337 if (attributedTrigger.getTriggerTime() >= eventReport.getReportTime() in restoreTriggerContributionAndGetBucketDelta() 339 eventReport.getTriggerData())) { in restoreTriggerContributionAndGetBucketDelta() 344 if (getSummaryOperatorType(eventReport.getTriggerData()) in restoreTriggerContributionAndGetBucketDelta()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | ContentValueFixtures.java | 1195 ContentValues eventReport = new ContentValues(); in generateEventReportContentValuesV1() local 1197 eventReport.put(MeasurementTables.EventReportContract.ID, EventReportValues.ID); in generateEventReportContentValuesV1() 1198 eventReport.put( in generateEventReportContentValuesV1() 1201 eventReport.put( in generateEventReportContentValuesV1() 1204 eventReport.put( in generateEventReportContentValuesV1() 1207 eventReport.put( in generateEventReportContentValuesV1() 1209 eventReport.put( in generateEventReportContentValuesV1() 1211 eventReport.put( in generateEventReportContentValuesV1() 1214 eventReport.put( in generateEventReportContentValuesV1() 1217 eventReport.put( in generateEventReportContentValuesV1() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDao.java | 1175 public void deleteEventReportAndAttribution(EventReport eventReport) throws DatastoreException { in deleteEventReportAndAttribution() argument 1182 new String[] {eventReport.getId()}); in deleteEventReportAndAttribution() 1196 eventReport.getSourceId(), in deleteEventReportAndAttribution() 1197 eventReport.getTriggerId()}); in deleteEventReportAndAttribution() 1310 public void insertEventReport(EventReport eventReport) throws DatastoreException { in insertEventReport() argument 1312 values.put(MeasurementTables.EventReportContract.ID, eventReport.getId()); in insertEventReport() 1315 eventReport.getSourceEventId().getValue()); in insertEventReport() 1320 eventReport.getAttributionDestinations().stream() in insertEventReport() 1324 MeasurementTables.EventReportContract.TRIGGER_TIME, eventReport.getTriggerTime()); in insertEventReport() 1327 getNullableUnsignedLong(eventReport.getTriggerData())); in insertEventReport() [all …]
|
D | IMeasurementDao.java | 396 void insertEventReport(EventReport eventReport) throws DatastoreException; in insertEventReport() argument 399 void deleteEventReportAndAttribution(EventReport eventReport) throws DatastoreException; in deleteEventReportAndAttribution() argument
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandlerTest.java | 853 EventReport eventReport = reportArg.getValue(); in shouldDoSimpleAttribution() local 854 assertEquals(REGISTRATION_URI, eventReport.getRegistrationOrigin()); in shouldDoSimpleAttribution() 1522 EventReport eventReport = reportArg.getValue(); in shouldDoSimpleAttribution_dedupAlignFlagOff() local 1523 assertEquals(REGISTRATION_URI, eventReport.getRegistrationOrigin()); in shouldDoSimpleAttribution_dedupAlignFlagOff() 1600 EventReport eventReport = reportArg.getValue(); in shouldIgnoreLowPrioritySourceWhileAttribution() local 1601 assertEquals(REGISTRATION_URI, eventReport.getRegistrationOrigin()); in shouldIgnoreLowPrioritySourceWhileAttribution() 1837 EventReport eventReport = reportArg.getValue(); in shouldReplaceLowPriorityReportWhileAttribution() local 1838 assertEquals(REGISTRATION_URI, eventReport.getRegistrationOrigin()); in shouldReplaceLowPriorityReportWhileAttribution() 2105 EventReport eventReport = reportArg.getValue(); in shouldAttributedToInstallAttributedSource() local 2106 assertEquals(REGISTRATION_URI, eventReport.getRegistrationOrigin()); in shouldAttributedToInstallAttributedSource() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleter.java | 219 for (EventReport eventReport : eventReports) { in delete() 220 dao.markEventReportStatus(eventReport.getId(), EventReport.Status.MARKED_TO_DELETE); in delete()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandler.java | 1303 EventReport eventReport, in finalizeEventReportCreation() argument 1311 measurementDao.insertEventReport(eventReport); in finalizeEventReportCreation() 1318 EventReport eventReport, in finalizeEventReportCreation() argument 1332 measurementDao.insertEventReport(eventReport); in finalizeEventReportCreation() 1358 EventReport eventReport = in finalizeEventReportAndAttributionCreationForFlex() local 1372 measurementDao.insertEventReport(eventReport); in finalizeEventReportAndAttributionCreationForFlex() 1374 measurementDao, source, trigger, Attribution.Scope.EVENT, eventReport.getId()); in finalizeEventReportAndAttributionCreationForFlex()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | MeasurementDaoTest.java | 3579 eventReport -> { in getNumEventReportsPerDestination_returnsExpected() 3582 MeasurementTables.EventReportContract.ID, eventReport.getId()); in getNumEventReportsPerDestination_returnsExpected() 3585 eventReport.getAttributionDestinations().get(0).toString()); in getNumEventReportsPerDestination_returnsExpected() 3780 (eventReport -> { in testGetSourceEventReports() 3782 (dao) -> dao.insertEventReport(eventReport)); in testGetSourceEventReports() 3921 (eventReport -> { in getSourceEventReports_sourcesWithSameEventId_haveSeparateEventReportsMatch() 3923 (dao) -> dao.insertEventReport(eventReport)); in getSourceEventReports_sourcesWithSameEventId_haveSeparateEventReportsMatch() 4702 EventReport eventReport = new EventReport.Builder().setId("E1").build(); in testDeleteAllMeasurementDataWithEmptyList() local 4704 eventReportValue.put("_id", eventReport.getId()); in testDeleteAllMeasurementDataWithEmptyList() 4766 EventReport eventReport = new EventReport.Builder().setId("E1").build(); in testDeleteAllMeasurementDataWithNonEmptyList() local [all …]
|
D | DbState.java | 120 EventReport eventReport = getEventReportFrom(rJSON); in DbState() local 121 mEventReportList.add(eventReport); in DbState()
|
D | AbstractDbIntegrationTest.java | 345 for (EventReport eventReport : input.mEventReportList) { in seedTables() 346 insertToDb(eventReport, db); in seedTables()
|