/frameworks/base/cmds/statsd/tests/e2e/ |
D | Anomaly_duration_sum_e2e_test.cpp | 74 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), variable 120 auto acquire_event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 11); in TEST() 127 auto release_event = CreateReleaseWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 101); in TEST() 149 attributions1, "wl1", bucketStartTimeNs + NS_PER_SEC + 112); in TEST() 168 attributions1, "wl1", alarmFiredTimestampSec0 * NS_PER_SEC + NS_PER_SEC + 1); in TEST() 198 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - 2); in TEST() 205 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + NS_PER_SEC - 1); in TEST() 295 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - NS_PER_SEC / 2 - 1); in TEST() 303 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - 1); in TEST() 360 attributions1, "wl1", bucketStartTimeNs + 6 * bucketSizeNs - NS_PER_SEC + 5); in TEST() [all …]
|
D | Anomaly_count_e2e_test.cpp | 76 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 96 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 2); in TEST() 121 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 5); in TEST() 126 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 100); in TEST() 131 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - 1); in TEST() 136 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 1); in TEST() 179 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 199 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 2); in TEST() 208 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 4); in TEST() 212 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 1); in TEST()
|
D | ConfigTtl_e2e_test.cpp | 75 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 87 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 2); in TEST() 90 event = CreateAcquireWakelockEvent(attributions1, "wl2", bucketStartTimeNs + bucketSizeNs + 2); in TEST() 94 attributions1, "wl1", bucketStartTimeNs + 25 * bucketSizeNs + 2); in TEST()
|
D | DimensionInCondition_e2e_combination_OR_cond_test.cpp | 82 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), in TEST() local 100 events.push_back(CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 200)); in TEST() 102 CreateReleaseWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 1)); in TEST() 293 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), in TEST() local 329 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", bucketStartTimeNs + 200)); in TEST() 331 CreateSyncEndEvent(attributions1, "ReadEmail", bucketStartTimeNs + bucketSizeNs + 300)); in TEST() 333 events.push_back(CreateSyncStartEvent(attributions1, "ReadDoc", bucketStartTimeNs + 400)); in TEST() 335 CreateSyncEndEvent(attributions1, "ReadDoc", bucketStartTimeNs + bucketSizeNs - 1)); in TEST() 481 std::vector<AttributionNodeInternal> attributions1 = { in TEST() local 513 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", bucketStartTimeNs + 200)); in TEST() [all …]
|
D | WakelockDuration_e2e_test.cpp | 64 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), variable 91 auto acquireEvent1 = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 2); in FeedEvents() 93 CreateReleaseWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 2); in FeedEvents() 209 events.push_back(CreateAcquireWakelockEvent(attributions1, "wl3", in TEST() 211 events.push_back(CreateReleaseWakelockEvent(attributions1, "wl3", in TEST() 318 events.push_back(CreateAcquireWakelockEvent(attributions1, "wl3", in TEST() 320 events.push_back(CreateReleaseWakelockEvent(attributions1, "wl3", in TEST()
|
D | DimensionInCondition_e2e_simple_cond_test.cpp | 87 std::vector<AttributionNodeInternal> attributions1 = { in TEST() local 117 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 119 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() 122 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 124 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() 127 events.push_back(CreateSyncStartEvent(attributions1, "ReadDoc", in TEST() 129 events.push_back(CreateSyncEndEvent(attributions1, "ReadDoc", in TEST() 373 std::vector<AttributionNodeInternal> attributions1 = { in TEST() local 409 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 411 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() [all …]
|
D | DimensionInCondition_e2e_combination_AND_cond_test.cpp | 130 std::vector<AttributionNodeInternal> attributions1 = { in TEST() local 186 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 188 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() 191 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 193 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() 196 events.push_back(CreateSyncStartEvent(attributions1, "ReadDoc", in TEST() 198 events.push_back(CreateSyncEndEvent(attributions1, "ReadDoc", in TEST() 469 std::vector<AttributionNodeInternal> attributions1 = { in TEST() local 519 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() 521 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 404 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(appUid, "App1")}; in TEST() local 407 attributions1, "wl1", bucketStartTimeNs + 10 * NS_PER_SEC); // 0:10 in TEST() 418 attributions1, "wl1", bucketStartTimeNs + 4 * 60 * NS_PER_SEC); // 4:00 in TEST() 503 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(appUid, "App1")}; in TEST() local 506 attributions1, "wl1", bucketStartTimeNs + 10 * NS_PER_SEC); // 0:10 in TEST() 513 attributions1, "wl1", bucketStartTimeNs + 60 * NS_PER_SEC); // 1:00 in TEST() 616 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(appUid, "App1")}; in TEST() local 619 attributions1, "wl1", bucketStartTimeNs + 10 * NS_PER_SEC); // 0:10 in TEST() 659 attributions1, "wl1", bucketStartTimeNs + (4 * 60 + 17) * NS_PER_SEC); // 4:17 in TEST() 667 attributions1, "wl1", bucketStartTimeNs + (4 * 60 + 25) * NS_PER_SEC); // 4:25 in TEST()
|
D | Attribution_e2e_test.cpp | 78 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), in TEST() local 116 attributions1, "wl1", bucketStartTimeNs + 2)); in TEST() 226 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1"), in TEST() local 264 attributions1, "wl1", bucketStartTimeNs + 2)); in TEST()
|
/frameworks/base/cmds/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 141 std::vector<AttributionNodeInternal> attributions1 = { in BM_DurationMetricNoLink() local 191 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in BM_DurationMetricNoLink() 193 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in BM_DurationMetricNoLink() 196 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in BM_DurationMetricNoLink() 198 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in BM_DurationMetricNoLink() 201 events.push_back(CreateSyncStartEvent(attributions1, "ReadDoc", in BM_DurationMetricNoLink() 203 events.push_back(CreateSyncEndEvent(attributions1, "ReadDoc", in BM_DurationMetricNoLink() 233 std::vector<AttributionNodeInternal> attributions1 = { in BM_DurationMetricLink() local 283 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in BM_DurationMetricLink() 285 events.push_back(CreateSyncEndEvent(attributions1, "ReadEmail", in BM_DurationMetricLink()
|
/frameworks/base/cmds/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 267 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 268 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", 2); in TEST() 495 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 496 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", 100 + timeBase1); in TEST() 704 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 705 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", 100 + timeBase1); in TEST() 856 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 857 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", 100 + timeBase1); in TEST() 1262 std::vector<AttributionNodeInternal> attributions1 = {CreateAttribution(111, "App1")}; in TEST() local 1263 auto event = CreateAcquireWakelockEvent(attributions1, "wl1", 100 + timeBase1); in TEST() [all …]
|