/frameworks/base/cmds/statsd/tests/metrics/ |
D | EventMetricProducer_test.cpp | 47 LogEvent event2(1 /*tag id*/, bucketStartTimeNs + 2); in TEST() local 55 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST() 71 LogEvent event2(1, bucketStartTimeNs + 10); in TEST() local 82 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST() 109 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST() local 110 EXPECT_TRUE(event2.write("222")); in TEST() 111 event2.init(); in TEST() 123 eventProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST()
|
D | CountMetricProducer_test.cpp | 53 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST() local 54 event2.init(); in TEST() 64 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() 117 LogEvent event2(1, bucketStartTimeNs + 10); in TEST() local 118 event2.init(); in TEST() 131 countProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST() 171 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST() local 172 event2.write("222"); // uid in TEST() 173 event2.init(); in TEST() 191 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() [all …]
|
D | GaugeMetricProducer_test.cpp | 92 std::shared_ptr<LogEvent> event2 = in TEST() local 94 event2->write(24); in TEST() 95 event2->write("some value"); in TEST() 96 event2->write(25); in TEST() 97 event2->init(); in TEST() 98 allData.push_back(event2); in TEST() 169 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 59 * NS_PER_SEC); in TEST() local 170 event2->write(1); in TEST() 171 event2->write(10); in TEST() 172 event2->init(); in TEST() [all …]
|
D | ValueMetricProducer_test.cpp | 385 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 59 * NS_PER_SEC); in TEST() local 386 event2->write(1); in TEST() 387 event2->write(10); in TEST() 388 event2->init(); in TEST() 389 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event2); in TEST() 528 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 20); in TEST() local 529 event2->write(1); in TEST() 530 event2->write(20); in TEST() 531 event2->init(); in TEST() 538 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event2); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 55 LogEvent event2(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST() local 56 event2.init(); in TEST() 65 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST() 93 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST() local 94 event2.init(); in TEST() 110 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST()
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | StateTracker_test.cpp | 87 LogEvent event2(kUidProcTag, 0 /*timestamp*/); in TEST() local 88 makeUidProcStateEvent(uid1, state2, &event2); in TEST() 92 tracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, changedCache); in TEST()
|
D | SimpleConditionTracker_test.cpp | 330 LogEvent event2(1 /*tagId*/, 0 /*timestamp*/); in TEST() local 331 makeWakeLockEvent(&event2, uids, "wl2", 1); in TEST() 337 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST() 454 LogEvent event2(1 /*tagId*/, 0 /*timestamp*/); in TEST() local 455 makeWakeLockEvent(&event2, uid_list2, uid2_wl1, 1); in TEST() 461 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST() 564 LogEvent event2(1 /*tagId*/, 0 /*timestamp*/); in TEST() local 565 makeWakeLockEvent(&event2, uid_list2, "wl2", 1); in TEST() 572 conditionTracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, in TEST()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 551 BrightnessChangeEvent event2 = BrightnessChangeEvent.CREATOR.createFromParcel(parcel); in testParcelUnParcel() local 553 assertEquals(event.brightness, event2.brightness, FLOAT_DELTA); in testParcelUnParcel() 554 assertEquals(event.timeStamp, event2.timeStamp); in testParcelUnParcel() 555 assertEquals(event.packageName, event2.packageName); in testParcelUnParcel() 556 assertEquals(event.userId, event2.userId); in testParcelUnParcel() 557 assertArrayEquals(event.luxValues, event2.luxValues, FLOAT_DELTA); in testParcelUnParcel() 558 assertArrayEquals(event.luxTimestamps, event2.luxTimestamps); in testParcelUnParcel() 559 assertEquals(event.batteryLevel, event2.batteryLevel, FLOAT_DELTA); in testParcelUnParcel() 560 assertEquals(event.nightMode, event2.nightMode); in testParcelUnParcel() 561 assertEquals(event.colorTemperature, event2.colorTemperature); in testParcelUnParcel() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 232 LogEvent event2(0, 2, 1002); in TEST() local 233 event2.init(); in TEST() 260 p.OnLogEvent(&event2, false); in TEST() 277 p.OnLogEvent(&event2, true); in TEST()
|
D | LogEntryMatcher_test.cpp | 612 LogEvent event2(TAG_ID, 0); in TEST() local 613 event2.write(9.9f); in TEST() 614 event2.init(); in TEST() 615 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 524 for (KeyEvent event2 : events) { 530 KeyEvent event = KeyEvent.changeTimeRepeat(event2,
|