Lines Matching defs:event

137  * which was fired the last event of the following types:
147 * event of the above types or a previous event from the same window
154 * a subset of the event types, thus be unaware that the active window has changed. Therefore
158 * Register for all event types with no notification timeout and keep track for the active
159 * window by calling {@link AccessibilityEvent#getWindowId()} of the last received event and
165 * active window has changed and the service did not get the accessibility event yet. Note
167 * specified in the previous bullet because the accessibility event dispatch is asynchronous
178 * service is invoked if no other service was interested in the event. In other words, default
185 * <strong>Note:</strong> The event notification timeout is useful to avoid propagating
188 * event generation has settled down.</p>
371 public void onAccessibilityEvent(AccessibilityEvent event);
376 public boolean onKeyEvent(KeyEvent event);
390 * @param event An event.
392 public abstract void onAccessibilityEvent(AccessibilityEvent event);
452 * a way that the event stream that would be passed to the rest of the system
453 * is well-formed. For example, handling the down event but not the up event
454 * and vice versa would generate an inconsistent event stream.
463 * @param event The event to be processed.
464 * @return If true then the event will be consumed and not delivered to
467 protected boolean onKeyEvent(KeyEvent event) {
658 public void onAccessibilityEvent(AccessibilityEvent event) {
659 AccessibilityService.this.onAccessibilityEvent(event);
679 public boolean onKeyEvent(KeyEvent event) {
680 return AccessibilityService.this.onKeyEvent(event);
724 public void onAccessibilityEvent(AccessibilityEvent event) {
725 Message message = mCaller.obtainMessageO(DO_ON_ACCESSIBILITY_EVENT, event);
740 public void onKeyEvent(KeyEvent event, int sequence) {
741 Message message = mCaller.obtainMessageIO(DO_ON_KEY_EVENT, sequence, event);
749 AccessibilityEvent event = (AccessibilityEvent) message.obj;
750 if (event != null) {
751 AccessibilityInteractionClient.getInstance().onAccessibilityEvent(event);
752 mCallback.onAccessibilityEvent(event);
753 // Make sure the event is recycled.
755 event.recycle();
797 KeyEvent event = (KeyEvent) message.obj;
802 final boolean result = mCallback.onKeyEvent(event);
811 // Make sure the event is recycled.
813 event.recycle();