Add minWidth/minHeight attributes to freeform stack test activities

testActivityLifeCycleOnResizeFreeformTask will fail on devices that
have R.config.default_minimal_size_resizable_task set to larger than
220dp since the resize is not applied causing the test activity
to not go through the activity relaunch cycle.

Since the test is verifying the correct behavior of the activity
configuration change, the minimum task size constraint should be
irrelevant here. Set the task minWidth/Height to 1, which will allow
it to be resized arbitarily so that the test passes regardless
of what R.config.default_minimal_size_resizable_task is.

Test: cts-tradefed run singleCommand cts-dev -d --module
CtsServicesHostTestCases -t
android.server.cts.ActivityManagerFreeformStackTests
Bug: 65529286

Change-Id: Ic955cb517e7a3d1f416c3e30e66c2aa0e8c09b17
diff --git a/hostsidetests/services/activitymanager/app/AndroidManifest.xml b/hostsidetests/services/activitymanager/app/AndroidManifest.xml
index bc4c4ca..0c408dc 100755
--- a/hostsidetests/services/activitymanager/app/AndroidManifest.xml
+++ b/hostsidetests/services/activitymanager/app/AndroidManifest.xml
@@ -22,8 +22,11 @@
     <application>
         <activity android:name=".TestActivity"
                 android:resizeableActivity="true"
-                android:exported="true"
-        />
+                android:exported="true">
+                <layout android:minWidth="1dp"
+                        android:minHeight="1dp"
+                />
+        </activity>
         <activity android:name=".ResizeableActivity"
                 android:resizeableActivity="true"
                 android:exported="true"
@@ -48,8 +51,11 @@
                 android:resizeableActivity="true"
                 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|fontScale"
                 android:exported="true"
-                android:taskAffinity="nobody.but.NoRelaunchActivity"
-        />
+                android:taskAffinity="nobody.but.NoRelaunchActivity">
+                <layout android:minWidth="1dp"
+                        android:minHeight="1dp"
+                />
+        </activity>
         <activity android:name=".SlowCreateActivity"
                 android:resizeableActivity="true"
                 android:exported="true"