/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 164 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_canRegisterAllEvents() local 172 mProjectionManager.addKeyEventHandler(events, DIRECT_EXECUTOR, eventHandler); in keyEventHandler_canRegisterAllEvents() 176 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents() 182 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_eventsOutOfRange_throw() local 186 mProjectionManager.addKeyEventHandler(Collections.singleton(-1), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 192 Collections.singleton(CarProjectionManager.NUM_KEY_EVENTS), eventHandler); in keyEventHandler_eventsOutOfRange_throw() local 199 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in keyEventHandler_whenRegisteredAgain_replacesEventList() local 201 InOrder inOrder = inOrder(eventHandler); in keyEventHandler_whenRegisteredAgain_replacesEventList() 206 eventHandler); in keyEventHandler_whenRegisteredAgain_replacesEventList() local 208 inOrder.verify(eventHandler) in keyEventHandler_whenRegisteredAgain_replacesEventList() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 282 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler() local 289 verify(eventHandler) in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler() 295 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() local 301 verify(eventHandler, never()).onKeyEvent(anyInt()); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 305 verify(eventHandler) in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 311 verify(eventHandler, never()) in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler() 356 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_keyDown_withEventHandler_triggersEventHandler() local 362 verify(eventHandler).onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_KEY_DOWN); in voiceKey_keyDown_withEventHandler_triggersEventHandler() 367 CarProjectionManager.ProjectionKeyEventHandler eventHandler = in voiceKey_keyUp_afterLongPress_withEventHandler_triggersEventHandler() local 373 verify(eventHandler, never()) in voiceKey_keyUp_afterLongPress_withEventHandler_triggersEventHandler() [all …]
|
D | CarProjectionServiceTest.java | 260 ICarProjectionKeyEventHandler eventHandler = createMockKeyEventHandler(); in addedKeyEventHandler_getsDispatchedEvents() local 263 mService.registerKeyEventHandler(eventHandler, eventSet.toByteArray()); in addedKeyEventHandler_getsDispatchedEvents() 266 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 | 359 @NonNull ProjectionKeyEventHandler eventHandler) { in addKeyEventHandler() argument 360 addKeyEventHandler(events, null, eventHandler); in addKeyEventHandler() 385 @NonNull ProjectionKeyEventHandler eventHandler) { in addKeyEventHandler() argument 393 removeKeyEventHandler(eventHandler); in addKeyEventHandler() 402 KeyEventHandlerRecord record = mKeyEventHandlers.get(eventHandler); in addKeyEventHandler() 405 mKeyEventHandlers.put(eventHandler, record); in addKeyEventHandler() 421 public void removeKeyEventHandler(@NonNull ProjectionKeyEventHandler eventHandler) { in removeKeyEventHandler() argument 423 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 | 1302 private static Handler determineMainThreadEventHandler(Handler eventHandler) { in determineMainThreadEventHandler() argument 1304 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 | 243 ICarProjectionKeyEventHandler eventHandler, byte[] eventMask) { in registerKeyEventHandler() argument 250 ProjectionKeyEventHandler info = mKeyEventHandlers.get(eventHandler); in registerKeyEventHandler() 252 info = new ProjectionKeyEventHandler(mKeyEventHandlers, eventHandler, events); in registerKeyEventHandler() 263 public void unregisterKeyEventHandler(ICarProjectionKeyEventHandler eventHandler) { in unregisterKeyEventHandler() argument 266 mKeyEventHandlers.removeBinder(eventHandler); in unregisterKeyEventHandler() 824 ProjectionKeyEventHandler eventHandler = in onKeyEvent() local 827 if (eventHandler.canHandleEvent(keyEvent)) { in onKeyEvent() 830 eventHandler.binderInterface.onKeyEvent(keyEvent); in onKeyEvent()
|
D | BinderInterfaceContainer.java | 79 public BinderInterfaceContainer(@Nullable BinderEventHandler<T> eventHandler) { in BinderInterfaceContainer() argument 80 mEventHandler = eventHandler; in BinderInterfaceContainer()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 185 Handler eventHandler = getEventHandler(); in CarPropertyManager() local 186 if (eventHandler == null) { in CarPropertyManager() 190 mHandler = new SingleMessageHandler<CarPropertyEvent>(eventHandler.getLooper(), in CarPropertyManager()
|