diff options
| author | Evan Rosky <erosky@google.com> | 2020-04-22 16:54:49 -0700 |
|---|---|---|
| committer | Evan Rosky <erosky@google.com> | 2020-04-23 19:01:53 -0700 |
| commit | cff7ebb93dd987505354f318b4fff9ccf18d4232 (patch) | |
| tree | cfcfed2b743839a840c664cd11ba8e27cc337009 /core/java/android/view/SurfaceControlViewHost.java | |
| parent | f51a85f60a6fbea5f3013fa39b6368c5de8f0bbf (diff) | |
Connect systemwindow root with accessibility
This sets the most-recently created view on a shellroot
to be used as the "accessibility" window. This allows
each shellroot to have 1 window that accessibility sees.
Bug: 152368950
Test: atest AccessibilityWindowQueryTest#testWindowDockAndUndock_dividerWindowAppearsAndDisappears
Change-Id: Ice2820e11544ccdf7a3e600f918eac0ffb506548
Diffstat (limited to 'core/java/android/view/SurfaceControlViewHost.java')
| -rw-r--r-- | core/java/android/view/SurfaceControlViewHost.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceControlViewHost.java b/core/java/android/view/SurfaceControlViewHost.java index cfceb031539f..3d6da6f71b3f 100644 --- a/core/java/android/view/SurfaceControlViewHost.java +++ b/core/java/android/view/SurfaceControlViewHost.java @@ -39,7 +39,7 @@ import java.util.Objects; * {@link SurfaceView#setChildSurfacePackage}. */ public class SurfaceControlViewHost { - private ViewRootImpl mViewRoot; + private final ViewRootImpl mViewRoot; private WindowlessWindowManager mWm; private SurfaceControl mSurfaceControl; @@ -226,6 +226,14 @@ public class SurfaceControlViewHost { } /** + * @return the ViewRootImpl wrapped by this host. + * @hide + */ + public IWindow getWindowToken() { + return mViewRoot.mWindow; + } + + /** * @hide */ @TestApi |
