Fix CTS test case failure

android.accessibilityservice.cts.AccessibilityEmbeddedDisplayTest#
testA11yWindowNotifyWhenResizeWindowInActivityViewAfterServiceOffAndOn

The virtual display of the activityView becomes private from public
based on this patch (ag/10995683) such that this display won't be
enable the window tracking by A11y framework and got this test case
failure. Using the new constructor method of activityView to assign
the virtual display of it is public to fix this issue.

Bug: 155085697
Test: atest AccessibilityEmbeddedDisplayTest
Test: atest --iterations 20 AccessibilityEmbeddedDisplayTest
Test: atest AccessibilityEmbeddedDisplayTest -v -- --retry-strategy
ITERATIONS --max-testcase-run-count 20

Change-Id: I5350b7e1e62ff22bae80ca6f81ed7126f674f369
1 file changed