Searched refs:keyEventCaptor (Results 1 – 2 of 2) sorted by relevance
141 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testInputConnectionWrapper() local142 verify(inputConnection, times(1)).sendKeyEvent(keyEventCaptor.capture()); in testInputConnectionWrapper()143 assertEquals(KeyEvent.ACTION_DOWN, keyEventCaptor.getValue().getAction()); in testInputConnectionWrapper()144 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
3251 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testDispatchKeyEvent() local3253 keyEventCaptor.capture()); in testDispatchKeyEvent()3254 assertEquals(KeyEvent.ACTION_UP, keyEventCaptor.getValue().getAction()); in testDispatchKeyEvent()3255 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testDispatchKeyEvent()