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

Commit 5a68f5cd authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Add default theme for flicker test app

Otherwise its WidowManager.LayoutParams#windowAnimations is 0, then
it won't play animation (TransitionAnimation#loadAnimationAttr
returns null) so the the surface of closing app may be updated to
invisible at random timing that causes the test flaky.

Use darker gray as window background color to make it easier to
distinguish the visual result between home, starting window (gray)
and app content (orange).

Bug: 216297992
Bug: 213852103
Test: com.android.server.wm.flicker.launch.OpenAppColdTest
Change-Id: I3bb073dfa52484a63168b3aeb6e7f5f43bd02aac
parent c271def0
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -16,15 +16,19 @@
  -->

<resources>
    <style name="CutoutDefault">
    <style name="DefaultTheme" parent="@android:style/Theme.DeviceDefault">
        <item name="android:windowBackground">@android:color/darker_gray</item>
    </style>

    <style name="CutoutDefault" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">default</item>
    </style>

    <style name="CutoutShortEdges">
    <style name="CutoutShortEdges" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
    </style>

    <style name="CutoutNever">
    <style name="CutoutNever" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">never</item>
    </style>
</resources>
 No newline at end of file
+7 −3
Original line number Diff line number Diff line
@@ -16,15 +16,19 @@
  -->

<resources>
    <style name="CutoutDefault">
    <style name="DefaultTheme" parent="@android:style/Theme.DeviceDefault">
        <item name="android:windowBackground">@android:color/darker_gray</item>
    </style>

    <style name="CutoutDefault" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">default</item>
    </style>

    <style name="CutoutShortEdges">
    <style name="CutoutShortEdges" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
    </style>

    <style name="CutoutNever">
    <style name="CutoutNever" parent="@style/DefaultTheme">
        <item name="android:windowLayoutInDisplayCutoutMode">never</item>
    </style>