Home
last modified time | relevance | path

Searched refs:keyEventCaptor (Results 1 – 2 of 2) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java133 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testInputConnectionWrapper() local
134 verify(inputConnection, times(1)).sendKeyEvent(keyEventCaptor.capture()); in testInputConnectionWrapper()
135 assertEquals(KeyEvent.ACTION_DOWN, keyEventCaptor.getValue().getAction()); in testInputConnectionWrapper()
136 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3057 ArgumentCaptor<KeyEvent> keyEventCaptor = ArgumentCaptor.forClass(KeyEvent.class); in testDispatchKeyEvent() local
3059 keyEventCaptor.capture()); in testDispatchKeyEvent()
3060 assertEquals(KeyEvent.ACTION_UP, keyEventCaptor.getValue().getAction()); in testDispatchKeyEvent()
3061 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testDispatchKeyEvent()