Home
last modified time | relevance | path

Searched refs:attributedTrigger (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DAttributedTriggerTest.java410 AttributedTrigger attributedTrigger = in getters() local
421 attributedTrigger.addContribution(CONTRIBUTION); in getters()
422 assertEquals(CONTRIBUTION, attributedTrigger.getContribution()); in getters()
423 assertEquals(TRIGGER_ID1, attributedTrigger.getTriggerId()); in getters()
424 assertEquals(PRIORITY1, attributedTrigger.getPriority()); in getters()
425 assertEquals(TRIGGER_DATA1, attributedTrigger.getTriggerData()); in getters()
426 assertEquals(VALUE1, attributedTrigger.getValue()); in getters()
427 assertEquals(TRIGGER_TIME1, attributedTrigger.getTriggerTime()); in getters()
428 assertEquals(DEDUP_KEY1, attributedTrigger.getDedupKey()); in getters()
429 assertEquals(DEBUG_KEY1, attributedTrigger.getDebugKey()); in getters()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DTriggerSpecs.java321 for (AttributedTrigger attributedTrigger : mAttributedTriggersRef) { in prepareFlexAttribution()
323 attributedTrigger, eventReport, bucketSize); in prepareFlexAttribution()
334 AttributedTrigger attributedTrigger, EventReport eventReport, long bucketSize) { in restoreTriggerContributionAndGetBucketDelta() argument
337 if (attributedTrigger.getTriggerTime() >= eventReport.getReportTime() in restoreTriggerContributionAndGetBucketDelta()
338 || !Objects.equals(attributedTrigger.getTriggerData(), in restoreTriggerContributionAndGetBucketDelta()
347 if (attributedTrigger.remainingValue() >= bucketSize) { in restoreTriggerContributionAndGetBucketDelta()
348 attributedTrigger.addContribution(bucketSize); in restoreTriggerContributionAndGetBucketDelta()
352 long diff = attributedTrigger.remainingValue(); in restoreTriggerContributionAndGetBucketDelta()
353 attributedTrigger.addContribution(diff); in restoreTriggerContributionAndGetBucketDelta()
357 } else if (attributedTrigger.getContribution() == 0L) { in restoreTriggerContributionAndGetBucketDelta()
[all …]
DEventReport.java496 @NonNull AttributedTrigger attributedTrigger, in getForFlex() argument
520 mBuilding.mTriggerData = attributedTrigger.getTriggerData(); in getForFlex()
DSource.java529 for (AttributedTrigger attributedTrigger : mAttributedTriggers) { in getAttributedTriggerIds()
530 result.add(attributedTrigger.getTriggerId()); in getAttributedTriggerIds()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionJobHandler.java1127 for (AttributedTrigger attributedTrigger : attributedTriggers) { in generateFlexEventReports()
1130 if (attributedTrigger.getDedupKey() != null in generateFlexEventReports()
1132 source.getEventReportDedupKeys().add(attributedTrigger.getDedupKey()); in generateFlexEventReports()
1139 attributedTrigger, in generateFlexEventReports()
1162 AttributedTrigger attributedTrigger, in updateFlexAttributionStateAndGetNumReports() argument
1169 UnsignedLong triggerData = attributedTrigger.getTriggerData(); in updateFlexAttributionStateAndGetNumReports()
1187 if (attributedTrigger.remainingValue() > 0L) { in updateFlexAttributionStateAndGetNumReports()
1188 contributingTriggers.add(attributedTrigger); in updateFlexAttributionStateAndGetNumReports()
1199 if (attributedTrigger.remainingValue() >= bucketSize - bucketAmount) { in updateFlexAttributionStateAndGetNumReports()
1203 attributedTrigger, in updateFlexAttributionStateAndGetNumReports()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/
DMeasurementDataDeleter.java285 source.getAttributedTriggers().removeIf(attributedTrigger -> in resetDedupKeys()
286 dedupKey.equals(attributedTrigger.getDedupKey()) in resetDedupKeys()
289 attributedTrigger.getTriggerId())); in resetDedupKeys()