Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DVerifiedKeyEventTest.kt147 private fun compareVerifiedKeyEvents(event1: VerifiedKeyEvent, event2: VerifiedKeyEvent) { in compareVerifiedKeyEvents()
148 assertEquals(event1, event2) in compareVerifiedKeyEvents()
149 assertEquals(event1.hashCode(), event2.hashCode()) in compareVerifiedKeyEvents()
151 assertEquals(event1.deviceId, event2.deviceId) in compareVerifiedKeyEvents()
152 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedKeyEvents()
153 assertEquals(event1.source, event2.source) in compareVerifiedKeyEvents()
154 assertEquals(event1.displayId, event2.displayId) in compareVerifiedKeyEvents()
156 assertEquals(event1.action, event2.action) in compareVerifiedKeyEvents()
157 assertEquals(event1.downTimeNanos, event2.downTimeNanos) in compareVerifiedKeyEvents()
158 assertEquals(event1.flags, event2.flags) in compareVerifiedKeyEvents()
[all …]
DVerifiedMotionEventTest.kt170 event2: VerifiedMotionEvent in compareVerifiedMotionEvents()
172 assertEquals(event1, event2) in compareVerifiedMotionEvents()
173 assertEquals(event1.hashCode(), event2.hashCode()) in compareVerifiedMotionEvents()
175 assertEquals(event1.deviceId, event2.deviceId) in compareVerifiedMotionEvents()
176 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedMotionEvents()
177 assertEquals(event1.source, event2.source) in compareVerifiedMotionEvents()
178 assertEquals(event1.displayId, event2.displayId) in compareVerifiedMotionEvents()
180 assertEquals(event1.rawX, event2.rawX, 0f) in compareVerifiedMotionEvents()
181 assertEquals(event1.rawY, event2.rawY, 0f) in compareVerifiedMotionEvents()
182 assertEquals(event1.actionMasked, event2.actionMasked) in compareVerifiedMotionEvents()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java70 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_singleTap() local
71 mTouchState.update(event2, mConfig); in testUpdate_singleTap()
91 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_sameArea() local
92 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_sameArea()
113 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_notSameArea() local
114 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_notSameArea()
142 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_delayAfterFirstDownEvent() local
143 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_delayAfterFirstDownEvent()
166 MotionEvent event2 = moveEvent(event1Time, event2Time, 200f, 31f); in testUpdate_quickTapAfterDrag() local
167 mTouchState.update(event2, mConfig); in testUpdate_quickTapAfterDrag()
[all …]
DEditorCursorDragTest.java302 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 50f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() local
303 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_quickTapAfterDrag()
357 MotionEvent event2 = mouseMoveEvent(tv, event1Time, event2Time, 120f, 30f); in testEditor_onTouchEvent_mouseDrag() local
358 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_mouseDrag()
386 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 21f, 30f); in testEditor_onTouchEvent_cursorDrag() local
387 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_cursorDrag()
421 MotionEvent event2 = upEvent(tv, event1Time, event2Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag() local
422 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_selectionDrag()
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureEventTest.java240 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()
245 assertThat(event.hasComposingSpan()).isEqualTo(event2.hasComposingSpan()); in testMergeEvent_typeViewTextChanged()
252 final ContentCaptureEvent event2 = new ContentCaptureEvent(43, TYPE_VIEW_DISAPPEARED) in testMergeEvent_typeViewDisappeared() local
260 event.mergeEvent(event2); in testMergeEvent_typeViewDisappeared()
263 event2.mergeEvent(event3); in testMergeEvent_typeViewDisappeared()
264 assertThat(event2.getIds()).containsExactly(new AutofillId(2), new AutofillId(3), in testMergeEvent_typeViewDisappeared()
272 final ContentCaptureEvent event2 = new ContentCaptureEvent(43, TYPE_VIEW_DISAPPEARED); in testMergeEvent_typeViewDisappeared_noIds() local
274 assertThrows(IllegalArgumentException.class, () -> event.mergeEvent(event2)); in testMergeEvent_typeViewDisappeared_noIds()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java720 BrightnessChangeEvent event2 = BrightnessChangeEvent.CREATOR.createFromParcel(parcel); in testParcelUnParcel() local
722 assertEquals(event.brightness, event2.brightness, FLOAT_DELTA); in testParcelUnParcel()
723 assertEquals(event.timeStamp, event2.timeStamp); in testParcelUnParcel()
724 assertEquals(event.packageName, event2.packageName); in testParcelUnParcel()
725 assertEquals(event.userId, event2.userId); in testParcelUnParcel()
726 assertEquals(event.uniqueDisplayId, event2.uniqueDisplayId); in testParcelUnParcel()
727 assertArrayEquals(event.luxValues, event2.luxValues, FLOAT_DELTA); in testParcelUnParcel()
728 assertArrayEquals(event.luxTimestamps, event2.luxTimestamps); in testParcelUnParcel()
729 assertEquals(event.batteryLevel, event2.batteryLevel, FLOAT_DELTA); in testParcelUnParcel()
730 assertEquals(event.nightMode, event2.nightMode); in testParcelUnParcel()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DDeviceStateProviderImplTest.java299 SensorEvent event2 = mock(SensorEvent.class); in create_sensor() local
300 event2.sensor = sensor; in create_sensor()
301 FieldSetter.setField(event2, event2.getClass().getField("values"), new float[]{0}); in create_sensor()
303 provider.onSensorChanged(event2); in create_sensor()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java524 for (KeyEvent event2 : events) {
530 KeyEvent event = KeyEvent.changeTimeRepeat(event2,
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTimelineTest.cpp1051 const auto& event2 = packet2.frame_timeline_event(); in TEST_F() local
1052 ASSERT_TRUE(event2.has_actual_display_frame_start()); in TEST_F()
1053 const auto& actualDisplayFrameStart = event2.actual_display_frame_start(); in TEST_F()