/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 94 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST() local 95 event3.init(); in TEST() 97 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event3); in TEST() 267 LogEvent event3(tagId, bucketStartTimeNs + 62 * NS_PER_SEC + 10); in TEST() local 268 event3.write("333"); // uid in TEST() 269 event3.init(); in TEST() 270 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event3); in TEST() 316 LogEvent event3(tagId, bucketStartTimeNs + 121 * NS_PER_SEC + 10); in TEST() local 317 event3.write("333"); // uid in TEST() 318 event3.init(); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 111 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 1); in TEST() local 112 event3.init(); in TEST() 130 durationProducer.onMatchedLogEvent(1 /* start index*/, event3); in TEST() 159 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 1); in TEST() local 160 event3.init(); in TEST() 177 durationProducer.onMatchedLogEvent(1 /* start index*/, event3); in TEST()
|
D | GaugeMetricProducer_test.cpp | 248 shared_ptr<LogEvent> event3 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 65 * NS_PER_SEC); in TEST() local 249 event3->write(1); in TEST() 250 event3->write(10); in TEST() 251 event3->init(); in TEST() 252 gaugeProducer.onMatchedLogEvent(1 /*log matcher index*/, *event3); in TEST() 626 std::shared_ptr<LogEvent> event3 = in TEST() local 628 event3->write("some value"); in TEST() 629 event3->write(26); in TEST() 630 event3->init(); in TEST() 632 … gaugeProducer.onDataPulled({event3}, /** succeed */ true, bucket2StartTimeNs + 2 * bucketSizeNs); in TEST()
|
D | ValueMetricProducer_test.cpp | 695 shared_ptr<LogEvent> event3 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 65 * NS_PER_SEC); in TEST() local 696 event3->write(1); in TEST() 697 event3->write(10); in TEST() 698 event3->init(); in TEST() 699 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event3); in TEST() 925 shared_ptr<LogEvent> event3 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 30); in TEST() local 926 event3->write(1); in TEST() 927 event3->write(30); in TEST() 928 event3->init(); in TEST() 929 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event3); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 540 LogEvent event3(statsLogEventWrapper, 2); in TEST() local 542 EXPECT_EQ(1, event3.GetTagId()); in TEST() 543 EXPECT_EQ(1111L, event3.GetElapsedTimestampNs()); in TEST() 544 EXPECT_EQ(2222L, event3.GetLogdTimestampNs()); in TEST() 545 EXPECT_EQ(6, event3.size()); in TEST() 546 EXPECT_EQ(4, event3.getValues()[0].mValue.int_value); in TEST() 547 EXPECT_EQ(0x2010101, event3.getValues()[0].mField.getField()); in TEST() 548 EXPECT_EQ("", event3.getValues()[1].mValue.str_value); in TEST() 549 EXPECT_EQ(0x2010182, event3.getValues()[1].mField.getField()); in TEST() 550 EXPECT_EQ(5, event3.getValues()[2].mValue.int_value); in TEST() [all …]
|
D | LogEntryMatcher_test.cpp | 626 LogEvent event3(TAG_ID, 0); in TEST() local 627 event3.write(10.1f); in TEST() 628 event3.init(); in TEST() 630 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event3)); in TEST()
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | StateTracker_test.cpp | 97 LogEvent event3(kUidProcTag, 0 /*timestamp*/); in TEST() local 98 makeUidProcStateEvent(uid2, state1, &event3); in TEST() 101 tracker.evaluateCondition(event3, matcherState, allPredicates, conditionCache, changedCache); in TEST()
|
D | SimpleConditionTracker_test.cpp | 351 LogEvent event3(1 /*tagId*/, 0 /*timestamp*/); in TEST() local 352 makeWakeLockEvent(&event3, uids, "wl1", 0); // now release it. in TEST() 358 conditionTracker.evaluateCondition(event3, matcherState, allPredicates, conditionCache, in TEST() 466 LogEvent event3(1 /*tagId*/, 0 /*timestamp*/); in TEST() local 467 makeWakeLockEvent(&event3, uid_list1, uid1_wl1, 0); // now release it. in TEST() 473 conditionTracker.evaluateCondition(event3, matcherState, allPredicates, conditionCache, in TEST() 605 LogEvent event3(2 /*tagId*/, 0 /*timestamp*/); in TEST() local 613 conditionTracker.evaluateCondition(event3, matcherState, allPredicates, conditionCache, in TEST()
|
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/ |
D | ContentCaptureEventTest.java | 256 final ContentCaptureEvent event3 = new ContentCaptureEvent(17, TYPE_VIEW_DISAPPEARED) in testMergeEvent_typeViewDisappeared() local 262 event2.mergeEvent(event3); in testMergeEvent_typeViewDisappeared()
|