/frameworks/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 26 LogEvent event1(1, 2000); in TEST() local 40 event1.write(nodes); in TEST() 41 event1.write("hello"); in TEST() 42 event1.write((int32_t)10); in TEST() 43 event1.write((int64_t)20); in TEST() 44 event1.write((float)1.1); in TEST() 45 event1.init(); in TEST() 47 const auto& items = event1.getValues(); in TEST() 49 EXPECT_EQ(1, event1.GetTagId()); in TEST() 51 const FieldValue& item0 = event1.getValues()[0]; in TEST() [all …]
|
D | StatsLogProcessor_test.cpp | 229 LogEvent event1(0, 1 /*logd timestamp*/, 1001 /*elapsedRealtime*/); in TEST() local 230 event1.init(); in TEST() 255 p.OnLogEvent(&event1, true); in TEST()
|
D | LogEntryMatcher_test.cpp | 606 LogEvent event1(TAG_ID, 0); in TEST() local 608 event1.write(10.1f); in TEST() 609 event1.init(); in TEST() 610 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | EventMetricProducer_test.cpp | 46 LogEvent event1(1 /*tag id*/, bucketStartTimeNs + 1); in TEST() local 54 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 70 LogEvent event1(1, bucketStartTimeNs + 1); in TEST() local 78 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 103 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 104 EXPECT_TRUE(event1.write("111")); in TEST() 105 event1.init(); in TEST() 122 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST()
|
D | CountMetricProducer_test.cpp | 51 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 52 event1.init(); in TEST() 63 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() 114 LogEvent event1(1, bucketStartTimeNs + 1); in TEST() local 115 event1.init(); in TEST() 126 countProducer.onMatchedLogEvent(1 /*matcher index*/, event1); in TEST() 164 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 165 event1.write("111"); // uid in TEST() 166 event1.init(); in TEST() 187 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 53 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 54 event1.init(); in TEST() 64 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST() 91 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST() local 92 event1.init(); in TEST() 109 durationProducer.onMatchedLogEvent(1 /* start index*/, event1); in TEST() 296 LogEvent event1(tagId, startTimeNs); in TEST() local 297 event1.write("111"); // uid in TEST() 298 event1.init(); in TEST() 344 LogEvent event1(tagId, startTimeNs); in TEST() local [all …]
|
D | GaugeMetricProducer_test.cpp | 153 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 154 event1->write(1); in TEST() 155 event1->write(10); in TEST() 156 event1->init(); in TEST() 157 gaugeProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() 449 std::shared_ptr<LogEvent> event1 = std::make_shared<LogEvent>(tagId, bucketStartTimeNs + 1); in TEST() local 450 event1->write("some value"); in TEST() 451 event1->write(13); in TEST() 452 event1->init(); in TEST() 454 gaugeProducer.onDataPulled({event1}); in TEST()
|
D | ValueMetricProducer_test.cpp | 374 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 375 event1->write(1); in TEST() 376 event1->write(10); in TEST() 377 event1->init(); in TEST() 378 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() 524 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST() local 525 event1->write(1); in TEST() 526 event1->write(10); in TEST() 527 event1->init(); in TEST() 532 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event1); in TEST() [all …]
|