/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | AggregateReportingJobHandlerTest.java | 200 AggregateReport aggregateReport = in testSendReportForPendingReportSuccess() local 210 JSONObject aggregateReportBody = createASampleAggregateReportBody(aggregateReport); in testSendReportForPendingReportSuccess() 215 when(mMeasurementDao.getAggregateReport(aggregateReport.getId())) in testSendReportForPendingReportSuccess() 216 .thenReturn(aggregateReport); in testSendReportForPendingReportSuccess() 227 aggregateReport.getId(), AggregateReport.Status.DELIVERED); in testSendReportForPendingReportSuccess() 231 aggregateReport.getId(), in testSendReportForPendingReportSuccess() 244 AggregateReport aggregateReport = in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() local 255 JSONObject aggregateReportBody = createASampleAggregateReportBody(aggregateReport); in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 269 when(mMeasurementDao.getAggregateReport(aggregateReport.getId())) in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 270 .thenReturn(aggregateReport); in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() [all …]
|
D | AggregateReportBodyTest.java | 154 AggregateReportBody aggregateReport = createAggregateReportBodyExample1(); in testSharedInfoJsonSerialization() local 155 JSONObject sharedInfoJson = aggregateReport.sharedInfoToJson(mMockFlags); in testSharedInfoJsonSerialization() 157 aggregateReport.toJson(AggregateCryptoFixture.getKey(), mMockFlags); in testSharedInfoJsonSerialization() 173 AggregateReportBody aggregateReport = createAggregateReportBodyExample1(); in testSharedInfoJsonSerialization_originFlagDisabled() local 174 JSONObject sharedInfoJson = aggregateReport.sharedInfoToJson(mMockFlags); in testSharedInfoJsonSerialization_originFlagDisabled() 176 aggregateReport.toJson(AggregateCryptoFixture.getKey(), mMockFlags); in testSharedInfoJsonSerialization_originFlagDisabled() 191 AggregateReportBody aggregateReport = createAggregateReportBodyExampleWithNullDebugKeys(); in testJsonSerializationWithNullDebugKeys() local 192 JSONObject sharedInfoJson = aggregateReport.sharedInfoToJson(mMockFlags); in testJsonSerializationWithNullDebugKeys() 194 aggregateReport.toJson(AggregateCryptoFixture.getKey(), mMockFlags); in testJsonSerializationWithNullDebugKeys() 209 AggregateReportBody aggregateReport = in testJsonSerializationWithSingleSourceDebugKeys() local [all …]
|
D | AggregateReportingJobHandlerWrapper.java | 93 ArgumentCaptor<AggregateReport> aggregateReport = in spyPerformScheduledPendingReportsInWindow() local 96 .createReportJsonPayload(aggregateReport.capture(), any(), any()); in spyPerformScheduledPendingReportsInWindow() 100 aggregateReport.getAllValues(), in spyPerformScheduledPendingReportsInWindow()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | AggregateReportingJobHandler.java | 240 AggregateReport aggregateReport = aggregateReportOpt.get(); in performReport() local 242 System.currentTimeMillis() - aggregateReport.getScheduledReportTime()); in performReport() 243 reportingStatus.setSourceRegistrant(getAppPackageName(aggregateReport)); in performReport() 245 && aggregateReport.getDebugReportStatus() in performReport() 251 if (!mIsDebugInstance && aggregateReport.getStatus() != AggregateReport.Status.PENDING) { in performReport() 256 Uri reportingOrigin = aggregateReport.getRegistrationOrigin(); in performReport() 258 createReportJsonPayload(aggregateReport, reportingOrigin, key); in performReport() 273 updateAppReportHistory(aggregateReport, dao); in performReport() 355 private void updateAppReportHistory(AggregateReport aggregateReport, IMeasurementDao dao) in updateAppReportHistory() argument 358 dao.getSourceDestinations(aggregateReport.getSourceId()); in updateAppReportHistory() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateReport.java | 118 AggregateReport aggregateReport = (AggregateReport) obj; in equals() local 119 return Objects.equals(mPublisher, aggregateReport.mPublisher) in equals() 120 && Objects.equals(mAttributionDestination, aggregateReport.mAttributionDestination) in equals() 121 && Objects.equals(mSourceRegistrationTime, aggregateReport.mSourceRegistrationTime) in equals() 122 && mScheduledReportTime == aggregateReport.mScheduledReportTime in equals() 123 && Objects.equals(mEnrollmentId, aggregateReport.mEnrollmentId) in equals() 124 && Objects.equals(mDebugCleartextPayload, aggregateReport.mDebugCleartextPayload) in equals() 126 mAggregateAttributionData, aggregateReport.mAggregateAttributionData) in equals() 127 && mStatus == aggregateReport.mStatus in equals() 128 && mDebugReportStatus == aggregateReport.mDebugReportStatus in equals() [all …]
|
D | AggregatePayload.java | 43 AggregatePayload aggregateReport = (AggregatePayload) obj; in equals() local 44 return mPayloads.equals(aggregateReport.mPayloads) in equals() 45 && Objects.equals(mSharedInfo, aggregateReport.mSharedInfo); in equals()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | AbstractDbIntegrationTest.java | 184 AggregateReport aggregateReport, AggregateReport aggregateReport1) { in fuzzyCompareAggregateReport() argument 185 return Objects.equals(aggregateReport.getPublisher(), aggregateReport1.getPublisher()) in fuzzyCompareAggregateReport() 187 aggregateReport.getAttributionDestination(), in fuzzyCompareAggregateReport() 190 aggregateReport.getSourceRegistrationTime(), in fuzzyCompareAggregateReport() 193 aggregateReport.getScheduledReportTime() in fuzzyCompareAggregateReport() 197 aggregateReport.getEnrollmentId(), aggregateReport1.getEnrollmentId()) in fuzzyCompareAggregateReport() 199 aggregateReport.getDebugCleartextPayload(), in fuzzyCompareAggregateReport() 202 aggregateReport.getAggregateAttributionData(), in fuzzyCompareAggregateReport() 204 && aggregateReport.getStatus() == aggregateReport1.getStatus() in fuzzyCompareAggregateReport() 205 && Objects.equals(aggregateReport.getApiVersion(), aggregateReport1.getApiVersion()) in fuzzyCompareAggregateReport() [all …]
|
D | MeasurementDaoTest.java | 3426 aggregateReport -> { in getNumAggregateReportsPerSource_returnsExpected() 3428 values.put(MeasurementTables.AggregateReport.ID, aggregateReport.getId()); in getNumAggregateReportsPerSource_returnsExpected() 3431 aggregateReport.getSourceId()); in getNumAggregateReportsPerSource_returnsExpected() 3434 aggregateReport.getAttributionDestination().toString()); in getNumAggregateReportsPerSource_returnsExpected() 3489 aggregateReport -> { in getNumAggregateReportsPerDestination_returnsExpected() 3492 MeasurementTables.AggregateReport.ID, aggregateReport.getId()); in getNumAggregateReportsPerDestination_returnsExpected() 3495 aggregateReport.getAttributionDestination().toString()); in getNumAggregateReportsPerDestination_returnsExpected() 3498 aggregateReport.isFakeReport()); in getNumAggregateReportsPerDestination_returnsExpected() 4654 AggregateReport aggregateReport = SqliteObjectMapper.constructAggregateReport(cursor); in testInsertAggregateReport() local 4655 assertNotNull(aggregateReport); in testInsertAggregateReport() [all …]
|
D | DbState.java | 150 AggregateReport aggregateReport = getAggregateReportFrom(rJSON); in DbState() local 151 mAggregateReportList.add(aggregateReport); in DbState()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregatePayloadTest.java | 55 AggregatePayload aggregateReport = createAggregateReport(); in testCreation() local 56 assertEquals("share_info", aggregateReport.getSharedInfo()); in testCreation() 58 aggregateReport.getPayloads(); in testCreation() 68 AggregatePayload aggregateReport = new AggregatePayload.Builder().build(); in testDefaults() local 69 assertEquals(0, aggregateReport.getPayloads().size()); in testDefaults() 70 assertNull(aggregateReport.getSharedInfo()); in testDefaults()
|
D | AggregateReportTest.java | 272 AggregateReport aggregateReport = createAttributionReport(); in extractAggregateHistogramContributions_withDebugPayload_canReverseConvert() local 286 aggregateReport.extractAggregateHistogramContributions(); in extractAggregateHistogramContributions_withDebugPayload_canReverseConvert() 297 AggregateReport aggregateReport = in extractAggregateHistogramContributions_withInvalidDebugPayload_returnsEmptyList() local 321 aggregateReport.extractAggregateHistogramContributions(); in extractAggregateHistogramContributions_withInvalidDebugPayload_returnsEmptyList()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | ContentValueFixtures.java | 1363 ContentValues aggregateReport = new ContentValues(); in generateAggregateReportContentValuesV1() local 1365 aggregateReport.put(MeasurementTables.AggregateReport.ID, AggregateReportValues.ID); in generateAggregateReportContentValuesV1() 1366 aggregateReport.put( in generateAggregateReportContentValuesV1() 1368 aggregateReport.put( in generateAggregateReportContentValuesV1() 1371 aggregateReport.put( in generateAggregateReportContentValuesV1() 1374 aggregateReport.put( in generateAggregateReportContentValuesV1() 1377 aggregateReport.put( in generateAggregateReportContentValuesV1() 1380 aggregateReport.put( in generateAggregateReportContentValuesV1() 1383 aggregateReport.put(MeasurementTables.AggregateReport.STATUS, AggregateReportValues.STATUS); in generateAggregateReportContentValuesV1() 1384 aggregateReport.put( in generateAggregateReportContentValuesV1() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDao.java | 2623 public void insertAggregateReport(AggregateReport aggregateReport) throws DatastoreException { 2625 values.put(MeasurementTables.AggregateReport.ID, aggregateReport.getId()); 2628 aggregateReport.getPublisher().toString()); 2631 aggregateReport.getAttributionDestination().toString()); 2634 aggregateReport.getSourceRegistrationTime()); 2637 aggregateReport.getScheduledReportTime()); 2639 MeasurementTables.AggregateReport.ENROLLMENT_ID, aggregateReport.getEnrollmentId()); 2642 aggregateReport.getDebugCleartextPayload()); 2643 values.put(MeasurementTables.AggregateReport.STATUS, aggregateReport.getStatus()); 2646 aggregateReport.getDebugReportStatus()); [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandler.java | 566 AggregateReport aggregateReport = aggregateReportBuilder.build(); in maybeGenerateAggregateReport() local 572 trigger, aggregateReport, measurementDao, attributionStatus); in maybeGenerateAggregateReport() 576 source, aggregateDeduplicationKeyOptional, aggregateReport, measurementDao); in maybeGenerateAggregateReport() 578 if (aggregateReport.getDebugReportStatus() in maybeGenerateAggregateReport() 587 aggregateReport.getId()); in maybeGenerateAggregateReport() 660 @Nullable AggregateReport aggregateReport, in generateNullAggregateReportsIncludingSourceRegistrationTime() argument 666 aggregateReport == null ? null : aggregateReport.getSourceRegistrationTime(); in generateNullAggregateReportsIncludingSourceRegistrationTime() 1380 AggregateReport aggregateReport, in finalizeAggregateReportCreation() argument 1394 measurementDao.insertAggregateReport(aggregateReport); in finalizeAggregateReportCreation()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleter.java | 223 for (AggregateReport aggregateReport : aggregateReports) { in delete() 225 aggregateReport.getId(), AggregateReport.Status.MARKED_TO_DELETE); in delete()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/ |
D | AttributionJobHandlerTest.java | 4174 AggregateReport aggregateReport = reportArg.getValue(); 4175 assertEquals(REGISTRATION_URI, aggregateReport.getRegistrationOrigin()); 4989 AggregateReport aggregateReport = reportArg.getValue(); 4990 assertEquals(REGISTRATION_URI, aggregateReport.getRegistrationOrigin());
|