Lines Matching defs:event

321          * This is called when a custom event has been sent from this session.
324 * @param eventType The type of the event.
325 * @param eventArgs Optional arguments of the event.
1162 // For scheduling input event handling on the main thread. This also serves as a lock to
1312 * @param params A set of extra parameters which might be handled with this tune event.
1641 * Dispatches an input event to this session.
1643 * @param event An {@link InputEvent} to dispatch.
1644 * @param token A token used to identify the input event later in the callback.
1647 * @return Returns {@link #DISPATCH_HANDLED} if the event was handled. Returns
1648 * {@link #DISPATCH_NOT_HANDLED} if the event was not handled. Returns
1649 * {@link #DISPATCH_IN_PROGRESS} if the event is in progress and the callback will
1654 public int dispatchInputEvent(InputEvent event, Object token,
1656 if (event == null) {
1657 throw new IllegalArgumentException("event cannot be null");
1666 PendingEvent p = obtainPendingEventLocked(event, token, callback, handler);
1668 // Already running on the main thread so we can send the event immediately.
1672 // Post the event to the main thread.
1681 * Callback that is invoked when an input event that was dispatched to this session has been
1688 * Called when the dispatched input event is finished.
1691 * @param handled {@code true} if the dispatched input event was handled properly.
1715 final InputEvent event = p.mEvent;
1716 final int seq = event.getSequenceNumber();
1717 if (mSender.sendInputEvent(seq, event)) {
1725 Log.w(TAG, "Unable to send input event to session: " + mToken + " dropping:"
1726 + event);
1736 return; // spurious, event already finished or timed out
1743 Log.w(TAG, "Timeout waiting for seesion to handle input event after "
1753 // Assumes the event has already been removed from the queue.
1761 // Post the event to the callback handler thread.
1762 // In this case, the callback will be responsible for recycling the event.
1781 private PendingEvent obtainPendingEventLocked(InputEvent event, Object token,
1787 p.mEvent = event;
1923 public boolean dispatchKeyEventToHdmi(KeyEvent event) {
1925 return mInterface.dispatchKeyEventToHdmi(event);