Home
last modified time | relevance | path

Searched refs:bucketStartTimeNs (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/StatsD/statsd/tests/metrics/
DDurationMetricProducer_test.cpp88 int64_t bucketStartTimeNs = 10000000000; in TEST() local
98 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
100 makeLogEvent(&event2, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
108 wizard, protoHash, dimensions, bucketStartTimeNs, bucketStartTimeNs, provider); in TEST()
112 durationProducer.flushIfNeededLocked(bucketStartTimeNs + 2 * bucketSizeNs + 1); in TEST()
118 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST()
119 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST()
121 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[1].mBucketStartNs); in TEST()
122 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[1].mBucketEndNs); in TEST()
128 int64_t bucketStartTimeNs = 10000000000; in TEST() local
[all …]
DCountMetricProducer_test.cpp88 int64_t bucketStartTimeNs = 10000000000; in TEST() local
90 int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST()
91 int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs; in TEST()
101 wizard, protoHash, bucketStartTimeNs, bucketStartTimeNs, in TEST()
106 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
108 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
114 countProducer.flushIfNeededLocked(bucketStartTimeNs + 2); in TEST()
118 countProducer.flushIfNeededLocked(bucketStartTimeNs + bucketSizeNs + 1); in TEST()
124 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST()
125 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST()
[all …]
DMaxDurationTracker_test.cpp62 int64_t bucketStartTimeNs = 10000000000; in TEST() local
63 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST()
67 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST()
68 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
70 tracker.noteStart(key1, true, bucketStartTimeNs, ConditionKey(), in TEST()
73 tracker.noteStart(key1, true, bucketStartTimeNs + 3, ConditionKey(), in TEST()
76 tracker.noteStop(key1, bucketStartTimeNs + 10, false); in TEST()
79 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey(), in TEST()
81 tracker.noteStop(key2, bucketStartTimeNs + 40, false /*stop all*/); in TEST()
83 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
[all …]
DEventMetricProducer_test.cpp69 int64_t bucketStartTimeNs = 10000000000; in TEST_F() local
70 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST_F()
77 CreateNoValuesLogEvent(&event1, 1 /*tagId*/, bucketStartTimeNs + 1); in TEST_F()
80 CreateNoValuesLogEvent(&event2, 1 /*tagId*/, bucketStartTimeNs + 2); in TEST_F()
86 wizard, protoHash, bucketStartTimeNs, provider); in TEST_F()
94 eventProducer.onDumpReport(bucketStartTimeNs + 20, true /*include current partial bucket*/, in TEST_F()
101 EXPECT_EQ(bucketStartTimeNs + 1, report.event_metrics().data(0).elapsed_timestamp_nanos()); in TEST_F()
102 EXPECT_EQ(bucketStartTimeNs + 2, report.event_metrics().data(1).elapsed_timestamp_nanos()); in TEST_F()
106 int64_t bucketStartTimeNs = 10000000000; in TEST_F() local
107 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST_F()
[all …]
DOringDurationTracker_test.cpp60 int64_t bucketStartTimeNs = 10000000000; in TEST() local
62 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
66 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
94 int64_t bucketStartTimeNs = 10000000000; in TEST() local
96 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
98 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
99 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
109 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
127 int64_t bucketStartTimeNs = 10000000000; in TEST() local
129 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
[all …]
DKllMetricProducer_test.cpp55 const int64_t bucketStartTimeNs = 10000000000; variable
57 const int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
58 const int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
59 const int64_t bucket4StartTimeNs = bucketStartTimeNs + 3 * bucketSizeNs;
60 const int64_t bucket5StartTimeNs = bucketStartTimeNs + 4 * bucketSizeNs;
61 const int64_t bucket6StartTimeNs = bucketStartTimeNs + 5 * bucketSizeNs;
117 const int64_t timeBaseNs = bucketStartTimeNs,
118 const int64_t startTimeNs = bucketStartTimeNs) {
183 CreateRepeatedValueLogEvent(&event1, atomId, bucketStartTimeNs + 10, 10); in TEST_P()
187 const int64_t partialBucketSplitTimeNs = bucketStartTimeNs + 150; in TEST_P()
[all …]
DGaugeMetricProducer_test.cpp52 const int64_t bucketStartTimeNs = 10 * NS_PER_SEC; variable
54 const int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
55 const int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
56 const int64_t bucket4StartTimeNs = bucketStartTimeNs + 3 * bucketSizeNs;
57 const int64_t partialBucketSplitTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC;
135 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _)) in TEST()
138 EXPECT_EQ(eventTimeNs, bucketStartTimeNs); in TEST()
148 tagId, -1, tagId, bucketStartTimeNs, bucketStartTimeNs, in TEST()
238 -1 /* -1 means no pulling */, -1, tagId, bucketStartTimeNs, in TEST_P()
239 bucketStartTimeNs, pullerManager, provider); in TEST_P()
[all …]
DNumericValueMetricProducer_test.cpp54 const int64_t bucketStartTimeNs = 10000000000; variable
56 const int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
57 const int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
58 const int64_t bucket4StartTimeNs = bucketStartTimeNs + 3 * bucketSizeNs;
59 const int64_t bucket5StartTimeNs = bucketStartTimeNs + 4 * bucketSizeNs;
60 const int64_t bucket6StartTimeNs = bucketStartTimeNs + 5 * bucketSizeNs;
146 /*slicedStateAtoms=*/{}, /*stateGroupMap=*/{}, bucketStartTimeNs, bucketStartTimeNs, in createValueProducerWithSampling()
170 /*slicedStateAtoms=*/{}, /*stateGroupMap=*/{}, bucketStartTimeNs, in createValueProducerWithEventMatcherWizard()
171 bucketStartTimeNs, eventMatcherWizard); in createValueProducerWithEventMatcherWizard()
179 const int64_t timeBaseNs = bucketStartTimeNs,
[all …]
/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp135 int64_t bucketStartTimeNs = 10000000000; in BM_DurationMetricNoLink() local
141 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 11, in BM_DurationMetricNoLink()
144 CreateScreenStateChangedEvent(bucketStartTimeNs + 40, android::view::DISPLAY_STATE_ON)); in BM_DurationMetricNoLink()
146 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 102, in BM_DurationMetricNoLink()
148 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 450, in BM_DurationMetricNoLink()
151 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 650, in BM_DurationMetricNoLink()
153 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 100, in BM_DurationMetricNoLink()
156 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 640, in BM_DurationMetricNoLink()
158 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 650, in BM_DurationMetricNoLink()
163 events.push_back(CreateStartScheduledJobEvent(bucketStartTimeNs + 2, attributionUids1, in BM_DurationMetricNoLink()
[all …]
Ddb_benchmark.cpp31 int64_t bucketStartTimeNs = 10000000000; in BM_insertAtomsIntoDbTablesNewConnection() local
34 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_insertAtomsIntoDbTablesNewConnection()
63 int64_t bucketStartTimeNs = 10000000000; in BM_insertAtomsIntoDbTablesReuseConnection() local
66 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_insertAtomsIntoDbTablesReuseConnection()
97 int64_t bucketStartTimeNs = 10000000000; in BM_createDbTables() local
100 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_createDbTables()
/packages/modules/StatsD/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp234 int64_t bucketStartTimeNs = NS_PER_SEC * 10; // 10 secs in TEST() local
254 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST()
270 processor.OnConfigUpdated(bucketStartTimeNs, cfgKey, config); in TEST()
295 event = CreateAppCrashEvent(bucketStartTimeNs + 5, 111); in TEST()
296 processor.OnLogEvent(event.get(), bucketStartTimeNs + 5); in TEST()
302 event = CreateBatterySaverOnEvent(bucketStartTimeNs + 10); in TEST()
303 processor.OnLogEvent(event.get(), bucketStartTimeNs + 10); in TEST()
310 EXPECT_EQ(eventActivationMap[0]->start_ns, bucketStartTimeNs + 10); in TEST()
317 event = CreateAppCrashEvent(bucketStartTimeNs + 15, 222); in TEST()
318 processor.OnLogEvent(event.get(), bucketStartTimeNs + 15); in TEST()
[all …]
DAttribution_e2e_test.cpp98 int64_t bucketStartTimeNs = 10000000000; in TEST() local
102 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
116 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST()
118 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 200, attributionUids2, in TEST()
120 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs - 1, in TEST()
122 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs, attributionUids4, in TEST()
126 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2 * bucketSizeNs + 1, in TEST()
128 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2 * bucketSizeNs + 100, in TEST()
130 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 3 * bucketSizeNs - 2, in TEST()
132 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 3 * bucketSizeNs, in TEST()
[all …]
DCountMetric_e2e_test.cpp77 const uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST() local
83 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
97 CreateScreenStateChangedEvent(bucketStartTimeNs + 30, android::view::DISPLAY_STATE_ON); in TEST()
103 bucketStartTimeNs + 50, BatteryPluggedStateEnum::BATTERY_PLUGGED_USB); in TEST()
109 bucketStartTimeNs + 70, BatteryPluggedStateEnum::BATTERY_PLUGGED_NONE); in TEST()
144 const uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST() local
147 const uint64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST()
154 CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
158 int64_t conditionStart1Ns = bucketStartTimeNs + 50 * NS_PER_SEC; in TEST()
159 int64_t activationStart1Ns = bucketStartTimeNs + 70 * NS_PER_SEC; in TEST()
[all …]
DAnomaly_count_e2e_test.cpp63 int64_t bucketStartTimeNs = 10000000000; in TEST() local
67 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
96 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST()
101 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids4, attributionTags4, in TEST()
106 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 3, attributionUids2, attributionTags2, in TEST()
111 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 3, attributionUids5, attributionTags5, in TEST()
116 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 4, attributionUids3, attributionTags3, in TEST()
121 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 4, attributionUids5, attributionTags5, in TEST()
127 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 5, attributionUids1, attributionTags1, in TEST()
130 EXPECT_EQ(refractory_period_sec + bucketStartTimeNs / NS_PER_SEC + 1, in TEST()
[all …]
DMetricConditionLink_e2e_test.cpp103 uint64_t bucketStartTimeNs = 10000000000; in TEST() local
108 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
113 auto crashEvent1 = CreateAppCrashEvent(bucketStartTimeNs + 1, appUid); in TEST()
114 auto crashEvent2 = CreateAppCrashEvent(bucketStartTimeNs + 201, appUid); in TEST()
115 auto crashEvent3 = CreateAppCrashEvent(bucketStartTimeNs + 2 * bucketSizeNs - 101, appUid); in TEST()
117 auto crashEvent4 = CreateAppCrashEvent(bucketStartTimeNs + 51, appUid); in TEST()
118 auto crashEvent5 = CreateAppCrashEvent(bucketStartTimeNs + bucketSizeNs + 299, appUid); in TEST()
119 auto crashEvent6 = CreateAppCrashEvent(bucketStartTimeNs + bucketSizeNs + 2001, appUid); in TEST()
121 auto crashEvent7 = CreateAppCrashEvent(bucketStartTimeNs + 16, appUid); in TEST()
122 auto crashEvent8 = CreateAppCrashEvent(bucketStartTimeNs + bucketSizeNs + 249, appUid); in TEST()
[all …]
DKllMetric_e2e_test.cpp47 bucketStartTimeNs = getElapsedRealtimeNs(); in SetUp()
56 events.push_back(CreateScreenBrightnessChangedEvent(bucketStartTimeNs + 5 * NS_PER_SEC, 5)); in SetUp()
58 CreateScreenBrightnessChangedEvent(bucketStartTimeNs + 15 * NS_PER_SEC, 15)); in SetUp()
60 CreateScreenBrightnessChangedEvent(bucketStartTimeNs + 25 * NS_PER_SEC, 40)); in SetUp()
64 uint64_t bucketStartTimeNs; member in android::os::statsd::KllMetricE2eTest
74 CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, key); in TEST_F()
80 uint64_t dumpTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST_F()
101 EXPECT_EQ(bucket.start_bucket_elapsed_nanos(), bucketStartTimeNs); in TEST_F()
102 EXPECT_EQ(bucket.end_bucket_elapsed_nanos(), bucketStartTimeNs + bucketSizeNs); in TEST_F()
122 events.push_back(CreateTestAtomReportedEvent(bucketStartTimeNs + 5 * NS_PER_SEC, 5l, "dim_1")); in TEST_F()
[all …]
DWakelockDuration_e2e_test.cpp76 uint64_t bucketStartTimeNs = 10000000000; in FeedEvents() local
81 bucketStartTimeNs + 1, android::view::DisplayStateEnum::DISPLAY_STATE_ON); in FeedEvents()
83 bucketStartTimeNs + 200, android::view::DisplayStateEnum::DISPLAY_STATE_OFF); in FeedEvents()
85 CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 500, in FeedEvents()
88 auto acquireEvent1 = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in FeedEvents()
90 auto releaseEvent1 = CreateReleaseWakelockEvent(bucketStartTimeNs + bucketSizeNs + 2, in FeedEvents()
92 auto acquireEvent2 = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs - 10, in FeedEvents()
94 auto releaseEvent2 = CreateReleaseWakelockEvent(bucketStartTimeNs + 2 * bucketSizeNs - 15, in FeedEvents()
119 uint64_t bucketStartTimeNs = 10000000000; in TEST() local
122 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
[all …]
DEventMetric_e2e_test.cpp53 uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST_F() local
55 CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, key); in TEST_F()
64 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, in TEST_F()
66 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 20 * NS_PER_SEC, in TEST_F()
68 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 30 * NS_PER_SEC, in TEST_F()
76 uint64_t dumpTimeNs = bucketStartTimeNs + 100 * NS_PER_SEC; in TEST_F()
95 EXPECT_EQ(data.elapsed_timestamp_nanos(), bucketStartTimeNs + 10 * NS_PER_SEC); in TEST_F()
98 EXPECT_EQ(data.elapsed_timestamp_nanos(), bucketStartTimeNs + 20 * NS_PER_SEC); in TEST_F()
101 EXPECT_EQ(data.elapsed_timestamp_nanos(), bucketStartTimeNs + 30 * NS_PER_SEC); in TEST_F()
117 uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST_F() local
[all …]
DConfigUpdate_e2e_test.cpp121 uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST_F() local
122 sp<StatsLogProcessor> processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, in TEST_F()
131 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 5 * NS_PER_SEC, in TEST_F()
135 bucketStartTimeNs + 10 * NS_PER_SEC, in TEST_F()
137 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, attributionUids1, in TEST_F()
141 bucketStartTimeNs + 20 * NS_PER_SEC, in TEST_F()
143 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 25 * NS_PER_SEC, in TEST_F()
147 bucketStartTimeNs + 30 * NS_PER_SEC, in TEST_F()
149 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, attributionUids1, in TEST_F()
152 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 40 * NS_PER_SEC, in TEST_F()
[all …]
DAnomaly_duration_sum_e2e_test.cpp116 int64_t bucketStartTimeNs = processor->mTimeBaseNs; in TEST_F() local
117 int64_t roundedBucketStartTimeNs = bucketStartTimeNs / NS_PER_SEC * NS_PER_SEC; in TEST_F()
124 bucketStartTimeNs + 1, android::view::DisplayStateEnum::DISPLAY_STATE_ON); in TEST_F()
126 bucketStartTimeNs + 10, android::view::DisplayStateEnum::DISPLAY_STATE_OFF); in TEST_F()
131 auto acquire_event = CreateAcquireWakelockEvent(bucketStartTimeNs + 11, attributionUids1, in TEST_F()
134 EXPECT_EQ((bucketStartTimeNs + 11 + threshold_ns) / NS_PER_SEC + 1, in TEST_F()
139 auto release_event = CreateReleaseWakelockEvent(bucketStartTimeNs + 101, attributionUids1, in TEST_F()
146 acquire_event = CreateAcquireWakelockEvent(bucketStartTimeNs + 110, attributionUids2, in TEST_F()
149 EXPECT_EQ((bucketStartTimeNs + 110 + threshold_ns - 90) / NS_PER_SEC + 1, in TEST_F()
154 release_event = CreateReleaseWakelockEvent(bucketStartTimeNs + NS_PER_SEC + 109, in TEST_F()
[all …]
DStringReplace_e2e_test.cpp81 const uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST() local
89 bucketStartTimeNs, bucketStartTimeNs, config, cfgKey, nullptr, 0, new UidMap()); in TEST()
92 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 20 * NS_PER_SEC, in TEST()
94 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 40 * NS_PER_SEC, in TEST()
96 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 60 * NS_PER_SEC, in TEST()
98 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 80 * NS_PER_SEC, in TEST()
100 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 90 * NS_PER_SEC, in TEST()
102 events.push_back(CreateTestAtomReportedEventStringDim(bucketStartTimeNs + 100 * NS_PER_SEC, in TEST()
113 processor->onDumpReport(cfgKey, bucketStartTimeNs + bucketSizeNs + 1, false, true, ADB_DUMP, in TEST()
178 const uint64_t bucketStartTimeNs = 10000000000; // 0:10 in TEST() local
[all …]
DDurationMetric_e2e_test.cpp224 const int64_t bucketStartTimeNs = 10000000000; in TEST() local
244 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST()
260 processor.OnConfigUpdated(bucketStartTimeNs, cfgKey, config); // 0:00 in TEST()
280 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * NS_PER_SEC, in TEST()
282 processor.OnLogEvent(event.get(), bucketStartTimeNs + 2 * NS_PER_SEC); in TEST()
285 const int64_t durationStartNs = bucketStartTimeNs + 5 * NS_PER_SEC; // 0:05 in TEST()
290 const int64_t activationStartNs = bucketStartTimeNs + 5 * NS_PER_SEC; // 0:10 in TEST()
350 processor.onDumpReport(cfgKey, bucketStartTimeNs + bucketSizeNs + 1 * NS_PER_SEC, false, true, in TEST()
371 EXPECT_EQ(bucketStartTimeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST()
397 uint64_t bucketStartTimeNs = 10000000000; in TEST() local
[all …]
DGaugeMetric_e2e_push_test.cpp131 int64_t bucketStartTimeNs = 10000000000; in TEST_F() local
137 CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST_F()
144 events.push_back(CreateMoveToBackgroundEvent(bucketStartTimeNs + 15, appUid1)); in TEST_F()
146 CreateMoveToForegroundEvent(bucketStartTimeNs + bucketSizeNs + 250, appUid1)); in TEST_F()
148 CreateMoveToBackgroundEvent(bucketStartTimeNs + bucketSizeNs + 350, appUid1)); in TEST_F()
150 CreateMoveToForegroundEvent(bucketStartTimeNs + 2 * bucketSizeNs + 100, appUid1)); in TEST_F()
153 bucketStartTimeNs + 10, appUid1, "app1", AppStartOccurred::WARM, "activity_name1", in TEST_F()
156 bucketStartTimeNs + 20, appUid1, "app1", AppStartOccurred::HOT, "activity_name2", in TEST_F()
159 bucketStartTimeNs + 30, appUid1, "app1", AppStartOccurred::COLD, "activity_name3", in TEST_F()
162 bucketStartTimeNs + bucketSizeNs + 30, appUid1, "app1", AppStartOccurred::WARM, in TEST_F()
[all …]
DConfigTtl_e2e_test.cpp65 int64_t bucketStartTimeNs = 10000000000; in TEST() local
69 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
86 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST()
90 event = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs + 2, attributionUids1, in TEST()
94 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 25 * bucketSizeNs + 2, attributionUids1, in TEST()
98 EXPECT_EQ((int64_t)(bucketStartTimeNs + 25 * bucketSizeNs + 2 + 2 * 3600 * NS_PER_SEC), in TEST()
103 processor->onDumpReport(cfgKey, bucketStartTimeNs + 25 * bucketSizeNs + 3, false, true, in TEST()
DAlarm_e2e_test.cpp50 int64_t bucketStartTimeNs = 10000000000; in TEST() local
53 auto processor = CreateStatsLogProcessor(bucketStartTimeNs, bucketStartTimeNs, config, cfgKey); in TEST()
61 int64_t alarmTimestampSec0 = bucketStartTimeNs / NS_PER_SEC + 10 * 60; in TEST()
62 int64_t alarmTimestampSec1 = bucketStartTimeNs / NS_PER_SEC + 5 * 60; in TEST()

12