Updated translucent in Pip activity test case to cover real failure case.
Changed ActivityManagerVisibleBehindActivityTests#testTranslucentActivityOnTopOfPinnedStack
test case to cover a real life failure case we were seeing on Android TV where
the top translucent activity needs to be launched into the pinned stack vs.
being moved there after launch.
Bug: 26273032
Change-Id: I7cdb7f5bfd3698a6a125014a6fffc739739b5f0e
diff --git a/hostsidetests/services/activitymanager/app/AndroidManifest.xml b/hostsidetests/services/activitymanager/app/AndroidManifest.xml
index 522fd71..9440e95 100755
--- a/hostsidetests/services/activitymanager/app/AndroidManifest.xml
+++ b/hostsidetests/services/activitymanager/app/AndroidManifest.xml
@@ -48,10 +48,12 @@
android:exported="true"
/>
<activity android:name=".AlwaysFocusablePipActivity"
+ android:theme="@style/Theme.Transparent"
android:resizeable="true"
android:supportsPictureInPicture="true"
androidprv:alwaysFocusable="true"
android:exported="true"
+ android:taskAffinity="nobody.but.AlwaysFocusablePipActivity"
/>
<activity android:name=".LaunchIntoPinnedStackPipActivity"
android:resizeable="true"
@@ -59,19 +61,19 @@
androidprv:alwaysFocusable="true"
android:exported="true"
/>
- <activity android:name=".TranslucentActivity"
- android:theme="@style/Theme.Transparent"
- android:resizeable="true"
- android:supportsPictureInPicture="true"
- android:exported="true"
- android:taskAffinity="nobody.but.TranslucentActivity"
- />
<activity android:name=".VisibleBehindActivity"
android:resizeable="true"
android:supportsPictureInPicture="true"
android:exported="true"
android:taskAffinity="nobody.but.VisibleBehindActivity"
/>
+ <activity android:name=".LaunchPipOnPipActivity"
+ android:resizeable="true"
+ android:supportsPictureInPicture="true"
+ android:taskAffinity="nobody.but.LaunchPipOnPipActivity"
+ android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|layoutDirection"
+ android:exported="true"
+ />
</application>
</manifest>