/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 161 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_canRegisterAllEvents() local 169 mProjectionManager.addKeyEventHandler(events, DIRECT_EXECUTOR, eventHandler); in keyEventHandler_canRegisterAllEvents() 173 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents() 179 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_eventsOutOfRange_throw() local 183 mProjectionManager.addKeyEventHandler(Collections.singleton(-1), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 189 Collections.singleton(CarProjectionManager.NUM_KEY_EVENTS), eventHandler); in keyEventHandler_eventsOutOfRange_throw() local 196 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_whenRegisteredAgain_replacesEventList() local 198 InOrder inOrder = inOrder(eventHandler); in keyEventHandler_whenRegisteredAgain_replacesEventList() 203 eventHandler); in keyEventHandler_whenRegisteredAgain_replacesEventList() local 205 inOrder.verify(eventHandler) in keyEventHandler_whenRegisteredAgain_replacesEventList() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 161 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler() local 168 verify(eventHandler) in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler() 174 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() local 180 verify(eventHandler, never()).onKeyEvent(anyInt()); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 184 verify(eventHandler) in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 190 verify(eventHandler, never()) in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 235 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_keyDown_withEventHandler_triggersEventHandler() local 241 verify(eventHandler).onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_KEY_DOWN); in voiceKey_keyDown_withEventHandler_triggersEventHandler() 246 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_keyUp_afterLongPress_withEventHandler_triggersEventHandler() local 252 verify(eventHandler, never()) in voiceKey_keyUp_afterLongPress_withEventHandler_triggersEventHandler() [all …]
|
D | CarProjectionServiceTest.java | 266 ICarProjectionKeyEventHandler eventHandler = createMockKeyEventHandler(); in addedKeyEventHandler_getsDispatchedEvents() local 269 mService.registerKeyEventHandler(eventHandler, eventSet.toByteArray()); in addedKeyEventHandler_getsDispatchedEvents() 272 verify(eventHandler) in addedKeyEventHandler_getsDispatchedEvents()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 520 EventHandler eventHandler = entry.getValue(); in sendEvent() local 521 if (eventHandler != null in sendEvent() 522 && (eventHandler.getSupportedEventTypes() & event.eventType) != 0) { in sendEvent() 526 eventHandler.handleEvent(event); in sendEvent() 566 public void registerEventHandler(int key, EventHandler eventHandler) { in registerEventHandler() argument 569 mToBeAddedEventHandlers.put(key, eventHandler); in registerEventHandler() 571 eventHandlers.put(key, eventHandler); in registerEventHandler() 576 public void registerFirstEventHandler(int key, EventHandler eventHandler) { in registerFirstEventHandler() argument 578 registerEventHandler(key, eventHandler); in registerFirstEventHandler() 580 mToBeAddedFirstEventHandler = new Pair<Integer, EventHandler>(key, eventHandler); in registerFirstEventHandler() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | MpegTsMediaCodecAudioTrackRenderer.java | 49 Handler eventHandler, in MpegTsMediaCodecAudioTrackRenderer() argument 51 super(source, mediaCodecSelector, eventHandler, eventListener); in MpegTsMediaCodecAudioTrackRenderer() 71 if (eventHandler != null && mListener != null) { in notifyAudioTrackSetPlaybackParamsError() 72 eventHandler.post(() -> mListener.onAudioTrackSetPlaybackParamsError(e)); in notifyAudioTrackSetPlaybackParamsError()
|
D | MpegTsDefaultAudioTrackRenderer.java | 137 Handler eventHandler, in MpegTsDefaultAudioTrackRenderer() argument 141 mEventHandler = eventHandler; in MpegTsDefaultAudioTrackRenderer()
|
/packages/services/Car/car-lib/src/android/car/ |
D | CarProjectionManager.java | 357 @NonNull ProjectionKeyEventHandler eventHandler) { in addKeyEventHandler() argument 358 addKeyEventHandler(events, null, eventHandler); in addKeyEventHandler() 383 @NonNull ProjectionKeyEventHandler eventHandler) { in addKeyEventHandler() argument 391 removeKeyEventHandler(eventHandler); in addKeyEventHandler() 400 KeyEventHandlerRecord record = mKeyEventHandlers.get(eventHandler); in addKeyEventHandler() 403 mKeyEventHandlers.put(eventHandler, record); in addKeyEventHandler() 419 public void removeKeyEventHandler(@NonNull ProjectionKeyEventHandler eventHandler) { in removeKeyEventHandler() argument 421 KeyEventHandlerRecord record = mKeyEventHandlers.remove(eventHandler); in removeKeyEventHandler()
|
D | ICarProjection.aidl | 51 in ICarProjectionKeyEventHandler eventHandler, in byte[] eventMask) = 2; in registerKeyEventHandler() argument 56 void unregisterKeyEventHandler(in ICarProjectionKeyEventHandler eventHandler) = 3; field
|
D | Car.java | 740 private static Handler determineMainThreadEventHandler(Handler eventHandler) { in determineMainThreadEventHandler() argument 742 return (eventHandler.getLooper() == mainLooper) ? eventHandler : new Handler(mainLooper); in determineMainThreadEventHandler()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/ |
D | StateMachineImpl.java | 105 EventHandler eventHandler = mState.getEventHandler(event.getClass()); in processEvent() local 106 if (eventHandler != null) { in processEvent() 108 Optional<State> newState = eventHandler.processEvent(event); in processEvent()
|
D | StateImpl.java | 69 Class<T> eventClass, EventHandler<T> eventHandler) { in setEventHandler() argument 70 mEventHandlerMap.put(eventClass, eventHandler); in setEventHandler()
|
D | State.java | 80 Class<T> eventClass, EventHandler<T> eventHandler); in setEventHandler() argument
|
/packages/services/Car/service/src/com/android/car/ |
D | CarProjectionService.java | 229 ICarProjectionKeyEventHandler eventHandler, byte[] eventMask) { in registerKeyEventHandler() argument 236 ProjectionKeyEventHandler info = mKeyEventHandlers.get(eventHandler); in registerKeyEventHandler() 238 info = new ProjectionKeyEventHandler(mKeyEventHandlers, eventHandler, events); in registerKeyEventHandler() 249 public void unregisterKeyEventHandler(ICarProjectionKeyEventHandler eventHandler) { in unregisterKeyEventHandler() argument 252 mKeyEventHandlers.removeBinder(eventHandler); in unregisterKeyEventHandler() 818 ProjectionKeyEventHandler eventHandler = in onKeyEvent() local 821 if (eventHandler.canHandleEvent(keyEvent)) { in onKeyEvent() 824 eventHandler.binderInterface.onKeyEvent(keyEvent); in onKeyEvent()
|
D | BinderInterfaceContainer.java | 56 public BinderInterfaceContainer(@Nullable BinderEventHandler<T> eventHandler) { in BinderInterfaceContainer() argument 57 mEventHandler = eventHandler; in BinderInterfaceContainer()
|