diff options
author | Bryce Lee <brycelee@google.com> | 2017-10-31 13:18:43 -0700 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-11-02 04:42:55 +0000 |
commit | 7fd6d468ba346c3b3fae2f92ee7924ac0732e371 (patch) | |
tree | aeaa9ae55614f28d891a5249bb7db1922a8bf5cf | |
parent | d9e118e321c9049efca78efd5cc6bcaee159f00f (diff) | |
download | cts-7fd6d468ba346c3b3fae2f92ee7924ac0732e371.tar.gz |
DO NOT MERGE Remove CTS Test enforcing rotation limitations based on sdk level.
Bug: 68684796
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests
Change-Id: I5a541aeb0a8c85804628aae050faebcbcdb0a299
(cherry picked from commit 24f46f2e000cb98537b34af87fd70307fd222193)
-rw-r--r-- | hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java b/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java index 71bbcc9bbf5..c4824489d36 100644 --- a/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java +++ b/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java @@ -337,29 +337,13 @@ public class ActivityManagerAppConfigurationTests extends ActivityManagerTestBas // 1 /* portrait */, updatedReportedSizes.orientation); } - public void testNonFullscreenActivityProhibited() throws Exception { - setComponentName(TRANSLUCENT_CURRENT_PACKAGE); - - // We do not wait for the activity as it should not launch based on the restrictions around - // specifying orientation. We instead start an activity known to launch immediately after - // so that we can ensure processing the first activity occurred. - launchActivityNoWait(TRANSLUCENT_ACTIVITY); - setDefaultComponentName(); - launchActivity(PORTRAIT_ACTIVITY_NAME); - - assertFalse("target SDK > 26 non-fullscreen activity should not reach onResume", - mAmWmState.getAmState().containsActivity( - ActivityManagerTestBase.getActivityComponentName( - TRANSLUCENT_ACTIVITY, TRANSLUCENT_ACTIVITY))); - } - public void testNonFullscreenActivityPermitted() throws Exception { - setComponentName(TRANSLUCENT_SDK_26_PACKAGE); + setComponentName(TRANSLUCENT_CURRENT_PACKAGE); setDeviceRotation(0); launchActivity(TRANSLUCENT_ACTIVITY); mAmWmState.assertResumedActivity( - "target SDK <= 26 non-fullscreen activity should be allowed to launch", + "target SDK non-fullscreen activity should be allowed to launch", TRANSLUCENT_ACTIVITY); assertEquals("non-fullscreen activity requested landscape orientation", 0 /* landscape */, mAmWmState.getWmState().getLastOrientation()); |