/packages/modules/StatsD/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 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() 231 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 55, in BM_DurationMetricLink() 233 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 120, in BM_DurationMetricLink() [all …]
|
D | db_benchmark.cpp | 34 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_insertAtomsIntoDbTablesNewConnection() 66 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_insertAtomsIntoDbTablesReuseConnection() 100 CreateScreenStateChangedEvent(bucketStartTimeNs, android::view::DISPLAY_STATE_OFF); in BM_createDbTables()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | GaugeMetric_e2e_pull_test.cpp | 99 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 106 auto screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 10, in TEST() 110 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 100, in TEST() 120 screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 3 * bucketSizeNs + 2, in TEST() 127 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 5 * bucketSizeNs + 1, in TEST() 236 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 240 CreateScreenStateChangedEvent(configAddedTimeNs + 100, android::view::DISPLAY_STATE_ON); in TEST() 243 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 150, in TEST() 248 CreateScreenStateChangedEvent(configAddedTimeNs + 200, android::view::DISPLAY_STATE_ON); in TEST() 251 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 250, in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 70 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 76 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 81 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 153 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 159 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 164 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 280 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * NS_PER_SEC, in TEST() 286 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 320 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 325 event = CreateScreenStateChangedEvent(duration2StartNs, android::view::DISPLAY_STATE_ON); in TEST() [all …]
|
D | Anomaly_duration_sum_e2e_test.cpp | 123 auto screen_on_event = CreateScreenStateChangedEvent( in TEST_F() 125 auto screen_off_event = CreateScreenStateChangedEvent( in TEST_F() 232 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 20, in TEST_F() 249 CreateScreenStateChangedEvent(roundedBucketStartTimeNs + 2 * bucketSizeNs + NS_PER_SEC, in TEST_F() 257 screen_on_event = CreateScreenStateChangedEvent( in TEST_F() 269 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 2 * NS_PER_SEC + 2, in TEST_F() 305 auto screen_off_event = CreateScreenStateChangedEvent( in TEST_F() 431 auto screen_off_event = CreateScreenStateChangedEvent( in TEST_F() 516 auto screen_off_event = CreateScreenStateChangedEvent( in TEST_F()
|
D | CountMetric_e2e_test.cpp | 97 CreateScreenStateChangedEvent(bucketStartTimeNs + 30, android::view::DISPLAY_STATE_ON); in TEST() 171 events.push_back(CreateScreenStateChangedEvent( in TEST() 186 events.push_back(CreateScreenStateChangedEvent( in TEST() 193 events.push_back(CreateScreenStateChangedEvent( in TEST() 203 events.push_back(CreateScreenStateChangedEvent( in TEST() 215 events.push_back(CreateScreenStateChangedEvent( in TEST() 225 events.push_back(CreateScreenStateChangedEvent( in TEST() 337 events.push_back(CreateScreenStateChangedEvent( in TEST() 342 events.push_back(CreateScreenStateChangedEvent( in TEST() 345 events.push_back(CreateScreenStateChangedEvent( in TEST() [all …]
|
D | MetricConditionLink_e2e_test.cpp | 127 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in TEST() 129 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in TEST() 132 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs - 100, in TEST() 246 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in TEST() 248 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in TEST() 251 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs - 100, in TEST()
|
D | ValueMetric_pull_e2e_test.cpp | 179 CreateScreenStateChangedEvent(configAddedTimeNs + 30, android::view::DISPLAY_STATE_ON); in TEST() 185 CreateScreenStateChangedEvent(configAddedTimeNs + 40, android::view::DISPLAY_STATE_OFF); in TEST() 232 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 236 CreateScreenStateChangedEvent(configAddedTimeNs + 65, android::view::DISPLAY_STATE_ON); in TEST() 240 CreateScreenStateChangedEvent(configAddedTimeNs + 75, android::view::DISPLAY_STATE_OFF); in TEST() 249 screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 2 * bucketSizeNs + 15, in TEST() 257 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 4 * bucketSizeNs + 11, in TEST() 355 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 359 CreateScreenStateChangedEvent(configAddedTimeNs + 65, android::view::DISPLAY_STATE_ON); in TEST() 363 CreateScreenStateChangedEvent(configAddedTimeNs + 75, android::view::DISPLAY_STATE_OFF); in TEST() [all …]
|
D | WakelockDuration_e2e_test.cpp | 80 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in FeedEvents() 82 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in FeedEvents() 85 CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 500, in FeedEvents() 206 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 90, in TEST() 315 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 90, in TEST()
|
D | ConfigUpdate_e2e_test.cpp | 134 events.push_back(CreateScreenStateChangedEvent( in TEST_F() 146 events.push_back(CreateScreenStateChangedEvent( in TEST_F() 198 events.push_back(CreateScreenStateChangedEvent( in TEST_F() 379 CreateScreenStateChangedEvent(bucketStartTimeNs + 10 * NS_PER_SEC, in TEST_F() 434 CreateScreenStateChangedEvent(bucketStartTimeNs + 75 * NS_PER_SEC, in TEST_F() 439 CreateScreenStateChangedEvent(bucketStartTimeNs + 85 * NS_PER_SEC, in TEST_F() 649 events.push_back(CreateScreenStateChangedEvent( in TEST_F() 660 CreateScreenStateChangedEvent(bucketStartTimeNs + 20 * NS_PER_SEC, in TEST_F() 670 CreateScreenStateChangedEvent(bucketStartTimeNs + 40 * NS_PER_SEC, in TEST_F() 720 CreateScreenStateChangedEvent(bucketStartTimeNs + 81 * NS_PER_SEC, in TEST_F() [all …]
|
D | MetricActivation_e2e_test.cpp | 321 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 367 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 545 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 594 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 877 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 929 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 1193 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 10, android::view::DISPLAY_STATE_ON); in TEST() 1456 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 1541 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST()
|
D | StringReplace_e2e_test.cpp | 331 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST()
|
/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 129 std::unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST() 139 event = CreateScreenStateChangedEvent( in TEST() 149 event = CreateScreenStateChangedEvent(timestampNs, in TEST() 159 event = CreateScreenStateChangedEvent( in TEST() 345 std::unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST() 479 std::unique_ptr<LogEvent> event5 = CreateScreenStateChangedEvent( in TEST()
|
/packages/modules/StatsD/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 127 std::unique_ptr<LogEvent> logEvent1 = CreateScreenStateChangedEvent( in getPushedEvents() 129 std::unique_ptr<LogEvent> logEvent2 = CreateScreenStateChangedEvent( in getPushedEvents() 415 shellSubscriber.onLogEvent(*CreateScreenStateChangedEvent( in TEST_F() 430 shellSubscriber.onLogEvent(*CreateScreenStateChangedEvent( in TEST_F() 471 shellSubscriber.onLogEvent(*CreateScreenStateChangedEvent( in TEST_F() 540 shellSubscriber.onLogEvent(*CreateScreenStateChangedEvent( in TEST_F() 563 shellSubscriber.onLogEvent(*CreateScreenStateChangedEvent( in TEST_F()
|
/packages/modules/StatsD/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 154 CreateScreenStateChangedEvent(/*timestamp=*/50, android::view::DISPLAY_STATE_OFF); in TEST() 167 CreateScreenStateChangedEvent(/*timestamp=*/100, android::view::DISPLAY_STATE_ON); in TEST() 208 CreateScreenStateChangedEvent(/*timestamp=*/50, android::view::DISPLAY_STATE_OFF); in TEST() 221 CreateScreenStateChangedEvent(/*timestamp=*/100, android::view::DISPLAY_STATE_ON); in TEST()
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 1150 CreateScreenStateChangedEvent(timeBase2 + 200, android::view::DISPLAY_STATE_ON); in TEST() 1252 screenOnEvent = CreateScreenStateChangedEvent(timeBase3 + 100 * NS_PER_SEC, in TEST() 1514 CreateScreenStateChangedEvent(timeBase2 + 200, android::view::DISPLAY_STATE_ON); in TEST() 1596 screenOnEvent = CreateScreenStateChangedEvent(timeBase3 + 100 * NS_PER_SEC, in TEST()
|
D | statsd_test_util.h | 442 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs,
|
D | statsd_test_util.cpp | 950 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs, in CreateScreenStateChangedEvent() function
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | NumericValueMetricProducer_test.cpp | 4065 auto screenEvent = CreateScreenStateChangedEvent( in TEST() 4098 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 10 * NS_PER_SEC, in TEST() 4140 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 15 * NS_PER_SEC, in TEST() 4339 auto screenEvent = CreateScreenStateChangedEvent( in TEST() 4372 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 10 * NS_PER_SEC, in TEST() 4405 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 12 * NS_PER_SEC, in TEST() 4437 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 15 * NS_PER_SEC, in TEST() 7272 auto screenEvent = CreateScreenStateChangedEvent( in TEST() 7285 screenEvent = CreateScreenStateChangedEvent(bucket2StartTimeNs + 10 * NS_PER_SEC, in TEST() 7300 screenEvent = CreateScreenStateChangedEvent(bucket3StartTimeNs, in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 2148 CreateScreenStateChangedEvent(0, android::view::DisplayStateEnum::DISPLAY_STATE_ON); in TEST_F() 3760 unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST_F()
|