Lines Matching refs:event

136  * which was fired the last event of the following types:
146 * event of the above types or a previous event from the same window
153 * a subset of the event types, thus be unaware that the active window has changed. Therefore
157 * Register for all event types with no notification timeout and keep track for the active
158 * window by calling {@link AccessibilityEvent#getWindowId()} of the last received event and
164 * active window has changed and the service did not get the accessibility event yet. Note
166 * specified in the previous bullet because the accessibility event dispatch is asynchronous
177 * service is invoked if no other service was interested in the event. In other words, default
184 * <strong>Note:</strong> The event notification timeout is useful to avoid propagating
187 * event generation has settled down.</p>
370 public void onAccessibilityEvent(AccessibilityEvent event);
375 public boolean onKeyEvent(KeyEvent event);
389 * @param event An event.
391 public abstract void onAccessibilityEvent(AccessibilityEvent event);
451 * a way that the event stream that would be passed to the rest of the system
452 * is well-formed. For example, handling the down event but not the up event
453 * and vice versa would generate an inconsistent event stream.
462 * @param event The event to be processed.
463 * @return If true then the event will be consumed and not delivered to
466 protected boolean onKeyEvent(KeyEvent event) {
657 public void onAccessibilityEvent(AccessibilityEvent event) {
658 AccessibilityService.this.onAccessibilityEvent(event);
678 public boolean onKeyEvent(KeyEvent event) {
679 return AccessibilityService.this.onKeyEvent(event);
723 public void onAccessibilityEvent(AccessibilityEvent event) {
724 Message message = mCaller.obtainMessageO(DO_ON_ACCESSIBILITY_EVENT, event);
739 public void onKeyEvent(KeyEvent event, int sequence) {
740 Message message = mCaller.obtainMessageIO(DO_ON_KEY_EVENT, sequence, event);
748 AccessibilityEvent event = (AccessibilityEvent) message.obj;
749 if (event != null) {
750 AccessibilityInteractionClient.getInstance().onAccessibilityEvent(event);
751 mCallback.onAccessibilityEvent(event);
752 // Make sure the event is recycled.
754 event.recycle();
796 KeyEvent event = (KeyEvent) message.obj;
801 final boolean result = mCallback.onKeyEvent(event);
810 // Make sure the event is recycled.
812 event.recycle();