summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vali Calinescu <vcalinescu@google.com> 2023-03-22 13:08:29 +0000
committer Vali Calinescu <vcalinescu@google.com> 2023-03-22 13:08:32 +0000
commit6e71928140a79b7e96ecfff1d0fe1460bba1f462 (patch)
treeba65fd16f3ff7745872149a5efaa8633e18bce1e
parenta55730c9bc6287235374a2461e0a36a60f64a5e2 (diff)
Clean up transparent activity test in SizeCompatTests
We should be returning false for fillsParent() on the transparent activity. Fix: 274749083 Test: atest WmTests:SizeCompatTests#testTranslucentActivitiesDontGoInSizeCompatMode Change-Id: I6fb48f1d2768a86972eb22483077974c175c15b5
-rw-r--r--services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java b/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java
index 3ab9ea906128..7cda4ac0feb1 100644
--- a/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java
+++ b/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java
@@ -398,7 +398,7 @@ public class SizeCompatTests extends WindowTestsBase {
.setLaunchedFromUid(mActivity.getUid())
.setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT)
.build();
- doReturn(true).when(translucentActivity).fillsParent();
+ doReturn(false).when(translucentActivity).fillsParent();
mTask.addChild(translucentActivity);
// It should not be in SCM
assertFalse(translucentActivity.inSizeCompatMode());