Searched refs:keyEventCaptor (Results 1 – 2 of 2) sorted by relevance
132 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testInputConnectionWrapper() local133 verify(inputConnection, times(1)).sendKeyEvent(keyEventCaptor.capture()); in testInputConnectionWrapper()134 assertEquals(KeyEvent.ACTION_DOWN, keyEventCaptor.getValue().getAction()); in testInputConnectionWrapper()135 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
2889 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testDispatchKeyEvent() local2891 keyEventCaptor.capture()); in testDispatchKeyEvent()2892 assertEquals(KeyEvent.ACTION_UP, keyEventCaptor.getValue().getAction()); in testDispatchKeyEvent()2893 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testDispatchKeyEvent()