Lines Matching defs:event

126      * public boolean dispatchHoverEvent(MotionEvent event) {
127 * if (mHelper.dispatchHoverEvent(this, event) {
130 * return super.dispatchHoverEvent(event);
134 * @param event The hover event to dispatch to the virtual view hierarchy.
135 * @return Whether the hover event was handled.
137 public boolean dispatchHoverEvent(MotionEvent event) {
142 switch (event.getAction()) {
145 final int virtualViewId = getVirtualViewAt(event.getX(), event.getY());
160 * Populates an event of the specified type with information about an item
164 * fires an accessibility event, such as clicking on an item.
172 * @param virtualViewId The virtual view id for which to send an event.
173 * @param eventType The type of event to send.
174 * @return true if the event was sent successfully.
186 final AccessibilityEvent event = createEvent(virtualViewId, eventType);
187 return parent.requestSendAccessibilityEvent(mView, event);
251 * construct an event.
252 * @param eventType The type of event to construct.
268 * @param eventType The type of event to construct.
273 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType);
274 onInitializeAccessibilityEvent(mView, event);
275 return event;
283 * construct an event.
284 * @param eventType The type of event to construct.
289 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType);
290 event.setEnabled(true);
291 event.setClassName(DEFAULT_CLASS_NAME);
293 // Allow the client to populate the event.
294 onPopulateEventForVirtualView(virtualViewId, event);
297 if (event.getText().isEmpty() && (event.getContentDescription() == null)) {
303 event.setPackageName(mView.getContext().getPackageName());
304 event.setSource(mView, virtualViewId);
306 return event;
624 * <li>event text, see {@link AccessibilityEvent#getText} or
640 * <li>event source, set to the host view and virtual view identifier,
645 * populate the event
646 * @param event The event to populate
649 int virtualViewId, AccessibilityEvent event);
657 * <li>event text, see {@link AccessibilityNodeInfo#setText} or
679 * <li>node source, identical to the event source set in