Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp141 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 …]
Ddb_benchmark.cpp34 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/
DGaugeMetric_e2e_pull_test.cpp99 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 …]
DDurationMetric_e2e_test.cpp70 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 …]
DAnomaly_duration_sum_e2e_test.cpp123 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()
DCountMetric_e2e_test.cpp97 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 …]
DMetricConditionLink_e2e_test.cpp127 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()
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()
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 …]
DWakelockDuration_e2e_test.cpp80 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()
DConfigUpdate_e2e_test.cpp134 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 …]
DMetricActivation_e2e_test.cpp321 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()
DStringReplace_e2e_test.cpp331 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp129 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/
DShellSubscriber_test.cpp127 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/
DSimpleConditionTracker_test.cpp154 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/
DStatsLogProcessor_test.cpp1150 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()
Dstatsd_test_util.h442 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs,
Dstatsd_test_util.cpp950 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs, in CreateScreenStateChangedEvent() function
/packages/modules/StatsD/statsd/tests/metrics/
DNumericValueMetricProducer_test.cpp4065 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/
Dconfig_update_utils_test.cpp2148 CreateScreenStateChangedEvent(0, android::view::DisplayStateEnum::DISPLAY_STATE_ON); in TEST_F()
3760 unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST_F()