diff options
| author | Daniel Hsieh <pengjuhsieh@google.com> | 2022-04-26 12:50:38 +0000 |
|---|---|---|
| committer | Daniel Hsieh <pengjuhsieh@google.com> | 2022-05-06 08:33:11 +0000 |
| commit | 81f7e655e5134b3a543a6373d245d83eac9197cb (patch) | |
| tree | 5b274067bec8ab3e520cf4be9f6d0a556c0bfc6a /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | b1eb715bca4f625c8fe9efca88cc58d63a33cf55 (diff) | |
Gets node bound when the FLAG_RETRIEVE_INTERACTIVE_WINDOWS is unset
Since the WindowInfo is null if the FLAG_RETRIEVE_INTERACTIVE_WINDOWS is
unset, we would fail to calculate the node bound correctly.
The reason behind this failure is that the accessibility framework only
tracks windows when the FLAG_RETRIEVE_INTERACTIVE_WINDOWS is set.
As being a short term solution, we could retrieve the transformation matrix
and magnification spec from WindowState, making us have this CL.
However, as a long term solution, we should keep tracking WindowInfo in
DisplayWindowsObserver whether the flag is set or unset and mitigate the
additional system overhead.
Bug: 229379635
Test: atest android.accessibilityservice.cts
atest com.android.server.accessibility
We use a test apk to test the node bound value when the flag is
unset equals to the value from WindowInfo when the flag is set.
Change-Id: I02e7e74d027dc65605f5e8fcc10d3c808e316476
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions
