/frameworks/base/cmds/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 142 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 11, in BM_DurationMetricNoLink() 145 CreateScreenStateChangedEvent(bucketStartTimeNs + 40, android::view::DISPLAY_STATE_ON)); in BM_DurationMetricNoLink() 147 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 102, in BM_DurationMetricNoLink() 149 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 450, in BM_DurationMetricNoLink() 152 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 650, in BM_DurationMetricNoLink() 154 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 100, in BM_DurationMetricNoLink() 157 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 640, in BM_DurationMetricNoLink() 159 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 650, in BM_DurationMetricNoLink() 232 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 55, in BM_DurationMetricLink() 234 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 120, in BM_DurationMetricLink() [all …]
|
D | metric_util.h | 102 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(
|
D | metric_util.cpp | 272 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent( in CreateScreenStateChangedEvent() function
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | CountMetric_e2e_test.cpp | 98 CreateScreenStateChangedEvent(bucketStartTimeNs + 30, android::view::DISPLAY_STATE_ON); in TEST() 181 events.push_back(CreateScreenStateChangedEvent( in TEST() 186 events.push_back(CreateScreenStateChangedEvent( in TEST() 189 events.push_back(CreateScreenStateChangedEvent( in TEST() 200 events.push_back(CreateScreenStateChangedEvent( in TEST() 205 events.push_back(CreateScreenStateChangedEvent( in TEST() 348 events.push_back(CreateScreenStateChangedEvent( in TEST() 353 events.push_back(CreateScreenStateChangedEvent( in TEST() 358 events.push_back(CreateScreenStateChangedEvent( in TEST() 361 events.push_back(CreateScreenStateChangedEvent( in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 71 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 77 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 82 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 154 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 160 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 165 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 274 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * NS_PER_SEC, in TEST() 280 event = CreateScreenStateChangedEvent(durationStartNs, android::view::DISPLAY_STATE_ON); in TEST() 314 event = CreateScreenStateChangedEvent(durationEndNs, android::view::DISPLAY_STATE_OFF); in TEST() 319 event = CreateScreenStateChangedEvent(duration2StartNs, android::view::DISPLAY_STATE_ON); in TEST() [all …]
|
D | GaugeMetric_e2e_pull_test.cpp | 98 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 105 auto screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 10, in TEST() 109 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 100, in TEST() 119 screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 3 * bucketSizeNs + 2, in TEST() 126 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 5 * bucketSizeNs + 1, in TEST() 228 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 231 auto screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 10, in TEST() 235 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 100, in TEST() 239 screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 3 * bucketSizeNs + 2, in TEST() 243 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 5 * bucketSizeNs + 1, in TEST() [all …]
|
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() 337 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 341 CreateScreenStateChangedEvent(configAddedTimeNs + 65, android::view::DISPLAY_STATE_ON); in TEST() 345 CreateScreenStateChangedEvent(configAddedTimeNs + 75, android::view::DISPLAY_STATE_OFF); in TEST() [all …]
|
D | Anomaly_duration_sum_e2e_test.cpp | 114 auto screen_on_event = CreateScreenStateChangedEvent( in TEST() 116 auto screen_off_event = CreateScreenStateChangedEvent( in TEST() 222 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 20, in TEST() 239 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + NS_PER_SEC, in TEST() 247 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 2 * NS_PER_SEC + 1, in TEST() 259 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 2 * NS_PER_SEC + 2, in TEST() 295 auto screen_off_event = CreateScreenStateChangedEvent( in TEST() 416 auto screen_off_event = CreateScreenStateChangedEvent( in TEST()
|
D | MetricConditionLink_e2e_test.cpp | 128 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in TEST() 130 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in TEST() 133 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs - 100, in TEST() 247 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in TEST() 249 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in TEST() 252 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs - 100, in TEST()
|
D | WakelockDuration_e2e_test.cpp | 81 auto screenTurnedOnEvent = CreateScreenStateChangedEvent( in FeedEvents() 83 auto screenTurnedOffEvent = CreateScreenStateChangedEvent( in FeedEvents() 86 CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 500, in FeedEvents() 207 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 90, in TEST() 316 CreateScreenStateChangedEvent(bucketStartTimeNs + 2 * bucketSizeNs + 90, in TEST()
|
D | MetricActivation_e2e_test.cpp | 319 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 365 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 536 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 585 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 861 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 913 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST() 1170 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 10, android::view::DISPLAY_STATE_ON); in TEST() 1426 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST() 1511 event = CreateScreenStateChangedEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 10 + 10, in TEST()
|
/frameworks/base/cmds/statsd/tests/state/ |
D | StateTracker_test.cpp | 127 std::unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST() 137 event = CreateScreenStateChangedEvent( in TEST() 147 event = CreateScreenStateChangedEvent(timestampNs, in TEST() 157 event = CreateScreenStateChangedEvent( in TEST() 343 std::unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST() 499 std::unique_ptr<LogEvent> event5 = CreateScreenStateChangedEvent( in TEST()
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 144 CreateScreenStateChangedEvent(/*timestamp=*/50, android::view::DISPLAY_STATE_OFF); in TEST() 157 CreateScreenStateChangedEvent(/*timestamp=*/100, android::view::DISPLAY_STATE_ON); in TEST() 198 CreateScreenStateChangedEvent(/*timestamp=*/50, android::view::DISPLAY_STATE_OFF); in TEST() 211 CreateScreenStateChangedEvent(/*timestamp=*/100, android::view::DISPLAY_STATE_ON); in TEST()
|
/frameworks/base/cmds/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 129 std::unique_ptr<LogEvent> logEvent = CreateScreenStateChangedEvent( in TEST()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 249 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs,
|
D | StatsLogProcessor_test.cpp | 1026 CreateScreenStateChangedEvent(timeBase2 + 200, android::view::DISPLAY_STATE_ON); in TEST() 1128 screenOnEvent = CreateScreenStateChangedEvent(timeBase3 + 100 * NS_PER_SEC, in TEST() 1391 CreateScreenStateChangedEvent(timeBase2 + 200, android::view::DISPLAY_STATE_ON); in TEST() 1473 screenOnEvent = CreateScreenStateChangedEvent(timeBase3 + 100 * NS_PER_SEC, in TEST()
|
D | statsd_test_util.cpp | 646 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs, in CreateScreenStateChangedEvent() function
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 4051 auto screenEvent = CreateScreenStateChangedEvent( in TEST() 4073 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 10, in TEST() 4102 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 15, in TEST() 4262 auto screenEvent = CreateScreenStateChangedEvent( in TEST() 4285 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 10, in TEST() 4308 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 12, in TEST() 4330 screenEvent = CreateScreenStateChangedEvent(bucketStartTimeNs + 15, in TEST()
|