Searched refs:receivedEvent (Results 1 – 3 of 3) sorted by relevance
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 431 AccessibilityEvent receivedEvent = AccessibilityEvent.CREATOR.createFromParcel(parcel); in testMarshaling() local 434 assertEqualsAccessibilityEvent(sentEvent, receivedEvent); in testMarshaling() 624 AccessibilityEvent expectedEvent, AccessibilityEvent receivedEvent) { in assertEqualsAccessibilityEvent() argument 628 receivedEvent.getAddedCount()); in assertEqualsAccessibilityEvent() 632 receivedEvent.getBeforeText()); in assertEqualsAccessibilityEvent() 636 receivedEvent.isChecked()); in assertEqualsAccessibilityEvent() 640 receivedEvent.getClassName()); in assertEqualsAccessibilityEvent() 644 receivedEvent.getContentDescription()); in assertEqualsAccessibilityEvent() 648 receivedEvent.getCurrentItemIndex()); in assertEqualsAccessibilityEvent() 652 receivedEvent.isEnabled()); in assertEqualsAccessibilityEvent() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewUnbufferedTest.java | 145 final ReceivedEvent receivedEvent, final int[] offsets) { 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() 159 ReceivedEvent receivedEvent = receivedEvents.poll(); in compareEvents() local 160 compareEvent(sentEvent, receivedEvent, offsets); in compareEvents() 233 private boolean receivedEvent(MotionEvent event) { in receivedEvent() method in ViewUnbufferedTest 264 mView.setOnTouchListener((v, event) -> receivedEvent(event)); in testNormalTouch() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPropertyManagerTest.java | 949 assertThat(speedListenerUI.receivedEvent(vehicleSpeed)).isEqualTo(NO_EVENTS); in testRegisterCallback() 952 assertThat(speedListenerFast.receivedEvent(vehicleSpeed)).isEqualTo(NO_EVENTS); in testRegisterCallback() 962 assertThat(speedListenerUI.receivedEvent(vehicleSpeed)).isGreaterThan(NO_EVENTS); in testRegisterCallback() 963 assertThat(speedListenerFast.receivedEvent(vehicleSpeed)).isGreaterThan( in testRegisterCallback() 964 speedListenerUI.receivedEvent(vehicleSpeed)); in testRegisterCallback() 978 assertThat(nightModeListener.receivedEvent(nightMode)).isEqualTo(1); in testRegisterCallback() 1006 int currentEventNormal = speedListenerNormal.receivedEvent(vehicleSpeed); in testUnregisterCallback() 1007 int currentEventUI = speedListenerUI.receivedEvent(vehicleSpeed); in testUnregisterCallback() 1010 assertThat(speedListenerNormal.receivedEvent(vehicleSpeed)).isEqualTo(currentEventNormal); in testUnregisterCallback() 1011 assertThat(speedListenerUI.receivedEvent(vehicleSpeed)).isNotEqualTo(currentEventUI); in testUnregisterCallback() [all …]
|