Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1cd47e9 authored by wilsonshih's avatar wilsonshih
Browse files

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
parent ec3471c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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" />