Searched refs:expectedKeyEvent (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceMultiDeviceKeyEventTest.java | 203 private void assertReceivedKeyEvent(@NonNull KeyEvent expectedKeyEvent) { in assertReceivedKeyEvent() argument 204 assertNotEquals(expectedKeyEvent.getKeyCode(), KeyEvent.KEYCODE_UNKNOWN); in assertReceivedKeyEvent() 207 String log = "Expected " + expectedKeyEvent + " Received " + receivedKeyEvent; in assertReceivedKeyEvent() 209 assertEquals("DeviceId: " + log, expectedKeyEvent.getDeviceId(), in assertReceivedKeyEvent() 211 assertEquals("Action: " + log, expectedKeyEvent.getAction(), in assertReceivedKeyEvent() 213 assertEquals("Source: " + log, expectedKeyEvent.getSource(), in assertReceivedKeyEvent() 215 assertEquals("KeyCode: " + log, expectedKeyEvent.getKeyCode(), in assertReceivedKeyEvent() 217 assertEquals("RepeatCount: " + log, expectedKeyEvent.getRepeatCount(), in assertReceivedKeyEvent()
|
D | InputDeviceKeyLayoutMapTest.java | 148 private void assertReceivedKeyEvent(@NonNull KeyEvent expectedKeyEvent) { in assertReceivedKeyEvent() argument 149 if (expectedKeyEvent.getKeyCode() == KeyEvent.KEYCODE_UNKNOWN) { in assertReceivedKeyEvent() 154 String log = "Expected " + expectedKeyEvent + " Received " + receivedKeyEvent; in assertReceivedKeyEvent() 156 assertEquals(log, expectedKeyEvent.getAction(), receivedKeyEvent.getAction()); in assertReceivedKeyEvent() 157 assertEquals(log, expectedKeyEvent.getSource(), receivedKeyEvent.getSource()); in assertReceivedKeyEvent() 158 assertEquals(log, expectedKeyEvent.getKeyCode(), receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent() 159 assertEquals(log, expectedKeyEvent.getMetaState(), receivedKeyEvent.getMetaState()); in assertReceivedKeyEvent()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputTestCase.java | 121 private void assertReceivedKeyEvent(@NonNull KeyEvent expectedKeyEvent) { in assertReceivedKeyEvent() argument 124 failWithMessage("Did not receive " + expectedKeyEvent); in assertReceivedKeyEvent() 127 expectedKeyEvent.getAction(), receivedKeyEvent.getAction()); in assertReceivedKeyEvent() 128 assertSource(mCurrentTestCase, expectedKeyEvent, receivedKeyEvent); in assertReceivedKeyEvent() 130 expectedKeyEvent.getKeyCode(), receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent() 131 assertMetaState(mCurrentTestCase, expectedKeyEvent.getMetaState(), in assertReceivedKeyEvent()
|