Home
last modified time | relevance | path

Searched refs:EventReport (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventReportingJobHandlerTest.java52 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 …]
DEventReportingJobHandlerWrapper.java28 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/
DEventReportTest.java136 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 …]
DE2EMockTest.java426 (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/
DEventReportTest.java42 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()
DMapClientStateMachineTest.java679 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/
DEventReportingJobHandler.java36 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/
DEventReportFixture.java30 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/
DAttributionJobHandlerTest.java58 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/
DEventReport.java40 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/
DIMeasurementDao.java27 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()
DMeasurementDao.java39 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 …]
DSqliteObjectMapper.java25 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/
DEventReport.java42 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()
DTriggerSpecs.java289 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/
DMeasurementDataDeleter.java31 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/
DAggregateReportFixture.java23 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/
DMeasurementDaoTest.java75 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 …]
DDbState.java27 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/
DAttributionJobHandler.java42 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/
DMceStateMachine.java716 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()
DMnsObexServer.java113 EventReport ev = EventReport.fromStream(op.openDataInputStream()); in onPut()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/deletion/
DMeasurementDataDeleterTest.java45 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/
DAsyncRegistrationQueueRunner.java40 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/
DAsyncRegistrationQueueRunnerTest.java72 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 …]

12