Home
last modified time | relevance | path

Searched refs:event3 (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/cmds/statsd/tests/metrics/
DCountMetricProducer_test.cpp94 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 …]
DDurationMetricProducer_test.cpp111 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()
DGaugeMetricProducer_test.cpp248 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()
DValueMetricProducer_test.cpp695 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/
DLogEvent_test.cpp540 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 …]
DLogEntryMatcher_test.cpp626 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/
DStateTracker_test.cpp97 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()
DSimpleConditionTracker_test.cpp351 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/
DContentCaptureEventTest.java256 final ContentCaptureEvent event3 = new ContentCaptureEvent(17, TYPE_VIEW_DISAPPEARED) in testMergeEvent_typeViewDisappeared() local
262 event2.mergeEvent(event3); in testMergeEvent_typeViewDisappeared()