/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | DebugReportProcessor.java | 112 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 …]
|
D | AdBiddingOutcome.java | 65 abstract Builder setDebugReport(DebugReport debugReport); in setDebugReport() argument
|
D | AdScoringOutcome.java | 97 abstract Builder setDebugReport(DebugReport debugReport); in setDebugReport() argument
|
D | AdBidGeneratorImpl.java | 305 DebugReport debugReport = in runAdBiddingPerCA() 316 ? debugReport in runAdBiddingPerCA()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | DebugReportingJobHandlerTest.java | 136 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 …]
|
D | DebugReportTest.java | 54 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()
|
D | DebugReportingJobHandlerWrapper.java | 54 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/ |
D | DebugReportProcessorTest.java | 67 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/ |
D | DebugReportingJobHandler.java | 147 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 …]
|
D | DebugReportApi.java | 470 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/ |
D | AbstractDbIntegrationTest.java | 166 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 …]
|
D | MeasurementDaoTest.java | 793 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 …]
|
D | DbState.java | 160 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/ |
D | ContentValueFixtures.java | 1612 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/ |
D | MeasurementDao.java | 2685 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/ |
D | FledgeE2ETest.java | 2035 debugReport -> { in testFledgeFlowSuccessWithDebugReportingSentInBatch() 2036 return debugReport.getDebugReportUri().toString(); in testFledgeFlowSuccessWithDebugReportingSentInBatch()
|