summaryrefslogtreecommitdiff
path: root/core/java/android/view/AccessibilityEmbeddedConnection.java
Commit message (Collapse)AuthorAgeFilesLines
* Change node bounds procedure based on SufaceFlinger Callbackryanlwlin2022-04-121-6/+6
| | | | | | | | | | | | | | | | | | | | The attachInfo from ViewRootImpl is not reliable for DisplayArea manipulation or windowless window. To fix this problem, we use the transform matrix of InputWindowHandle, which could transform the bounds from window coorindate to screen coordinate. We also transfrom the bounds to logical display coordinates with the associated display matrix. Besides, we also record the magnification spec of the window, which could get the bounds before magnification. We use this value to decide the property 'visibleToUser'. Bug: 200797785 Test: atest android.accessibilityservice.cts WindowInfoTest atest com.android.server.accessibility Change-Id: I0917b04fe8b027fb2bd932a6f0604ba1449ebc66
* Remove parent window from display contentTiger Huang2021-10-061-1/+0
| | | | | | | | | This CL removes the logic related to the legacy ActivityView. Bug: 179161778 Bug: 161810301 Test: build and boot to home. Change-Id: I757769d3cac89ebddbdc467f533fed99c74941ee
* Apply the screen matrix to the boundsInScreenJackal Guo2020-02-171-3/+6
| | | | | | | | | | | View could be embedded within a SurfaceView via SurfaceControlViewHost now. We need to apply the screen matrix to the bound after that since the host SurfaceView may scale or offset the embedded view. Otherwise, the boundsInScreen would be incorrect. Bug: 148821260 Test: a11y CTS & unit tests Change-Id: Ia590cfd20b26a9d9c58b8499098d25ad9d67f261
* Support accessibility on embedded hierarchies (2/n)Jackal Guo2020-02-111-0/+81
Introduce AccessibilityEmbeddedConnection. This interface provides to the host view to the latter can interact with the view hierarchy in SurfaceControlViewHost. Bug: 137593247 Test: a11y CTS & unit tests Change-Id: I9c4f5478c5ecd3bda7f688fa23660f372b59512b