Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DKeyEventDispatcherTest.java136 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 KeyEventDispatcherTest
585 KeyEventMatcher(KeyEvent eventToMatch) { in KeyEventMatcher() method in KeyEventDispatcherTest.KeyEventMatcher
H A DKeyboardInterceptorTest.java196 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 KeyboardInterceptorTest
203 public KeyEventMatcher(KeyEvent eventToMatch) { in KeyEventMatcher() method in KeyboardInterceptorTest.KeyEventMatcher