Searched refs:summaryBucket (Results 1 – 9 of 9) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | ReportUtilTest.java | 74 Pair<Long, Long> summaryBucket = new Pair<>(1L, 5L); in serializeSummaryBucket_baseCase_returnsExpectedFormat() local 75 JSONArray result = ReportUtil.serializeSummaryBucket(summaryBucket); in serializeSummaryBucket_baseCase_returnsExpectedFormat() 78 assertEquals(summaryBucket.first, Long.valueOf((long) first)); in serializeSummaryBucket_baseCase_returnsExpectedFormat() 81 assertEquals(summaryBucket.second, Long.valueOf((long) second)); in serializeSummaryBucket_baseCase_returnsExpectedFormat() 86 Pair<Long, Long> summaryBucket = new Pair<>(100L, Long.MAX_VALUE); in serializeSummaryBucket_largestBucket_returnsExpectedFormat() local 87 JSONArray result = ReportUtil.serializeSummaryBucket(summaryBucket); in serializeSummaryBucket_largestBucket_returnsExpectedFormat() 90 assertEquals(summaryBucket.first, Long.valueOf((long) first)); in serializeSummaryBucket_largestBucket_returnsExpectedFormat() 93 assertEquals(summaryBucket.second, Long.valueOf((long) second)); in serializeSummaryBucket_largestBucket_returnsExpectedFormat()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | TriggerSpecTest.java | 42 long[] summaryBucket) in getJson() argument 59 if (summaryBucket != null) { in getJson() 60 json.put("summary_buckets", new JSONArray(summaryBucket)); in getJson() 131 long[] summaryBucket = {1, 2, 3, 4}; in triggerSpecBuilder_invalidSummaryOperator_throws() local 138 summaryBucket); in triggerSpecBuilder_invalidSummaryOperator_throws() 153 long[] summaryBucket = {1, 2, 3, 4}; in triggerSpecBuilder_validJson_success() local 160 summaryBucket); in triggerSpecBuilder_validJson_success()
|
D | TriggerSpecsTest.java | 294 List<Long> summaryBucket = testTriggerSpecs.getSummaryBucketsForTriggerData( in getSummaryBucketFromIndex_baseline_equal() local 297 new Pair<>(2L, 3L), TriggerSpecs.getSummaryBucketFromIndex(0, summaryBucket)); in getSummaryBucketFromIndex_baseline_equal() 299 new Pair<>(4L, 5L), TriggerSpecs.getSummaryBucketFromIndex(1, summaryBucket)); in getSummaryBucketFromIndex_baseline_equal() 302 TriggerSpecs.getSummaryBucketFromIndex(4, summaryBucket)); in getSummaryBucketFromIndex_baseline_equal()
|
D | EventReportTest.java | 866 String summaryBucket = null; in createExample() local 887 .setTriggerSummaryBucket(summaryBucket) in createExample()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | ReportUtil.java | 77 public static JSONArray serializeSummaryBucket(@NonNull Pair<Long, Long> summaryBucket) { in serializeSummaryBucket() argument 79 result.put(summaryBucket.first); in serializeSummaryBucket() 80 result.put(summaryBucket.second); in serializeSummaryBucket()
|
D | EventReportPayload.java | 190 public @NonNull Builder setTriggerSummaryBucket(@Nullable Pair<Long, Long> summaryBucket) { in setTriggerSummaryBucket() argument 191 mBuilding.mTriggerSummaryBucket = summaryBucket; in setTriggerSummaryBucket()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | EventReport.java | 421 public Builder setTriggerSummaryBucket(@Nullable String summaryBucket) { in setTriggerSummaryBucket() argument 422 if (summaryBucket == null || summaryBucket.isEmpty()) { in setTriggerSummaryBucket() 426 String[] numbers = summaryBucket.split(","); in setTriggerSummaryBucket() 436 public Builder setTriggerSummaryBucket(@Nullable Pair<Long, Long> summaryBucket) { in setTriggerSummaryBucket() argument 437 mBuilding.mTriggerSummaryBucket = summaryBucket; in setTriggerSummaryBucket()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | IMeasurementDao.java | 369 @NonNull String eventReportId, @NonNull String summaryBucket) throws DatastoreException; in updateEventReportSummaryBucket() argument
|
D | MeasurementDao.java | 1076 @NonNull String eventReportId, @NonNull String summaryBucket) in updateEventReportSummaryBucket() argument 1079 values.put(MeasurementTables.EventReportContract.TRIGGER_SUMMARY_BUCKET, summaryBucket); in updateEventReportSummaryBucket()
|