/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateReportTest.java | 60 private AggregateReport createAttributionReport() { in createAttributionReport() 61 return new AggregateReport.Builder() in createAttributionReport() 70 .setStatus(AggregateReport.Status.PENDING) in createAttributionReport() 71 .setDebugReportStatus(AggregateReport.DebugReportStatus.PENDING) in createAttributionReport() 82 private AggregateReport createAttributionReportSingleTriggerDebugKey() { in createAttributionReportSingleTriggerDebugKey() 83 return new AggregateReport.Builder() in createAttributionReportSingleTriggerDebugKey() 92 .setStatus(AggregateReport.Status.PENDING) in createAttributionReportSingleTriggerDebugKey() 93 .setDebugReportStatus(AggregateReport.DebugReportStatus.PENDING) in createAttributionReportSingleTriggerDebugKey() 103 private AggregateReport createAttributionReportSingleSourceDebugKey() { in createAttributionReportSingleSourceDebugKey() 104 return new AggregateReport.Builder() in createAttributionReportSingleSourceDebugKey() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | MeasurementDbSchemaTrail.java | 20 import static com.android.adservices.data.measurement.MeasurementTables.AggregateReport; 2029 + AggregateReport.TABLE 2031 + AggregateReport.ID 2033 + AggregateReport.PUBLISHER 2035 + AggregateReport.ATTRIBUTION_DESTINATION 2037 + AggregateReport.SOURCE_REGISTRATION_TIME 2039 + AggregateReport.SCHEDULED_REPORT_TIME 2041 + AggregateReport.ENROLLMENT_ID 2043 + AggregateReport.DEBUG_CLEARTEXT_PAYLOAD 2045 + AggregateReport.STATUS [all …]
|
D | DbHelperV1.java | 200 + MeasurementTables.AggregateReport.TABLE 202 + MeasurementTables.AggregateReport.ID 204 + MeasurementTables.AggregateReport.PUBLISHER 206 + MeasurementTables.AggregateReport.ATTRIBUTION_DESTINATION 208 + MeasurementTables.AggregateReport.SOURCE_REGISTRATION_TIME 210 + MeasurementTables.AggregateReport.SCHEDULED_REPORT_TIME 212 + MeasurementTables.AggregateReport.ENROLLMENT_ID 214 + MeasurementTables.AggregateReport.DEBUG_CLEARTEXT_PAYLOAD 216 + MeasurementTables.AggregateReport.STATUS 218 + MeasurementTables.AggregateReport.API_VERSION
|
D | AbstractDbIntegrationTest.java | 39 import com.android.adservices.service.measurement.aggregation.AggregateReport; 184 AggregateReport aggregateReport, AggregateReport aggregateReport1) { in fuzzyCompareAggregateReport() 325 db.delete(MeasurementTables.AggregateReport.TABLE, null, null); in emptyTables() 352 for (AggregateReport aggregateReport : input.mAggregateReportList) { in seedTables() 557 public static void insertToDb(AggregateReport aggregateReport, SQLiteDatabase db) in insertToDb() 560 values.put(MeasurementTables.AggregateReport.ID, aggregateReport.getId()); in insertToDb() 562 MeasurementTables.AggregateReport.PUBLISHER, in insertToDb() 565 MeasurementTables.AggregateReport.ATTRIBUTION_DESTINATION, in insertToDb() 568 MeasurementTables.AggregateReport.SOURCE_REGISTRATION_TIME, in insertToDb() 571 MeasurementTables.AggregateReport.SCHEDULED_REPORT_TIME, in insertToDb() [all …]
|
D | DbState.java | 32 import com.android.adservices.service.measurement.aggregation.AggregateReport; 64 List<AggregateReport> mAggregateReportList; 150 AggregateReport aggregateReport = getAggregateReportFrom(rJSON); in DbState() 240 MeasurementTables.AggregateReport.TABLE, in DbState() 246 MeasurementTables.AggregateReport.ID); in DbState() 342 Comparator.comparing(AggregateReport::getScheduledReportTime) in sortAll() 343 .thenComparing(AggregateReport::getSourceRegistrationTime)); in sortAll() 555 private AggregateReport getAggregateReportFrom(JSONObject rJSON) in getAggregateReportFrom() 557 AggregateReport.Builder builder = in getAggregateReportFrom() 558 new AggregateReport.Builder() in getAggregateReportFrom()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | AggregateReportingJobHandlerTest.java | 59 import com.android.adservices.service.measurement.aggregation.AggregateReport; 200 AggregateReport aggregateReport = in testSendReportForPendingReportSuccess() 201 new AggregateReport.Builder() in testSendReportForPendingReportSuccess() 203 .setStatus(AggregateReport.Status.PENDING) in testSendReportForPendingReportSuccess() 227 aggregateReport.getId(), AggregateReport.Status.DELIVERED); in testSendReportForPendingReportSuccess() 244 AggregateReport aggregateReport = in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 245 new AggregateReport.Builder() in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 247 .setStatus(AggregateReport.Status.PENDING) in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 284 aggregateReport.getId(), AggregateReport.Status.DELIVERED); in testSendReportSuccess_reinstallAttributionEnabled_persistsAppReportHistory() 303 AggregateReport aggregateReport = in testSendReportSuccess_reinstallAttributionEnabled_skipNullAggregateReport() [all …]
|
D | AggregateReportingJobHandlerWrapper.java | 33 import com.android.adservices.service.measurement.aggregation.AggregateReport; 93 ArgumentCaptor<AggregateReport> aggregateReport = in spyPerformScheduledPendingReportsInWindow() 94 ArgumentCaptor.forClass(AggregateReport.class); in spyPerformScheduledPendingReportsInWindow()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementTables.java | 45 MeasurementTables.AggregateReport.TABLE, 61 MeasurementTables.AggregateReport.TABLE, 73 AggregateReport.TABLE, 244 public interface AggregateReport { interface in MeasurementTables 902 + AggregateReport.TABLE 904 + AggregateReport.ID 906 + AggregateReport.PUBLISHER 908 + AggregateReport.ATTRIBUTION_DESTINATION 910 + AggregateReport.SOURCE_REGISTRATION_TIME 912 + AggregateReport.SCHEDULED_REPORT_TIME [all …]
|
D | SqliteObjectMapper.java | 29 import com.android.adservices.service.measurement.aggregation.AggregateReport; 334 static AggregateReport constructAggregateReport(Cursor cursor) { in constructAggregateReport() 335 AggregateReport.Builder builder = new AggregateReport.Builder(); in constructAggregateReport() 336 setTextColumn(cursor, MeasurementTables.AggregateReport.ID, in constructAggregateReport() 338 setUriColumn(cursor, MeasurementTables.AggregateReport.PUBLISHER, in constructAggregateReport() 340 setUriColumn(cursor, MeasurementTables.AggregateReport.ATTRIBUTION_DESTINATION, in constructAggregateReport() 344 MeasurementTables.AggregateReport.SOURCE_REGISTRATION_TIME, in constructAggregateReport() 346 setLongColumn(cursor, MeasurementTables.AggregateReport.SCHEDULED_REPORT_TIME, in constructAggregateReport() 348 setTextColumn(cursor, MeasurementTables.AggregateReport.ENROLLMENT_ID, in constructAggregateReport() 350 setTextColumn(cursor, MeasurementTables.AggregateReport.DEBUG_CLEARTEXT_PAYLOAD, in constructAggregateReport() [all …]
|
D | MeasurementDao.java | 46 import com.android.adservices.service.measurement.aggregation.AggregateReport; 565 MeasurementTables.AggregateReport.TABLE, in getNumAggregateReportsPerDestination() 566 MeasurementTables.AggregateReport.ATTRIBUTION_DESTINATION, in getNumAggregateReportsPerDestination() 588 MeasurementTables.AggregateReport.TABLE, in getNumAggregateReportsPerSource() 589 MeasurementTables.AggregateReport.SOURCE_ID, in getNumAggregateReportsPerSource() 617 public AggregateReport getAggregateReport(@NonNull String aggregateReportId) in getAggregateReport() 623 MeasurementTables.AggregateReport.TABLE, in getAggregateReport() 625 MeasurementTables.AggregateReport.ID + " = ? ", in getAggregateReport() 1095 String aggregateReportId, @AggregateReport.Status int status) in markAggregateReportStatus() 1098 values.put(MeasurementTables.AggregateReport.STATUS, status); in markAggregateReportStatus() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/ |
D | MeasurementDbMigratorV20.java | 36 MeasurementTables.AggregateReport.TABLE, 37 MeasurementTables.AggregateReport.AGGREGATION_COORDINATOR_ORIGIN), 78 MeasurementTables.AggregateReport.AGGREGATION_COORDINATOR_ORIGIN, in setCloudProvidersForAggregateReport() 82 MeasurementTables.AggregateReport.TABLE, in setCloudProvidersForAggregateReport() 84 MeasurementTables.AggregateReport.AGGREGATION_COORDINATOR_ORIGIN + " IS NULL ", in setCloudProvidersForAggregateReport()
|
D | MeasurementDbMigratorV2.java | 38 MeasurementTables.AggregateReport.TABLE, 39 MeasurementTables.AggregateReport.SOURCE_DEBUG_KEY), 42 MeasurementTables.AggregateReport.TABLE, 43 MeasurementTables.AggregateReport.TRIGGER_DEBUG_KEY)
|
D | MeasurementDbMigratorV10.java | 31 MeasurementTables.AggregateReport.TABLE, 32 MeasurementTables.AggregateReport.DEDUP_KEY)
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | MeasurementDbMigratorV2Test.java | 57 doesTableExistAndColumnCountMatch(db, MeasurementTables.AggregateReport.TABLE, 11)); in performMigration_success() 115 MeasurementTables.AggregateReport.TABLE, in performMigration_success_checkAllFields_V1toV2() 119 getTableColumns(db, MeasurementTables.AggregateReport.TABLE).size(), in performMigration_success_checkAllFields_V1toV2() 299 MeasurementTables.AggregateReport.TABLE, in verifyAggregateReportAllFieldsV1() 305 MeasurementTables.AggregateReport.ID, in verifyAggregateReportAllFieldsV1() 323 -1, cursor.getColumnIndex(MeasurementTables.AggregateReport.SOURCE_DEBUG_KEY)); in verifyAggregateReportAllFieldsV1() 327 MeasurementTables.AggregateReport.SOURCE_DEBUG_KEY))); in verifyAggregateReportAllFieldsV1() 330 -1, cursor.getColumnIndex(MeasurementTables.AggregateReport.TRIGGER_DEBUG_KEY)); in verifyAggregateReportAllFieldsV1() 334 MeasurementTables.AggregateReport.TRIGGER_DEBUG_KEY))); in verifyAggregateReportAllFieldsV1()
|
D | MeasurementDbMigratorV27Test.java | 64 MeasurementTables.AggregateReport.TABLE, in performMigration_v26ToV27WithData_maintainsDataIntegrity() 65 new String[] {MeasurementTables.AggregateReport.IS_FAKE_REPORT}, in performMigration_v26ToV27WithData_maintainsDataIntegrity() 76 MeasurementTables.AggregateReport.IS_FAKE_REPORT)); in performMigration_v26ToV27WithData_maintainsDataIntegrity() 100 aggregateReport1.put(MeasurementTables.AggregateReport.ID, UUID.randomUUID().toString()); in createFakeDataV26() 103 tableRowsMap.put(MeasurementTables.AggregateReport.TABLE, aggregateReportRows); in createFakeDataV26()
|
D | MeasurementDbMigratorV14Test.java | 99 MeasurementTables.AggregateReport.TABLE, in performMigration_v13ToV14WithData_maintainsDataIntegrity() 431 Map.of(MeasurementTables.AggregateReport.TABLE, reportRows); in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 437 MeasurementTables.AggregateReport.TABLE, in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 439 MeasurementTables.AggregateReport.ID, in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 440 MeasurementTables.AggregateReport.ENROLLMENT_ID, in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 454 cursor.getString(cursor.getColumnIndex(MeasurementTables.AggregateReport.ID))); in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 459 MeasurementTables.AggregateReport.ENROLLMENT_ID))); in performMigration_whenEnrollmentIdNotFound_removesAggregateReport() 495 Map.of(MeasurementTables.AggregateReport.TABLE, reportRows); in performMigration_whenReportingUrlNotFoundOrEmpty_removesAggregateReport() 501 MeasurementTables.AggregateReport.TABLE, in performMigration_whenReportingUrlNotFoundOrEmpty_removesAggregateReport() 503 MeasurementTables.AggregateReport.ID, in performMigration_whenReportingUrlNotFoundOrEmpty_removesAggregateReport() [all …]
|
D | MeasurementDbMigratorV33Test.java | 76 MeasurementTables.AggregateReport.TABLE, in performMigration_v32ToV33WithData_maintainsDataIntegrity() 77 MeasurementTables.AggregateReport.TRIGGER_CONTEXT_ID)); in performMigration_v32ToV33WithData_maintainsDataIntegrity() 108 tableRowsMap.put(MeasurementTables.AggregateReport.TABLE, aggregateReportRows); in createFakeDataV32() 119 aggregateReport1.put(MeasurementTables.AggregateReport.TRIGGER_ID, trigger1Id); in getAggregateReportRows() 120 aggregateReport1.put(MeasurementTables.AggregateReport.SOURCE_ID, source1Id); in getAggregateReportRows()
|
D | ContentValueFixtures.java | 29 import com.android.adservices.service.measurement.aggregation.AggregateReport; 305 public static final long STATUS = AggregateReport.Status.MARKED_TO_DELETE; 1365 aggregateReport.put(MeasurementTables.AggregateReport.ID, AggregateReportValues.ID); in generateAggregateReportContentValuesV1() 1367 MeasurementTables.AggregateReport.PUBLISHER, AggregateReportValues.PUBLISHER); in generateAggregateReportContentValuesV1() 1369 MeasurementTables.AggregateReport.ATTRIBUTION_DESTINATION, in generateAggregateReportContentValuesV1() 1372 MeasurementTables.AggregateReport.SOURCE_REGISTRATION_TIME, in generateAggregateReportContentValuesV1() 1375 MeasurementTables.AggregateReport.SCHEDULED_REPORT_TIME, in generateAggregateReportContentValuesV1() 1378 MeasurementTables.AggregateReport.ENROLLMENT_ID, in generateAggregateReportContentValuesV1() 1381 MeasurementTables.AggregateReport.DEBUG_CLEARTEXT_PAYLOAD, in generateAggregateReportContentValuesV1() 1383 aggregateReport.put(MeasurementTables.AggregateReport.STATUS, AggregateReportValues.STATUS); in generateAggregateReportContentValuesV1() [all …]
|
D | MeasurementDbMigratorV20Test.java | 80 MeasurementTables.AggregateReport.TABLE, in performMigration_v19ToV20WithData_maintainsDataIntegrity() 81 MeasurementTables.AggregateReport.AGGREGATION_COORDINATOR_ORIGIN)); in performMigration_v19ToV20WithData_maintainsDataIntegrity() 150 aggregateReport1.put(MeasurementTables.AggregateReport.ID, UUID.randomUUID().toString()); in createFakeDataV19() 153 tableRowsMap.put(MeasurementTables.AggregateReport.TABLE, aggregateReportRows); in createFakeDataV19()
|
D | MeasurementDbMigratorV3Test.java | 145 doesTableExistAndColumnCountMatch(db, MeasurementTables.AggregateReport.TABLE, 14)); in performMigration_success_v2ToV3() 191 doesTableExistAndColumnCountMatch(db, MeasurementTables.AggregateReport.TABLE, 14)); in performMigration_twiceToSameVersion() 337 MeasurementTables.AggregateReport.TABLE, in performMigration_success_checkAllFields_V2toV3() 341 getTableColumns(db, MeasurementTables.AggregateReport.TABLE).size(), in performMigration_success_checkAllFields_V2toV3() 962 MeasurementTables.AggregateReport.TABLE, in verifyAggregateReportAllFieldsV2() 968 MeasurementTables.AggregateReport.ID, in verifyAggregateReportAllFieldsV2() 986 assertNotEquals(-1, cursor.getColumnIndex(MeasurementTables.AggregateReport.SOURCE_ID)); in verifyAggregateReportAllFieldsV2() 989 cursor.getColumnIndex(MeasurementTables.AggregateReport.SOURCE_ID))); in verifyAggregateReportAllFieldsV2() 992 -1, cursor.getColumnIndex(MeasurementTables.AggregateReport.TRIGGER_ID)); in verifyAggregateReportAllFieldsV2() 995 cursor.getColumnIndex(MeasurementTables.AggregateReport.TRIGGER_ID))); in verifyAggregateReportAllFieldsV2() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateReport.java | 47 public class AggregateReport { class 94 private AggregateReport() { in AggregateReport() method in AggregateReport 115 if (!(obj instanceof AggregateReport)) { in equals() 118 AggregateReport aggregateReport = (AggregateReport) obj; in equals() 340 private final AggregateReport mAttributionReport; 343 mAttributionReport = new AggregateReport(); in Builder() 517 AggregateReport.generateDebugPayload(List.of(paddingContribution)); in getNullAggregateReportBuilder() 552 public AggregateReport build() { in build()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | AggregateReportingJobHandler.java | 41 import com.android.adservices.service.measurement.aggregation.AggregateReport; 203 private String getAppPackageName(AggregateReport report) { in getAppPackageName() 232 Optional<AggregateReport> aggregateReportOpt = in performReport() 240 AggregateReport aggregateReport = aggregateReportOpt.get(); in performReport() 246 != AggregateReport.DebugReportStatus.PENDING) { in performReport() 251 if (!mIsDebugInstance && aggregateReport.getStatus() != AggregateReport.Status.PENDING) { in performReport() 270 AggregateReport.Status.DELIVERED); in performReport() 313 AggregateReport.Status.MARKED_TO_DELETE)); in performReport() 355 private void updateAppReportHistory(AggregateReport aggregateReport, IMeasurementDao dao) in updateAppReportHistory() 373 JSONObject createReportJsonPayload(AggregateReport aggregateReport, Uri reportingOrigin, in createReportJsonPayload()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleter.java | 36 import com.android.adservices.service.measurement.aggregation.AggregateReport; 166 List<AggregateReport> aggregateReports = in delete() 223 for (AggregateReport aggregateReport : aggregateReports) { in delete() 225 aggregateReport.getId(), AggregateReport.Status.MARKED_TO_DELETE); in delete() 236 @NonNull IMeasurementDao dao, @NonNull List<AggregateReport> aggregateReports) in resetAggregateContributions() 238 for (AggregateReport report : aggregateReports) { in resetAggregateContributions() 304 @NonNull IMeasurementDao dao, @NonNull List<AggregateReport> aggregateReports) in resetAggregateReportDedupKeys() 306 for (AggregateReport report : aggregateReports) { in resetAggregateReportDedupKeys()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateReportFixture.java | 42 public static AggregateReport.Builder getValidAggregateReportBuilder() { in getValidAggregateReportBuilder() 43 return new AggregateReport.Builder() in getValidAggregateReportBuilder() 63 public static AggregateReport getValidAggregateReport() { in getValidAggregateReport() 95 debugPayload = AggregateReport.generateDebugPayload(contributions); in getDebugPayload()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleterTest.java | 52 import com.android.adservices.service.measurement.aggregation.AggregateReport; 106 private static final AggregateReport AGGREGATE_REPORT_1; 107 private static final AggregateReport AGGREGATE_REPORT_2; 110 AggregateReport localAggregateReport1; 111 AggregateReport localAggregateReport2; 117 AggregateReport.generateDebugPayload(CONTRIBUTIONS_1)) 125 AggregateReport.generateDebugPayload(CONTRIBUTIONS_2)) 150 @Mock private AggregateReport mAggregateReport1; 151 @Mock private AggregateReport mAggregateReport2; 152 @Mock private AggregateReport mAggregateReport3; [all …]
|