Lines Matching refs:event

50  * input event.</li>
53 * <h3>The importance of input event consistency</h3>
71 * the source of the event and its semantics. There may be multiple sources of keys,
79 * The early policy interception decides whether an input event should be delivered
83 * the fact that the policy intends to drop the event, clean up its state, and
149 * Called to enqueue the input event for filtering.
150 * The event will be recycled after the input filter processes it.
153 * @param event The input event to enqueue.
155 final public void filterInputEvent(InputEvent event, int policyFlags) {
156 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget();
160 * Sends an input event to the dispatcher.
162 * @param event The input event to publish.
163 * @param policyFlags The input event policy flags.
165 public void sendInputEvent(InputEvent event, int policyFlags) {
166 if (event == null) {
167 throw new IllegalArgumentException("event must not be null");
170 throw new IllegalStateException("Cannot send input event because the input filter " +
174 mOutboundInputEventConsistencyVerifier.onInputEvent(event, 0);
177 mHost.sendInputEvent(event, policyFlags);
184 * Called when an input event has been received from the dispatcher.
186 * The default implementation sends the input event back to the dispatcher, unchanged.
188 * The event will be recycled when this method returns. If you want to keep it around,
192 * @param event The input event that was received.
193 * @param policyFlags The input event policy flags.
195 public void onInputEvent(InputEvent event, int policyFlags) {
196 sendInputEvent(event, policyFlags);
212 * This method is called after the input filter receives its last input event.
247 final InputEvent event = (InputEvent)msg.obj;
250 mInboundInputEventConsistencyVerifier.onInputEvent(event, 0);
252 onInputEvent(event, msg.arg1);
254 event.recycle();