Searched refs:expectedKeyEvent (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceMultiDeviceKeyEventTest.java | 182 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/ |
D | InputTestCase.java | 137 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/ |
D | InputConnectionEndToEndTest.java | 4430 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());
|