/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 | 66 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST() local 67 event2.init(); in TEST() 76 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() 129 LogEvent event2(1, bucketStartTimeNs + 10); in TEST() local 130 event2.init(); in TEST() 142 countProducer.onMatchedLogEvent(1 /*matcher index*/, event2); in TEST() 182 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST() local 183 event2.write("222"); // uid in TEST() 184 event2.init(); in TEST() 201 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() [all …]
|
D | ValueMetricProducer_test.cpp | 686 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 59 * NS_PER_SEC); in TEST() local 687 event2->write(1); in TEST() 688 event2->write(10); in TEST() 689 event2->init(); in TEST() 690 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event2); in TEST() 863 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 20); in TEST() local 864 event2->write(1); in TEST() 865 event2->write(20); in TEST() 866 event2->init(); in TEST() 874 valueProducer.onMatchedLogEvent(1 /*log matcher index*/, *event2); in TEST() [all …]
|
D | GaugeMetricProducer_test.cpp | 152 std::shared_ptr<LogEvent> event2 = std::make_shared<LogEvent>(tagId, bucket3StartTimeNs + 10); in TEST() local 153 event2->write(24); in TEST() 154 event2->write("some value"); in TEST() 155 event2->write(25); in TEST() 156 event2->init(); in TEST() 157 allData.push_back(event2); in TEST() 235 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 59 * NS_PER_SEC); in TEST() local 236 event2->write(1); in TEST() 237 event2->write(10); in TEST() 238 event2->init(); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 72 LogEvent event2(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST() local 73 event2.init(); in TEST() 81 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST() 109 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST() local 110 event2.init(); in TEST() 126 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST() 157 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST() local 158 event2.init(); in TEST() 173 durationProducer.onMatchedLogEvent(2 /* stop index*/, event2); in TEST()
|
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/ |
D | ContentCaptureEventTest.java | 240 final ContentCaptureEvent event2 = new ContentCaptureEvent(43, TYPE_VIEW_TEXT_CHANGED) in testMergeEvent_typeViewTextChanged() local 243 event.mergeEvent(event2); in testMergeEvent_typeViewTextChanged() 244 assertThat(event.getText()).isEqualTo(event2.getText()); in testMergeEvent_typeViewTextChanged() 251 final ContentCaptureEvent event2 = new ContentCaptureEvent(43, TYPE_VIEW_DISAPPEARED) in testMergeEvent_typeViewDisappeared() local 259 event.mergeEvent(event2); in testMergeEvent_typeViewDisappeared() 262 event2.mergeEvent(event3); in testMergeEvent_typeViewDisappeared() 263 assertThat(event2.getIds()).containsExactly(new AutofillId(2), new AutofillId(3), in testMergeEvent_typeViewDisappeared() 271 final ContentCaptureEvent event2 = new ContentCaptureEvent(43, TYPE_VIEW_DISAPPEARED); in testMergeEvent_typeViewDisappeared_noIds() local 273 assertThrows(IllegalArgumentException.class, () -> event.mergeEvent(event2)); in testMergeEvent_typeViewDisappeared_noIds() 286 final ContentCaptureEvent event2 = new ContentCaptureEvent(17, TYPE_VIEW_TEXT_CHANGED) in testMergeEvent_differentEventTypes() local [all …]
|
/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 | 653 BrightnessChangeEvent event2 = BrightnessChangeEvent.CREATOR.createFromParcel(parcel); in testParcelUnParcel() local 655 assertEquals(event.brightness, event2.brightness, FLOAT_DELTA); in testParcelUnParcel() 656 assertEquals(event.timeStamp, event2.timeStamp); in testParcelUnParcel() 657 assertEquals(event.packageName, event2.packageName); in testParcelUnParcel() 658 assertEquals(event.userId, event2.userId); in testParcelUnParcel() 659 assertArrayEquals(event.luxValues, event2.luxValues, FLOAT_DELTA); in testParcelUnParcel() 660 assertArrayEquals(event.luxTimestamps, event2.luxTimestamps); in testParcelUnParcel() 661 assertEquals(event.batteryLevel, event2.batteryLevel, FLOAT_DELTA); in testParcelUnParcel() 662 assertEquals(event.nightMode, event2.nightMode); in testParcelUnParcel() 663 assertEquals(event.colorTemperature, event2.colorTemperature); in testParcelUnParcel() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 525 LogEvent event2(statsLogEventWrapper, 1); in TEST() local 527 EXPECT_EQ(1, event2.GetTagId()); in TEST() 528 EXPECT_EQ(1111L, event2.GetElapsedTimestampNs()); in TEST() 529 EXPECT_EQ(2222L, event2.GetLogdTimestampNs()); in TEST() 530 EXPECT_EQ(4, event2.size()); in TEST() 531 EXPECT_EQ(3, event2.getValues()[0].mValue.int_value); in TEST() 532 EXPECT_EQ(0x2010101, event2.getValues()[0].mField.getField()); in TEST() 533 EXPECT_EQ("tag3", event2.getValues()[1].mValue.str_value); in TEST() 534 EXPECT_EQ(0x2018182, event2.getValues()[1].mField.getField()); in TEST() 535 EXPECT_EQ(6, event2.getValues()[2].mValue.int_value); in TEST() [all …]
|
D | LogEntryMatcher_test.cpp | 621 LogEvent event2(TAG_ID, 0); in TEST() local 622 event2.write(9.9f); in TEST() 623 event2.init(); in TEST() 624 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarStatusBar.java | 1528 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument 1539 setNotificationViewClipBounds((int) event2.getRawY()); in onScroll() 1543 calculatePercentageFromBottom(event2.getRawY()); in onScroll() 1551 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument 1581 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, in onScroll() argument 1588 mNotificationView.getHeight() - (event1.getRawY() - event2.getRawY()); in onScroll() 1617 public boolean onFling(MotionEvent event1, MotionEvent event2, in onFling() argument 1623 if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH in onFling() 1657 public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, 1659 calculatePercentageFromBottom(event2.getRawY()); [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestTrivialModel.cpp | 235 ANeuralNetworksEvent* event2; in TEST_F() local 238 0, &event2), in TEST_F() 241 ASSERT_EQ(ANeuralNetworksEvent_wait(event2), ANEURALNETWORKS_NO_ERROR); in TEST_F() 249 ANeuralNetworksEvent_free(event2); in TEST_F()
|
D | TestValidation.cpp | 1842 ANeuralNetworksEvent* event2 = nullptr; in TEST_F() local 1845 ANeuralNetworksExecution_startComputeWithDependencies(nullptr, &event1, 1, 0, &event2), in TEST_F() 1848 &event2), in TEST_F() 1855 &event2), in TEST_F()
|
/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,
|