/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_duration_sum_e2e_test.cpp | 78 std::vector<int> attributionUids1 = {111, 222}; variable 132 auto acquire_event = CreateAcquireWakelockEvent(bucketStartTimeNs + 11, attributionUids1, in TEST_F() 140 auto release_event = CreateReleaseWakelockEvent(bucketStartTimeNs + 101, attributionUids1, in TEST_F() 164 attributionUids1, attributionTags1, "wl1"); in TEST_F() 185 attributionUids1, attributionTags1, "wl1"); in TEST_F() 216 attributionUids1, attributionTags1, "wl1"); in TEST_F() 223 release_event = CreateReleaseWakelockEvent(release_event_time, attributionUids1, in TEST_F() 313 attributionUids1, attributionTags1, "wl1"); in TEST_F() 321 auto release_event = CreateReleaseWakelockEvent(release_event_time, attributionUids1, in TEST_F() 383 attributionUids1, attributionTags1, "wl1"); in TEST_F() [all …]
|
D | Anomaly_count_e2e_test.cpp | 76 std::vector<int> attributionUids1 = {111}; in TEST() local 97 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() 128 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 5, attributionUids1, attributionTags1, in TEST() 134 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 100, attributionUids1, attributionTags1, in TEST() 140 event = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs - 1, attributionUids1, in TEST() 146 event = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs + 1, attributionUids1, in TEST() 193 std::vector<int> attributionUids1 = {111}; in TEST() local 203 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() 214 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 4, attributionUids1, attributionTags1, in TEST() 219 event = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs + 1, attributionUids1, in TEST() [all …]
|
D | ConfigTtl_e2e_test.cpp | 74 std::vector<int> attributionUids1 = {111}; in TEST() local 87 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() 91 event = CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs + 2, attributionUids1, in TEST() 95 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 25 * bucketSizeNs + 2, attributionUids1, in TEST()
|
D | WakelockDuration_e2e_test.cpp | 64 std::vector<int> attributionUids1 = {111, 222, 222}; variable 89 auto acquireEvent1 = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in FeedEvents() 92 attributionUids1, attributionTags1, "wl1"); in FeedEvents() 210 attributionUids1, attributionTags1, "wl3")); in TEST() 212 attributionUids1, attributionTags1, "wl3")); in TEST() 319 attributionUids1, attributionTags1, "wl3")); in TEST() 321 attributionUids1, attributionTags1, "wl3")); in TEST()
|
D | CountMetric_e2e_test.cpp | 158 std::vector<int> attributionUids1 = {123}; in TEST() local 177 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 60 * NS_PER_SEC, attributionUids1, in TEST() 181 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 75 * NS_PER_SEC, attributionUids1, in TEST() 185 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 20 * NS_PER_SEC, attributionUids1, in TEST() 192 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 50 * NS_PER_SEC, attributionUids1, in TEST() 198 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 110 * NS_PER_SEC, attributionUids1, in TEST() 202 events.push_back(CreateSyncStartEvent(activationEnd1Ns, attributionUids1, attributionTags1, in TEST() 209 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 160 * NS_PER_SEC, attributionUids1, in TEST() 214 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 220 * NS_PER_SEC, attributionUids1, in TEST() 220 events.push_back(CreateSyncStartEvent(bucket2StartTimeNs + 250 * NS_PER_SEC, attributionUids1, in TEST() [all …]
|
D | ConfigUpdate_e2e_test.cpp | 138 vector<int> attributionUids1 = {app1Uid}; in TEST_P() local 144 attributionUids1, attributionTags1, in TEST_P() 149 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, attributionUids1, in TEST_P() 156 attributionUids1, attributionTags1, in TEST_P() 161 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, attributionUids1, in TEST_P() 165 attributionUids1, attributionTags1, in TEST_P() 206 attributionUids1, attributionTags1, in TEST_P() 212 attributionUids1, attributionTags1, in TEST_P() 218 attributionUids1, attributionTags1, in TEST_P() 220 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 90 * NS_PER_SEC, attributionUids1, in TEST_P() [all …]
|
D | DurationMetric_e2e_test.cpp | 415 vector<int> attributionUids1 = {appUid}; in TEST() local 424 attributionUids1, attributionTags1, in TEST() 430 attributionUids1, attributionTags1, in TEST() 436 attributionUids1, attributionTags1, in TEST() 527 std::vector<int> attributionUids1 = {appUid}; in TEST() local 530 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, attributionUids1, in TEST() 537 event = CreateReleaseWakelockEvent(bucketStartTimeNs + 60 * NS_PER_SEC, attributionUids1, in TEST() 642 std::vector<int> attributionUids1 = {appUid}; in TEST() local 645 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, attributionUids1, in TEST() 686 attributionUids1, attributionTags1, "wl1"); // 4:17 in TEST() [all …]
|
D | Attribution_e2e_test.cpp | 57 std::vector<int> attributionUids1 = {111, 222, 333}; variable 118 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() 232 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST()
|
/packages/modules/StatsD/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 162 vector<int> attributionUids1 = {9999}; in BM_DurationMetricNoLink() local 164 events.push_back(CreateStartScheduledJobEvent(bucketStartTimeNs + 2, attributionUids1, in BM_DurationMetricNoLink() 166 events.push_back(CreateFinishScheduledJobEvent(bucketStartTimeNs + 101, attributionUids1, in BM_DurationMetricNoLink() 169 events.push_back(CreateStartScheduledJobEvent(bucketStartTimeNs + 201, attributionUids1, in BM_DurationMetricNoLink() 171 events.push_back(CreateFinishScheduledJobEvent(bucketStartTimeNs + 500, attributionUids1, in BM_DurationMetricNoLink() 246 vector<int> attributionUids1 = {111}; in BM_DurationMetricLink() local 248 events.push_back(CreateStartScheduledJobEvent(bucketStartTimeNs + 1, attributionUids1, in BM_DurationMetricLink() 250 events.push_back(CreateFinishScheduledJobEvent(bucketStartTimeNs + 101, attributionUids1, in BM_DurationMetricLink()
|
/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 254 std::vector<int> attributionUids1 = {1000}; in TEST() local 257 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent(timestampNs, attributionUids1, in TEST() 266 timestampNs + 1000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 271 timestampNs + 2000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 276 timestampNs + 3000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 294 std::vector<int> attributionUids1 = {1000}; in TEST() local 299 CreateBleScanStateChangedEvent(timestampNs, attributionUids1, attributionTags1, in TEST()
|