diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-11-02 04:50:50 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-11-02 04:50:50 +0000 |
commit | 6072e690e254968c85465a669a2e2cd27bd9804b (patch) | |
tree | aeaa9ae55614f28d891a5249bb7db1922a8bf5cf | |
parent | d9e118e321c9049efca78efd5cc6bcaee159f00f (diff) | |
parent | 7fd6d468ba346c3b3fae2f92ee7924ac0732e371 (diff) | |
download | cts-6072e690e254968c85465a669a2e2cd27bd9804b.tar.gz |
Merge cherrypicks of [3156476, 3155698, 3156194, 3156639, 3156018, 3156477, 3156098, 3156099, 3156100, 3156101, 3156102, 3158393, 3155699, 3155700, 3156195, 3156196, 3156019, 3156020, 3158394] into oc-mr1-releaseandroid-cts-8.1_r1android-8.1.0_r1
Change-Id: I46769da873e10b285c0debd5b8b9bcb7e6cb1acd
-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()); |