Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualMouseRelativeEventTest.java39 final VirtualMouseRelativeEvent originalEvent = new VirtualMouseRelativeEvent.Builder() in parcelAndUnparcel_matches() local
45 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
49 assertWithMessage("Recreated event has different x").that(originalEvent.getRelativeX()) in parcelAndUnparcel_matches()
52 .that(originalEvent.getRelativeY()).isEqualTo(recreatedEvent.getRelativeY()); in parcelAndUnparcel_matches()
54 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualMouseScrollEventTest.java39 final VirtualMouseScrollEvent originalEvent = new VirtualMouseScrollEvent.Builder() in parcelAndUnparcel_matches() local
45 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
49 assertWithMessage("Recreated event has different x").that(originalEvent.getXAxisMovement()) in parcelAndUnparcel_matches()
52 .that(originalEvent.getYAxisMovement()) in parcelAndUnparcel_matches()
55 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualKeyEventTest.java37 final VirtualKeyEvent originalEvent = new VirtualKeyEvent.Builder() in parcelAndUnparcel_matches() local
43 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
47 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
49 assertWithMessage("Recreated event has different key code").that(originalEvent.getKeyCode()) in parcelAndUnparcel_matches()
52 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualMouseButtonEventTest.java36 final VirtualMouseButtonEvent originalEvent = new VirtualMouseButtonEvent.Builder() in parcelAndUnparcel_matches() local
42 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
46 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
49 .that(originalEvent.getButtonCode()).isEqualTo(recreatedEvent.getButtonCode()); in parcelAndUnparcel_matches()
51 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualTouchEventTest.java42 final VirtualTouchEvent originalEvent = new VirtualTouchEvent.Builder() in parcelAndUnparcel_matches() local
53 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
56 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
59 .that(originalEvent.getToolType()).isEqualTo(recreatedEvent.getToolType()); in parcelAndUnparcel_matches()
60 assertWithMessage("Recreated event has different x").that(originalEvent.getX()) in parcelAndUnparcel_matches()
62 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
65 .that(originalEvent.getPointerId()).isEqualTo(recreatedEvent.getPointerId()); in parcelAndUnparcel_matches()
67 .that(originalEvent.getPressure()).isEqualTo(recreatedEvent.getPressure()); in parcelAndUnparcel_matches()
69 .that(originalEvent.getMajorAxisSize()) in parcelAndUnparcel_matches()
72 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualStylusMotionEventTest.java51 final VirtualStylusMotionEvent originalEvent = new VirtualStylusMotionEvent.Builder() in parcelAndUnparcel_matches() local
63 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
68 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
71 .that(originalEvent.getToolType()).isEqualTo(recreatedEvent.getToolType()); in parcelAndUnparcel_matches()
72 assertWithMessage("Recreated event has different x").that(originalEvent.getX()) in parcelAndUnparcel_matches()
74 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
77 .that(originalEvent.getTiltX()).isEqualTo(recreatedEvent.getTiltX()); in parcelAndUnparcel_matches()
79 .that(originalEvent.getTiltY()).isEqualTo(recreatedEvent.getTiltY()); in parcelAndUnparcel_matches()
81 .that(originalEvent.getPressure()).isEqualTo(recreatedEvent.getPressure()); in parcelAndUnparcel_matches()
83 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
DVirtualStylusButtonEventTest.java45 final VirtualStylusButtonEvent originalEvent = new VirtualStylusButtonEvent.Builder() in parcelAndUnparcel_matches() local
52 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
57 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
60 .that(originalEvent.getButtonCode()).isEqualTo(recreatedEvent.getButtonCode()); in parcelAndUnparcel_matches()
62 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorEventTest.java42 final VirtualSensorEvent originalEvent = new VirtualSensorEvent.Builder(SENSOR_VALUES) in parcelAndUnparcel_matches() local
46 originalEvent.writeToParcel(parcel, /* flags= */ 0); in parcelAndUnparcel_matches()
50 assertThat(recreatedEvent.getValues()).isEqualTo(originalEvent.getValues()); in parcelAndUnparcel_matches()
51 assertThat(recreatedEvent.getTimestampNanos()).isEqualTo(originalEvent.getTimestampNanos()); in parcelAndUnparcel_matches()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java342 ContentCaptureEvent originalEvent) { in onContentCaptureEvent() argument
348 originalEvent.writeToParcel(parceled, 0); in onContentCaptureEvent()