Fix flaky test FrameworksServicesTests:ScreenDecorWindowTests.
Use showWhenLocked attribute to prevent TestActivity goes to
Paused/Stopped.
Bug:111708089
Test: atest FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Change-Id: I3ae1963f376caa3fba6c3694b8265bedb55e54b4
diff --git a/services/tests/servicestests/AndroidManifest.xml b/services/tests/servicestests/AndroidManifest.xml
index 348e201..863e487 100644
--- a/services/tests/servicestests/AndroidManifest.xml
+++ b/services/tests/servicestests/AndroidManifest.xml
@@ -143,7 +143,8 @@
<activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity2" />
<activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity3" />
- <activity android:name="com.android.server.wm.ScreenDecorWindowTests$TestActivity" />
+ <activity android:name="com.android.server.wm.ScreenDecorWindowTests$TestActivity"
+ android:showWhenLocked="true"/>
<activity android:name="com.android.server.pm.ShortcutTestActivity"
android:enabled="true" android:exported="true" />