diff options
author | vadimt <vadimt@google.com> | 2019-04-25 17:53:26 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-04-25 17:53:26 -0700 |
commit | dd4d390f38c42c01998498029e572745078b8c6a (patch) | |
tree | a2ba3f8132da37e74857b67505a5acb7b80d8f38 /quickstep/tests | |
parent | 1e4a43ac6730d6efb86d7a6c23eacc558371cadc (diff) | |
download | android_packages_apps_Trebuchet-dd4d390f38c42c01998498029e572745078b8c6a.tar.gz android_packages_apps_Trebuchet-dd4d390f38c42c01998498029e572745078b8c6a.tar.bz2 android_packages_apps_Trebuchet-dd4d390f38c42c01998498029e572745078b8c6a.zip |
Set portrait orientation for FallbackRecentsTest
Bug: 131364673
Change-Id: I77f3058e09eadc5bcbfe48c768f78883082a526d
Diffstat (limited to 'quickstep/tests')
-rw-r--r-- | quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index f43683118..20fdff2c5 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -32,6 +32,7 @@ import android.app.Instrumentation; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; +import android.os.RemoteException; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; @@ -65,10 +66,11 @@ public class FallbackRecentsTest { @Rule public final TestRule mSetLauncherCommand; - public FallbackRecentsTest() { + public FallbackRecentsTest() throws RemoteException { Instrumentation instrumentation = getInstrumentation(); Context context = instrumentation.getContext(); mDevice = UiDevice.getInstance(instrumentation); + mDevice.setOrientationNatural(); mLauncher = new LauncherInstrumentation(instrumentation); mQuickstepOnOffExecutor = new NavigationModeSwitchRule(mLauncher); |