Fix for testFreeformWindowManagementSupport
Adding support for xxxdpi devices for this test cases.
b/31715134
Change-Id: Ic7742296a5733ffa0971583743caf05909961e0d
Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
diff --git a/hostsidetests/services/activitymanager/app/src/android/server/app/FreeformActivity.java b/hostsidetests/services/activitymanager/app/src/android/server/app/FreeformActivity.java
index a1cb54c..6daf3d98 100644
--- a/hostsidetests/services/activitymanager/app/src/android/server/app/FreeformActivity.java
+++ b/hostsidetests/services/activitymanager/app/src/android/server/app/FreeformActivity.java
@@ -33,7 +33,7 @@
intent.setFlags(FLAG_ACTIVITY_CLEAR_TASK | FLAG_ACTIVITY_NEW_TASK);
final ActivityOptions options = ActivityOptions.makeBasic();
- options.setLaunchBounds(new Rect(0, 0, 500, 500));
+ options.setLaunchBounds(new Rect(0, 0, 900, 900));
this.startActivity(intent, options.toBundle());
}
}
diff --git a/hostsidetests/services/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java b/hostsidetests/services/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
index abe067f..3f755fe 100644
--- a/hostsidetests/services/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
+++ b/hostsidetests/services/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
@@ -24,10 +24,10 @@
private static final String TEST_ACTIVITY = "TestActivity";
private static final int TEST_TASK_OFFSET = 20;
private static final int TEST_TASK_OFFSET_2 = 100;
- private static final int TEST_TASK_SIZE_1 = 500;
+ private static final int TEST_TASK_SIZE_1 = 900;
private static final int TEST_TASK_SIZE_2 = TEST_TASK_SIZE_1 * 2;
// NOTE: Launching the FreeformActivity will automatically launch the TestActivity
- // with bounds (0, 0, 500, 500)
+ // with bounds (0, 0, 900, 900)
private static final String FREEFORM_ACTIVITY = "FreeformActivity";
private static final String NON_RESIZEABLE_ACTIVITY = "NonResizeableActivity";
private static final String NO_RELAUNCH_ACTIVITY = "NoRelaunchActivity";