Home
last modified time | relevance | path

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

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyEventDispatcher.java131 KeyEventFilter keyEventFilter = keyEventFilters.get(i); in notifyKeyEventLocked() local
132 if (keyEventFilter.onKeyEvent(localClone, localClone.getSequenceNumber())) { in notifyKeyEventLocked()
136 ArrayList<PendingKeyEvent> pendingEventList = mPendingEventsMap.get(keyEventFilter); in notifyKeyEventLocked()
139 mPendingEventsMap.put(keyEventFilter, pendingEventList); in notifyKeyEventLocked()
164 public void setOnKeyEventResult(KeyEventFilter keyEventFilter, boolean handled, int sequence) { in setOnKeyEventResult() argument
167 removeEventFromListLocked(mPendingEventsMap.get(keyEventFilter), sequence); in setOnKeyEventResult()
189 public void flush(KeyEventFilter keyEventFilter) { in flush() argument
191 List<PendingKeyEvent> pendingEvents = mPendingEventsMap.get(keyEventFilter); in flush()
197 mPendingEventsMap.remove(keyEventFilter); in flush()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java118 KeyEventFilter keyEventFilter = mock(KeyEventFilter.class); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse() local
119 when(keyEventFilter.onKeyEvent((KeyEvent) anyObject(), anyInt())).thenReturn(false); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()
121 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(keyEventFilter))); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()