summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorryanlwlin <ryanlwlin@google.com>2022-04-13 18:10:46 +0800
committerryanlwlin <ryanlwlin@google.com>2022-04-29 14:53:56 +0800
commit57a1da433ac379e47b4cfa31c9629bf850f12b8d (patch)
treeea227cc6e48f247ea8bdd6a9acc8dc342282a058 /core/java/android/util/SparseSetArray.java
parent5c554e289b3e87a35e89afad0334e6edd5661d3f (diff)
Postpone window_state_changed events until the window is added
ViewRootImpl sends window_state_changed event to notify AccessibilityService that itself is visible on the screen. However, the corresponding window is not available from accessibility framework perspective because the window information is from SurfaceFlinger process now, so the window is added only when it is really visible on the screen. To ensure accessibilityService could get the node or the window when receiving this event, we postpone this event until the corresponding window is added. We also set a timeout to send those pending events. Bug: 228442331 Bug: 226371995 Test: atest CtsAccessibilityServiceTestCases manual test: write a sample AccessibilityService to test the apis when receving window_state_changed events Change-Id: I92cf2ddb9de90c050cf145f746a53f31d3a5df83
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions