summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authormincheli <mincheli@google.com>2022-02-03 02:15:08 +0800
committerMinche Li <mincheli@google.com>2022-03-01 03:56:37 +0000
commitf04786ea0e0378302fcd753e9fb4e366b693ad8a (patch)
tree606da8454f53aff16d70ddbc5c4c0a1ce7ed033a /core/java/android/util/SparseSetArray.java
parentfba11335045412e06d4fc933a26633ee4345e351 (diff)
Waits for windowMagnification connection set when requesting enableWindowMagnification
It fixes the low quality CTS test, AccessibilityMagnificationTest. And this fix also makes enableWindowMagnification() a robust API that can be called frequently when the connection is toggled. CL comments and discussion are at ag/16785609 Root cause: 1. when the test cases run iteratively, the test a11y service would be enabled and disabled repeatedly so the windowMagnification connection would also be connected and disconnected repeatedly. And when the test a11y service is enabled in a short time, the connection may not be ready to be established. Solution: 1. So we add a wait lock and notify to unclock after the connection is established. And prevent the duplicated connection request. Bug: 2147470987 Test: atest AccessibilityMagnificationTest --iterations, atest com.android.server.accessibility Change-Id: I6ec22e66796aaf565c10b0fedcd4de359ce5fc7b
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions