Lines Matching refs:events

42  * The InteractionProvider is responsible for injecting user events such as touch events
43 * (includes swipes) and text key events into the system. To do so, all it needs to know about
44 * are coordinates of the touch events and text for the text input events.
45 * The InteractionController performs no synchronization. It will fire touch and text input events
72 * Predicate for waiting for any of the events specified in the mask
92 * Predicate for waiting for all the events specified in the mask and populating
93 * a ctor passed list with matching events. User of this Predicate must recycle
94 * all populated events in the events list.
100 EventCollectingPredicate(int mask, List<AccessibilityEvent> events) {
102 mEventsList = events;
109 // For the events you need, always store a copy when returning false from
135 // Since we're waiting for all events to be matched at least once
149 * Helper used by methods to perform actions and wait for any accessibility events and return
164 Log.w(LOG_TAG, "runAndwaitForEvent timedout waiting for events");
177 * and normal wait for idle processing may begin. If no events are detected for the
184 * @return true if events is received, otherwise false.
233 * @return true if events are received, else false if timeout.
252 * @return true if both events occurred in the expected order
360 // Collect all accessibility events generated during the swipe command and get the
362 ArrayList<AccessibilityEvent> events = new ArrayList<AccessibilityEvent>();
364 new EventCollectingPredicate(AccessibilityEvent.TYPE_VIEW_SCROLLED, events),
367 AccessibilityEvent event = getLastMatchingEvent(events,
371 // end of scroll since no new scroll events received
372 recycleAccessibilityEvents(events);
396 recycleAccessibilityEvents(events);
400 private AccessibilityEvent getLastMatchingEvent(List<AccessibilityEvent> events, int type) {
401 for (int x = events.size(); x > 0; x--) {
402 AccessibilityEvent event = events.get(x - 1);
409 private void recycleAccessibilityEvents(List<AccessibilityEvent> events) {
410 for (AccessibilityEvent event : events)
412 events.clear();
522 KeyEvent[] events = mKeyCharacterMap.getEvents(text.toCharArray());
524 if (events != null) {
526 for (KeyEvent event2 : events) {
529 // time stamp and the system rejects too old events. Hence, it is