Searched refs:keyEventFilter (Results 1 – 2 of 2) sorted by relevance
131 KeyEventFilter keyEventFilter = keyEventFilters.get(i); in notifyKeyEventLocked() local132 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() argument167 removeEventFromListLocked(mPendingEventsMap.get(keyEventFilter), sequence); in setOnKeyEventResult()189 public void flush(KeyEventFilter keyEventFilter) { in flush() argument191 List<PendingKeyEvent> pendingEvents = mPendingEventsMap.get(keyEventFilter); in flush()197 mPendingEventsMap.remove(keyEventFilter); in flush()
118 KeyEventFilter keyEventFilter = mock(KeyEventFilter.class); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse() local119 when(keyEventFilter.onKeyEvent((KeyEvent) anyObject(), anyInt())).thenReturn(false); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()121 .notifyKeyEventLocked(mKeyEvent, 0, Arrays.asList(keyEventFilter))); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()