Home
last modified time | relevance | path

Searched refs:debugReport (Results 1 – 16 of 16) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DDebugReportProcessor.java112 for (DebugReport debugReport : debugReports) { in getUrisFromAdAuction()
113 Uri debugUri = getDebugUri(debugReport, postAuctionSignals, caToRejectReasonMap); in getUrisFromAdAuction()
124 for (DebugReport debugReport : debugReports) { in collectRejectReasonFromDebugReports()
125 if (Objects.nonNull(debugReport.getSellerRejectReason()) in collectRejectReasonFromDebugReports()
126 && VALID_REJECT_REASON_SET.contains(debugReport.getSellerRejectReason())) { in collectRejectReasonFromDebugReports()
128 debugReport.getCustomAudienceSignals(), in collectRejectReasonFromDebugReports()
129 debugReport.getSellerRejectReason()); in collectRejectReasonFromDebugReports()
136 @NonNull DebugReport debugReport, in getDebugUri()
142 debugReport, in getDebugUri()
145 if (isWinnerCA && Objects.nonNull(debugReport.getWinDebugReportUri())) { in getDebugUri()
[all …]
DAdBiddingOutcome.java65 abstract Builder setDebugReport(DebugReport debugReport); in setDebugReport() argument
DAdScoringOutcome.java97 abstract Builder setDebugReport(DebugReport debugReport); in setDebugReport() argument
DAdBidGeneratorImpl.java305 DebugReport debugReport = in runAdBiddingPerCA()
316 ? debugReport in runAdBiddingPerCA()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DDebugReportingJobHandlerTest.java136 DebugReport debugReport = createDebugReport1(); in testSendDebugReportForSuccess() local
138 debugReportPayload.put(debugReport.toPayloadJson()); in testSendDebugReportForSuccess()
140 when(mMeasurementDao.getDebugReport(debugReport.getId())).thenReturn(debugReport); in testSendDebugReportForSuccess()
148 doNothing().when(mMeasurementDao).deleteDebugReport(debugReport.getId()); in testSendDebugReportForSuccess()
153 debugReport.getId(), new ReportingStatus())); in testSendDebugReportForSuccess()
163 DebugReport debugReport = createDebugReport1(); in testSendDebugReportForFailure() local
165 debugReportPayload.put(debugReport.toPayloadJson()); in testSendDebugReportForFailure()
166 when(mMeasurementDao.getDebugReport(debugReport.getId())).thenReturn(debugReport); in testSendDebugReportForFailure()
177 debugReport.getId(), new ReportingStatus())); in testSendDebugReportForFailure()
323 DebugReport debugReport = createDebugReport1(); in performReport_throwsIOException_logsReportingStatus() local
[all …]
DDebugReportTest.java54 DebugReport debugReport = createExample1(); in creation_success() local
55 assertEquals("1", debugReport.getId()); in creation_success()
56 assertEquals(mType, debugReport.getType()); in creation_success()
57 assertEquals(mBodyJson, debugReport.getBody()); in creation_success()
58 assertEquals("2", debugReport.getEnrollmentId()); in creation_success()
59 assertEquals(REGISTRATION_ORIGIN_1, debugReport.getRegistrationOrigin()); in creation_success()
86 DebugReport debugReport = createExample1(); in testDebugReportPayloadJsonSerialization() local
87 JSONObject debugReportJson = debugReport.toPayloadJson(); in testDebugReportPayloadJsonSerialization()
DDebugReportingJobHandlerWrapper.java54 ArgumentCaptor<DebugReport> debugReport = ArgumentCaptor.forClass(DebugReport.class); in spyPerformScheduledPendingReports() local
55 verify(debugReportingJobHandler, atLeast(0)).createReportJsonPayload(debugReport.capture()); in spyPerformScheduledPendingReports()
64 debugReport.getAllValues(), in spyPerformScheduledPendingReports()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DDebugReportProcessorTest.java67 DebugReport debugReport = in singleBuyerSessionSuccessfulCase_returnsWinUri() local
74 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionSuccessfulCase_returnsWinUri()
84 DebugReport debugReport = in multiBuyerSessionFailedCase_returnsLosingUri() local
101 List.of(debugReport, debugReport2), signals); in multiBuyerSessionFailedCase_returnsLosingUri()
110 DebugReport debugReport = in singleBuyerSessionWithWinningBid_returnsWinningUri() local
116 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithWinningBid_returnsWinningUri()
127 DebugReport debugReport = in singleBuyerSessionWithMismatchedAdTech_returnsNoUri() local
136 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithMismatchedAdTech_returnsNoUri()
144 DebugReport debugReport = in singleBuyerSessionWithEmptyUri_returnsNoUri() local
151 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithEmptyUri_returnsNoUri()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DDebugReportingJobHandler.java147 DebugReport debugReport = debugReportOpt.get(); in performReport() local
149 System.currentTimeMillis() - debugReport.getInsertionTime()); in performReport()
150 reportingStatus.setReportType(debugReport.getType()); in performReport()
151 reportingStatus.setSourceRegistrant(getAppPackageName(debugReport)); in performReport()
154 Uri reportingOrigin = debugReport.getRegistrationOrigin(); in performReport()
155 JSONArray debugReportJsonPayload = createReportJsonPayload(debugReport); in performReport()
162 dao.deleteDebugReport(debugReport.getId()); in performReport()
229 JSONArray createReportJsonPayload(DebugReport debugReport) throws JSONException { in createReportJsonPayload() argument
231 debugReportJsonPayload.put(debugReport.toPayloadJson()); in createReportJsonPayload()
243 private String getAppPackageName(DebugReport debugReport) { in getAppPackageName() argument
[all …]
DDebugReportApi.java470 DebugReport debugReport = in scheduleReport() local
481 dao.insertDebugReport(debugReport); in scheduleReport()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DAbstractDbIntegrationTest.java166 DebugReport debugReport, DebugReport debugReport1) { in areDebugReportContentsSimilar() argument
168 return Objects.equals(debugReport.getType(), debugReport1.getType()) in areDebugReportContentsSimilar()
170 debugReport.getBody().toString(), debugReport1.getBody().toString()) in areDebugReportContentsSimilar()
171 && Objects.equals(debugReport.getEnrollmentId(), debugReport1.getEnrollmentId()) in areDebugReportContentsSimilar()
173 debugReport.getRegistrationOrigin(), debugReport1.getRegistrationOrigin()) in areDebugReportContentsSimilar()
174 && Objects.equals(debugReport.getReferenceId(), debugReport1.getReferenceId()); in areDebugReportContentsSimilar()
361 for (DebugReport debugReport : input.mDebugReportList) { in seedTables()
362 insertToDb(debugReport, db); in seedTables()
705 public static void insertToDb(DebugReport debugReport, SQLiteDatabase db) in insertToDb() argument
708 values.put(MeasurementTables.DebugReportContract.ID, debugReport.getId()); in insertToDb()
[all …]
DMeasurementDaoTest.java793 DebugReport debugReport = createDebugReport(); in testInsertDebugReport() local
794 mDatastoreManager.runInTransaction((dao) -> dao.insertDebugReport(debugReport)); in testInsertDebugReport()
804 assertEquals(debugReport.getType(), report.getType()); in testInsertDebugReport()
805 assertEquals(debugReport.getBody().toString(), report.getBody().toString()); in testInsertDebugReport()
806 assertEquals(debugReport.getEnrollmentId(), report.getEnrollmentId()); in testInsertDebugReport()
807 assertEquals(debugReport.getRegistrationOrigin(), report.getRegistrationOrigin()); in testInsertDebugReport()
808 assertEquals(debugReport.getReferenceId(), report.getReferenceId()); in testInsertDebugReport()
809 assertEquals(debugReport.getInsertionTime(), report.getInsertionTime()); in testInsertDebugReport()
810 assertEquals(debugReport.getRegistrant(), report.getRegistrant()); in testInsertDebugReport()
5163 DebugReport debugReport = createDebugReport(); in testDeleteDebugReport() local
[all …]
DDbState.java160 DebugReport debugReport = getDebugReportFrom(rJSON); in DbState() local
161 mDebugReportList.add(debugReport); in DbState()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DContentValueFixtures.java1612 ContentValues debugReport = new ContentValues(); in generateDebugReportContentValuesV3() local
1614 debugReport.put(MeasurementTables.DebugReportContract.ID, DebugReportValues.ID); in generateDebugReportContentValuesV3()
1615 debugReport.put(MeasurementTables.DebugReportContract.TYPE, DebugReportValues.TYPE); in generateDebugReportContentValuesV3()
1616 debugReport.put(MeasurementTables.DebugReportContract.BODY, DebugReportValues.BODY); in generateDebugReportContentValuesV3()
1617 debugReport.put( in generateDebugReportContentValuesV3()
1621 return debugReport; in generateDebugReportContentValuesV3()
1661 ContentValues debugReport = generateDebugReportContentValuesV14(); in generateDebugReportContentValuesV15() local
1662 debugReport.put( in generateDebugReportContentValuesV15()
1666 return debugReport; in generateDebugReportContentValuesV15()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDao.java2685 public void insertDebugReport(DebugReport debugReport) throws DatastoreException {
2687 values.put(MeasurementTables.DebugReportContract.ID, debugReport.getId());
2688 values.put(MeasurementTables.DebugReportContract.TYPE, debugReport.getType());
2689 values.put(MeasurementTables.DebugReportContract.BODY, debugReport.getBody().toString());
2691 MeasurementTables.DebugReportContract.ENROLLMENT_ID, debugReport.getEnrollmentId());
2694 debugReport.getRegistrationOrigin().toString());
2696 MeasurementTables.DebugReportContract.REFERENCE_ID, debugReport.getReferenceId());
2699 debugReport.getInsertionTime());
2702 getNullableUriString(debugReport.getRegistrant()));
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java2035 debugReport -> { in testFledgeFlowSuccessWithDebugReportingSentInBatch()
2036 return debugReport.getDebugReportUri().toString(); in testFledgeFlowSuccessWithDebugReportingSentInBatch()