Fix PixelCopyTest CTS issue
The test case didn't handle cutout properly while windowLayoutInDisplayCutoutMode is always, set it to default could fix the issue
Test:run cts -m CtsViewTestCases -t android.view.cts.PixelCopyTest#testDialogProducerScaling --abi arm64-v8a
Bug: 271314822
Change-Id: Ic889f6bdc7932a081da3d7e7d1d546326c4e0b5c
diff --git a/tests/tests/view/AndroidManifest.xml b/tests/tests/view/AndroidManifest.xml
index a892da1..6de3aac 100644
--- a/tests/tests/view/AndroidManifest.xml
+++ b/tests/tests/view/AndroidManifest.xml
@@ -203,7 +203,7 @@
android:label="PixelCopyViewProducerDialogActivity"
android:screenOrientation="portrait"
android:rotationAnimation="jumpcut"
- android:theme="@android:style/Theme.Material.Dialog.NoActionBar"
+ android:theme="@style/PixelCopyViewProducerDialogActivityTheme"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"/>
<activity android:name="android.view.cts.FocusFinderCtsActivity"
diff --git a/tests/tests/view/res/values/styles.xml b/tests/tests/view/res/values/styles.xml
index bb513bfc..34df7cc 100644
--- a/tests/tests/view/res/values/styles.xml
+++ b/tests/tests/view/res/values/styles.xml
@@ -184,6 +184,10 @@
<item name="android:windowAnimationStyle">@null</item>
</style>
+ <style name="PixelCopyViewProducerDialogActivityTheme" parent="@android:style/Theme.Material.Dialog.NoActionBar">
+ <item name="android:windowLayoutInDisplayCutoutMode">default</item>
+ </style>
+
<style name="ViewAttributeTestTheme" parent="@android:Theme.Material"/>
<style name="ExplicitStyle1" parent="@style/ParentOfExplicitStyle1">