/packages/modules/StatsD/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 43 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "event"); variable 51 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "event"); in TEST() local 65 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, in TEST() 78 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 80 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() 81 EXPECT_EQ(durationTimeNs, buckets[eventKey][0].mDuration); in TEST() 85 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "event"); in TEST() local 98 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST() 110 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 111 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 46 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "1"); variable 53 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "1"); in TEST() local 67 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST() 84 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 85 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() 86 EXPECT_EQ(20LL, buckets[eventKey][0].mDuration); in TEST() 90 const MetricDimensionKey eventKey = getMockedMetricDimensionKey(TagId, 0, "1"); in TEST() local 104 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST() 116 EXPECT_TRUE(buckets.find(eventKey) == buckets.end()); in TEST() 119 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() [all …]
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/ |
D | ReportEventRequest.java | 194 @NonNull String eventKey, in Builder() argument 197 Objects.requireNonNull(eventKey); in Builder() 214 this.mEventKey = eventKey; in Builder() 238 public Builder setKey(@NonNull String eventKey) { in setKey() argument 239 Objects.requireNonNull(eventKey); in setKey() 241 mEventKey = eventKey; in setKey()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 385 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument 395 auto it = mCurrentSlicedCounter->find(eventKey); in onMatchedLogEventInternalLocked() 398 if (hitGuardRailLocked(eventKey)) { in onMatchedLogEventInternalLocked() 402 (*mCurrentSlicedCounter)[eventKey] = 1; in onMatchedLogEventInternalLocked() 409 int64_t countWholeBucket = mCurrentSlicedCounter->find(eventKey)->second; in onMatchedLogEventInternalLocked() 410 auto prev = mCurrentFullCounters->find(eventKey); in onMatchedLogEventInternalLocked() 414 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in onMatchedLogEventInternalLocked() 418 VLOG("metric %lld %s->%lld", (long long)mMetricId, eventKey.toString().c_str(), in onMatchedLogEventInternalLocked() 419 (long long)(*mCurrentSlicedCounter)[eventKey]); in onMatchedLogEventInternalLocked()
|
D | DurationMetricProducer.cpp | 351 const MetricDimensionKey& eventKey) const { in createDurationTracker() 355 mConfigKey, mMetricId, eventKey, mWizard, mConditionTrackerIndex, mNested, in createDurationTracker() 360 mConfigKey, mMetricId, eventKey, mWizard, mConditionTrackerIndex, mNested, in createDurationTracker() 701 void DurationMetricProducer::handleStartEvent(const MetricDimensionKey& eventKey, in handleStartEvent() argument 705 const auto& whatKey = eventKey.getDimensionKeyInWhat(); in handleStartEvent() 708 if (hitGuardRailLocked(eventKey)) { in handleStartEvent() 711 mCurrentSlicedDurationTrackerMap[whatKey] = createDurationTracker(eventKey); in handleStartEvent() 732 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument
|
D | DurationMetricProducer.h | 74 const size_t matcherIndex, const MetricDimensionKey& eventKey, 85 void handleStartEvent(const MetricDimensionKey& eventKey, const ConditionKey& conditionKeys, 182 const MetricDimensionKey& eventKey) const;
|
D | EventMetricProducer.cpp | 284 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument 309 if (eventKey.getStateValuesKey().getValues().empty()) { // Metric does not use slice_by_state in onMatchedLogEventInternalLocked() 315 std::vector<int64_t>& aggTimestampsNs = aggStateTimestampsNs[eventKey.getStateValuesKey()]; in onMatchedLogEventInternalLocked() 318 mTotalDataSize += getFieldValuesSizeV2(eventKey.getStateValuesKey().getValues()); in onMatchedLogEventInternalLocked()
|
D | KllMetricProducer.h | 78 const MetricDimensionKey& eventKey, bool condition, int64_t eventTimeNs, in canSkipLogEventLocked() argument 108 bool aggregateFields(const int64_t eventTimeNs, const MetricDimensionKey& eventKey,
|
D | ValueMetricProducer.h | 147 const size_t matcherIndex, const MetricDimensionKey& eventKey, 153 const MetricDimensionKey& eventKey, bool condition, int64_t eventTimeNs, 375 virtual bool aggregateFields(const int64_t eventTimeNs, const MetricDimensionKey& eventKey,
|
D | GaugeMetricProducer.cpp | 582 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument 612 if (mCurrentSlicedBucket->find(eventKey) != mCurrentSlicedBucket->end() && in onMatchedLogEventInternalLocked() 616 if (hitGuardRailLocked(eventKey)) { in onMatchedLogEventInternalLocked() 619 if ((*mCurrentSlicedBucket)[eventKey].size() >= mGaugeAtomsPerDimensionLimit) { in onMatchedLogEventInternalLocked() 625 (*mCurrentSlicedBucket)[eventKey].push_back(gaugeAtom); in onMatchedLogEventInternalLocked() 639 eventKey, gaugeVal); in onMatchedLogEventInternalLocked()
|
D | ValueMetricProducer.cpp | 696 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument 716 const auto whatKey = eventKey.getDimensionKeyInWhat(); in onMatchedLogEventInternalLocked() 724 if (canSkipLogEventLocked(eventKey, condition, eventTimeNs, statePrimaryKeys)) { in onMatchedLogEventInternalLocked() 728 if (hitGuardRailLocked(eventKey)) { in onMatchedLogEventInternalLocked() 739 const auto stateKey = eventKey.getStateValuesKey(); in onMatchedLogEventInternalLocked() 753 dimensionsInWhatInfo.seenNewData |= aggregateFields(eventTimeNs, eventKey, event, intervals, in onMatchedLogEventInternalLocked()
|
D | NumericValueMetricProducer.h | 123 const MetricDimensionKey& eventKey, const bool condition, int64_t eventTimeNs, in canSkipLogEventLocked() argument 132 bool aggregateFields(const int64_t eventTimeNs, const MetricDimensionKey& eventKey,
|
D | RestrictedEventMetricProducer.h | 43 const size_t matcherIndex, const MetricDimensionKey& eventKey,
|
D | NumericValueMetricProducer.cpp | 441 const MetricDimensionKey& eventKey, in aggregateFields() argument 612 auto prev = mCurrentFullBucket.find(eventKey); in aggregateFields() 617 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in aggregateFields()
|
D | EventMetricProducer.h | 60 const size_t matcherIndex, const MetricDimensionKey& eventKey,
|
D | RestrictedEventMetricProducer.cpp | 50 const size_t matcherIndex, const MetricDimensionKey& eventKey, in onMatchedLogEventInternalLocked() argument
|
D | CountMetricProducer.h | 69 const size_t matcherIndex, const MetricDimensionKey& eventKey,
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | DurationTracker.h | 76 DurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey, in DurationTracker() argument 83 mEventKey(eventKey), in DurationTracker() 193 void addPastBucketToAnomalyTrackers(const MetricDimensionKey& eventKey, int64_t bucketValue, in addPastBucketToAnomalyTrackers() argument 197 anomalyTracker->addPastBucket(eventKey, bucketValue, bucketNum); in addPastBucketToAnomalyTrackers()
|
D | MaxDurationTracker.cpp | 28 const MetricDimensionKey& eventKey, in MaxDurationTracker() argument 34 : DurationTracker(key, id, eventKey, wizard, conditionIndex, nesting, currentBucketStartNs, in MaxDurationTracker()
|
D | MaxDurationTracker.h | 31 MaxDurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey,
|
D | OringDurationTracker.h | 29 OringDurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey,
|
D | OringDurationTracker.cpp | 28 const MetricDimensionKey& eventKey, in OringDurationTracker() argument 35 : DurationTracker(key, id, eventKey, wizard, conditionIndex, nesting, currentBucketStartNs, in OringDurationTracker()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/notallowed/src/com/android/adservices/tests/permissions/ |
D | NotInAllowListTest.java | 202 String eventKey = "click"; in testNotInAllowList_reportEvent() local 212 eventKey, in testNotInAllowList_reportEvent()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/valid/src/com/android/adservices/tests/permissions/ |
D | PermissionsValidTest.java | 185 String eventKey = "click"; in testValidPermissions_reportEvent() local 197 eventKey, in testValidPermissions_reportEvent()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/noperm/src/com/android/adservices/tests/permissions/ |
D | PermissionsNoPermTest.java | 345 String eventKey = "click"; in testPermissionNotRequested_reportEvent() local 357 eventKey, in testPermissionNotRequested_reportEvent()
|