Home
last modified time | relevance | path

Searched refs:sentEvent (Results 1 – 2 of 2) sorted by relevance

/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java424 AccessibilityEvent sentEvent = AccessibilityEvent.obtain(); in testMarshaling() local
425 fullyPopulateAccessibilityEvent(sentEvent); in testMarshaling()
429 sentEvent.writeToParcel(parcel, 0); in testMarshaling()
434 assertEqualsAccessibilityEvent(sentEvent, receivedEvent); in testMarshaling()
585 private void fullyPopulateAccessibilityEvent(AccessibilityEvent sentEvent) { in fullyPopulateAccessibilityEvent() argument
586 sentEvent.setAddedCount(1); in fullyPopulateAccessibilityEvent()
587 sentEvent.setBeforeText("BeforeText"); in fullyPopulateAccessibilityEvent()
588 sentEvent.setChecked(true); in fullyPopulateAccessibilityEvent()
589 sentEvent.setClassName("foo.bar.baz.Class"); in fullyPopulateAccessibilityEvent()
590 sentEvent.setContentDescription("ContentDescription"); in fullyPopulateAccessibilityEvent()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewUnbufferedTest.java144 private static void compareEvent(final MotionEvent sentEvent, in compareEvent() argument
146 assertEquals(sentEvent.getAction(), receivedEvent.mAction); in compareEvent()
147 assertEquals((int) sentEvent.getX(), receivedEvent.mX + offsets[0]); in compareEvent()
148 assertEquals((int) sentEvent.getY(), receivedEvent.mY + offsets[1]); in compareEvent()
149 assertEquals(sentEvent.getEventTime(), receivedEvent.mEventTime); in compareEvent()
150 assertEquals(sentEvent.getSource(), receivedEvent.mSource); in compareEvent()
158 MotionEvent sentEvent = sentEvents.poll(); in compareEvents() local
160 compareEvent(sentEvent, receivedEvent, offsets); in compareEvents()