From dd1d5b61b1e843cfe1a5ef59e7062390899fe4c3 Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Fri, 7 Jan 2022 16:12:13 +0100 Subject: Set cutout mode to shortEdges on flicker Use short edges on the flicker tests so that the test apps cover the full screen in both raven and in flame devices. With default cutout, some assertions will need to be updated to consider the letterbox layers, as well as app windows not covering the entire display Bug: 209935473 Test: atest FlickerTests WMShellFlickerTests Change-Id: Iaeabe2033adc2890605bbef7bce139569f402c4b --- .../test-apps/flickerapp/AndroidManifest.xml | 9 +++++++ .../test-apps/flickerapp/res/values/styles.xml | 30 ++++++++++++++++++++++ .../test-apps/flickerapp/AndroidManifest.xml | 7 +++++ .../test-apps/flickerapp/res/values/styles.xml | 30 ++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/res/values/styles.xml create mode 100644 tests/FlickerTests/test-apps/flickerapp/res/values/styles.xml diff --git a/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/AndroidManifest.xml b/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/AndroidManifest.xml index 2cdbffa7589c..f40aa66932cd 100644 --- a/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/AndroidManifest.xml +++ b/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/AndroidManifest.xml @@ -25,6 +25,7 @@ android:resizeableActivity="true" android:supportsPictureInPicture="true" android:launchMode="singleTop" + android:theme="@style/CutoutShortEdges" android:label="FixedApp" android:exported="true"> @@ -37,6 +38,7 @@ android:supportsPictureInPicture="true" android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation" android:taskAffinity="com.android.wm.shell.flicker.testapp.PipActivity" + android:theme="@style/CutoutShortEdges" android:launchMode="singleTop" android:label="PipApp" android:exported="true"> @@ -52,6 +54,7 @@ @@ -68,6 +71,7 @@ @@ -79,6 +83,7 @@ @@ -90,6 +95,7 @@ @@ -100,6 +106,7 @@ @@ -111,6 +118,7 @@ android:name=".LaunchBubbleActivity" android:label="LaunchBubbleApp" android:exported="true" + android:theme="@style/CutoutShortEdges" android:launchMode="singleTop"> @@ -121,6 +129,7 @@ android:name=".BubbleActivity" android:label="BubbleApp" android:exported="false" + android:theme="@style/CutoutShortEdges" android:resizeableActivity="true" /> diff --git a/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/res/values/styles.xml b/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/res/values/styles.xml new file mode 100644 index 000000000000..87a61a88c094 --- /dev/null +++ b/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/res/values/styles.xml @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tests/FlickerTests/test-apps/flickerapp/AndroidManifest.xml b/tests/FlickerTests/test-apps/flickerapp/AndroidManifest.xml index cb37fc7b47e9..0a88f6bb5908 100644 --- a/tests/FlickerTests/test-apps/flickerapp/AndroidManifest.xml +++ b/tests/FlickerTests/test-apps/flickerapp/AndroidManifest.xml @@ -23,6 +23,7 @@ android:supportsRtl="true"> @@ -32,6 +33,7 @@ @@ -40,6 +42,7 @@ @@ -60,6 +64,7 @@ @@ -82,6 +88,7 @@ diff --git a/tests/FlickerTests/test-apps/flickerapp/res/values/styles.xml b/tests/FlickerTests/test-apps/flickerapp/res/values/styles.xml new file mode 100644 index 000000000000..87a61a88c094 --- /dev/null +++ b/tests/FlickerTests/test-apps/flickerapp/res/values/styles.xml @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3-59-g8ed1b