Home
last modified time | relevance | path

Searched refs:expectedKeyEvent (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceMultiDeviceKeyEventTest.java182 private void assertReceivedKeyEvent(@NonNull KeyEvent expectedKeyEvent) { in assertReceivedKeyEvent() argument
183 assertNotEquals(expectedKeyEvent.getKeyCode(), KeyEvent.KEYCODE_UNKNOWN); in assertReceivedKeyEvent()
186 String log = "Expected " + expectedKeyEvent + " Received " + receivedKeyEvent; in assertReceivedKeyEvent()
188 assertEquals("DeviceId: " + log, expectedKeyEvent.getDeviceId(), in assertReceivedKeyEvent()
190 assertEquals("Action: " + log, expectedKeyEvent.getAction(), in assertReceivedKeyEvent()
192 assertEquals("Source: " + log, expectedKeyEvent.getSource(), in assertReceivedKeyEvent()
194 assertEquals("KeyCode: " + log, expectedKeyEvent.getKeyCode(), in assertReceivedKeyEvent()
196 assertEquals("RepeatCount: " + log, expectedKeyEvent.getRepeatCount(), in assertReceivedKeyEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java137 private void assertReceivedKeyEvent(@NonNull KeyEvent expectedKeyEvent) { in assertReceivedKeyEvent() argument
140 failWithMessage("Did not receive " + expectedKeyEvent); in assertReceivedKeyEvent()
143 expectedKeyEvent.getAction(), receivedKeyEvent.getAction()); in assertReceivedKeyEvent()
144 assertSource(mCurrentTestCase, expectedKeyEvent, receivedKeyEvent); in assertReceivedKeyEvent()
146 + KeyEvent.keyCodeToString(expectedKeyEvent.getKeyCode()) + " received: " in assertReceivedKeyEvent()
148 expectedKeyEvent.getKeyCode(), receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
149 assertMetaState(mCurrentTestCase, expectedKeyEvent.getMetaState(), in assertReceivedKeyEvent()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionEndToEndTest.java4430 final KeyEvent expectedKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_X);
4451 final ImeCommand command = session.callSendKeyEvent(expectedKeyEvent);
4457 assertEquals(expectedKeyEvent.getAction(), actualKeyEvent.getAction());
4458 assertEquals(expectedKeyEvent.getKeyCode(), actualKeyEvent.getKeyCode());
4517 final KeyEvent expectedKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_X);
4538 final var command = session.callSendKeyEvent(expectedKeyEvent);
4543 assertEquals(expectedKeyEvent.getAction(), actualKeyEvent.getAction());
4544 assertEquals(expectedKeyEvent.getKeyCode(), actualKeyEvent.getKeyCode());