OSDN Git Service

Move A11y events throttling away from View(RootImpl)
authorEugene Susla <eugenesusla@google.com>
Thu, 1 Jun 2017 18:16:42 +0000 (11:16 -0700)
committerEugene Susla <eugenesusla@google.com>
Tue, 9 Jan 2018 21:28:59 +0000 (13:28 -0800)
commite4d31b3c103045d5b2b141a05084dced595cc64f
treef30603ebab9a9280df506460776c2b1412d0e271
parentdd312ababe4db018307948f956fa482c81825ff9
Move A11y events throttling away from View(RootImpl)

..and also extract common code into a common superclass

This also preserves the order of the throttled events
(TYPE_VIEW_SCROLLED & TYPE_WINDOW_CONTENT_CHANGED) with regards to the rest
of events by flushing any pending throttled events immediately if another
event is requested to be sent.

Test: ensure no new a11y CTS failures
Change-Id: I948a16716521974393aaa1cf822d0a0324e9ce3a
16 files changed:
core/java/android/app/UiAutomation.java
core/java/android/view/View.java
core/java/android/view/ViewGroup.java
core/java/android/view/ViewRootImpl.java
core/java/android/view/accessibility/AccessibilityViewHierarchyState.java [new file with mode: 0644]
core/java/android/view/accessibility/SendViewScrolledAccessibilityEvent.java [new file with mode: 0644]
core/java/android/view/accessibility/SendWindowContentChangedAccessibilityEvent.java [new file with mode: 0644]
core/java/android/view/accessibility/ThrottlingAccessibilityEventSender.java [new file with mode: 0644]
core/java/android/widget/AbsListView.java
core/java/android/widget/AdapterView.java
core/java/android/widget/CheckedTextView.java
core/java/android/widget/CompoundButton.java
core/java/android/widget/TextView.java
core/java/com/android/internal/util/ObjectUtils.java
core/java/com/android/internal/widget/ResolverDrawerLayout.java
packages/PrintSpooler/src/com/android/printspooler/widget/PrintContentView.java