Home
last modified time | relevance | path

Searched refs:CreateScreenStateChangedEvent (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/cmds/statsd/benchmark/
Dduration_metric_benchmark.cpp142 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 …]
Dmetric_util.h102 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(
Dmetric_util.cpp272 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent( in CreateScreenStateChangedEvent() function
/frameworks/base/cmds/statsd/tests/e2e/
DCountMetric_e2e_test.cpp98 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 …]
DDurationMetric_e2e_test.cpp71 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 …]
DGaugeMetric_e2e_pull_test.cpp98 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 …]
DValueMetric_pull_e2e_test.cpp179 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 …]
DAnomaly_duration_sum_e2e_test.cpp114 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()
DMetricConditionLink_e2e_test.cpp128 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()
DWakelockDuration_e2e_test.cpp81 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()
DMetricActivation_e2e_test.cpp319 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/
DStateTracker_test.cpp127 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/
DSimpleConditionTracker_test.cpp144 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/
DShellSubscriber_test.cpp129 std::unique_ptr<LogEvent> logEvent = CreateScreenStateChangedEvent( in TEST()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h249 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs,
DStatsLogProcessor_test.cpp1026 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()
Dstatsd_test_util.cpp646 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs, in CreateScreenStateChangedEvent() function
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp4051 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()