Lines Matching refs:keyEvent
46 import android.view.KeyEvent;
64 private final KeyEvent mKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, 0x40);
65 private final KeyEvent mOtherKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, 0x50);
96 when(mKeyEventFilter1.onKeyEvent((KeyEvent) anyObject(),
101 when(mKeyEventFilter2.onKeyEvent((KeyEvent) anyObject(),
115 when(keyEventFilter.onKeyEvent((KeyEvent) anyObject(), anyInt())).thenReturn(false);
541 private void assertOneKeyEventSentToFramework(KeyEvent event) {
549 private void assertTwoKeyEventsSentToFrameworkInOrder(KeyEvent first, KeyEvent second) {
562 private class KeyEventMatcher extends TypeSafeMatcher<KeyEvent> {
563 private KeyEvent mEventToMatch;
565 KeyEventMatcher(KeyEvent eventToMatch) {
570 public boolean matchesSafely(KeyEvent keyEvent) {
571 return (mEventToMatch.getAction() == keyEvent.getAction())
572 && (mEventToMatch.getKeyCode() == keyEvent.getKeyCode());