Searched refs:KeyEventMatcher (Results 1 – 2 of 2) sorted by relevance
136 verify(mKeyEventFilter1, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withOneValidService_shouldNotifyService()144 verify(mKeyEventFilter1, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withTwoValidService_shouldNotifyBoth()146 verify(mKeyEventFilter2, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withTwoValidService_shouldNotifyBoth()557 assertTrue(new KeyEventMatcher(event).matches(m.obj)); in assertOneKeyEventSentToFramework()566 assertTrue(new KeyEventMatcher(first).matches(m0.obj)); in assertTwoKeyEventsSentToFrameworkInOrder()571 assertTrue(new KeyEventMatcher(second).matches(m1.obj)); in assertTwoKeyEventsSentToFrameworkInOrder()582 private class KeyEventMatcher extends TypeSafeMatcher<KeyEvent> { class in KeyEventDispatcherTest585 KeyEventMatcher(KeyEvent eventToMatch) { in KeyEventMatcher() method in KeyEventDispatcherTest.KeyEventMatcher
196 private static KeyEventMatcher matchesKeyEvent(KeyEvent event) { in matchesKeyEvent()197 return new KeyEventMatcher(event); in matchesKeyEvent()200 private static class KeyEventMatcher extends TypeSafeMatcher<KeyEvent> { class in KeyboardInterceptorTest203 public KeyEventMatcher(KeyEvent eventToMatch) { in KeyEventMatcher() method in KeyboardInterceptorTest.KeyEventMatcher