/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_duration_sum_e2e_test.cpp | 80 std::vector<int> attributionUids1 = {111, 222}; variable 139 auto acquire_event = CreateAcquireWakelockEvent(bucketStartTimeNs + 11, attributionUids1, in TEST() 147 auto release_event = CreateReleaseWakelockEvent(bucketStartTimeNs + 101, attributionUids1, in TEST() 171 attributionUids1, attributionTags1, "wl1"); in TEST() 192 attributionUids1, attributionTags1, "wl1"); in TEST() 223 attributionUids1, attributionTags1, "wl1"); in TEST() 230 release_event = CreateReleaseWakelockEvent(release_event_time, attributionUids1, in TEST() 321 attributionUids1, attributionTags1, "wl1"); in TEST() 329 auto release_event = CreateReleaseWakelockEvent(release_event_time, attributionUids1, in TEST() 391 attributionUids1, attributionTags1, "wl1"); in TEST() [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 | CountMetric_e2e_test.cpp | 177 std::vector<int> attributionUids1 = {123}; in TEST() local 184 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 75 * NS_PER_SEC, attributionUids1, in TEST() 192 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 250 * NS_PER_SEC, attributionUids1, in TEST() 196 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 350 * NS_PER_SEC, attributionUids1, in TEST() 198 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 400 * NS_PER_SEC, attributionUids1, in TEST() 203 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 475 * NS_PER_SEC, attributionUids1, in TEST() 208 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 520 * NS_PER_SEC, attributionUids1, in TEST() 342 std::vector<int> attributionUids1 = {123}; in TEST() local 346 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 20 * NS_PER_SEC, attributionUids1, in TEST() 351 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 60 * NS_PER_SEC, 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 | ConfigUpdate_e2e_test.cpp | 108 vector<int> attributionUids1 = {app1Uid}; in TEST_F() local 114 attributionUids1, attributionTags1, in TEST_F() 119 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, attributionUids1, in TEST_F() 126 attributionUids1, attributionTags1, in TEST_F() 131 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, attributionUids1, in TEST_F() 135 attributionUids1, attributionTags1, in TEST_F() 171 attributionUids1, attributionTags1, in TEST_F() 177 attributionUids1, attributionTags1, in TEST_F() 183 attributionUids1, attributionTags1, in TEST_F() 185 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 90 * NS_PER_SEC, attributionUids1, in TEST_F() [all …]
|
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 | DurationMetric_e2e_test.cpp | 407 vector<int> attributionUids1 = {appUid}; in TEST() local 410 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, attributionUids1, in TEST() 422 event = CreateReleaseWakelockEvent(bucketStartTimeNs + 4 * 60 * NS_PER_SEC, attributionUids1, in TEST() 511 std::vector<int> attributionUids1 = {appUid}; in TEST() local 514 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, attributionUids1, in TEST() 521 event = CreateReleaseWakelockEvent(bucketStartTimeNs + 60 * NS_PER_SEC, attributionUids1, in TEST() 626 std::vector<int> attributionUids1 = {appUid}; in TEST() local 629 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, attributionUids1, in TEST() 670 attributionUids1, attributionTags1, "wl1"); // 4:17 in TEST() 678 attributionUids1, attributionTags1, "wl1"); // 4:25 in TEST() [all …]
|
D | Attribution_e2e_test.cpp | 57 std::vector<int> attributionUids1 = {111, 222, 333}; variable 117 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() 230 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 | 253 std::vector<int> attributionUids1 = {1000}; in TEST() local 256 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent(timestampNs, attributionUids1, in TEST() 265 timestampNs + 1000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 270 timestampNs + 2000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 275 timestampNs + 3000, attributionUids1, attributionTags1, "wakelockName"); in TEST() 293 std::vector<int> attributionUids1 = {1000}; in TEST() local 298 CreateBleScanStateChangedEvent(timestampNs, attributionUids1, attributionTags1, in TEST()
|