Enforcing natural screen orientation for test case

The whole setting activity is not visible on landscape mode on small screens. Enforcing the default / portrait orientation will make sure that all elements of the activity are visible on screen.

Test: atest InputMethodManagerMultiDisplayTest#testShowInputMethodAndSubtypeEnablerOnSingleDisplay
Fix: 283644496
Change-Id: Ie45610a407bfcf86e6bf40c896628f4f48ff126b
diff --git a/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodManagerMultiDisplayTest.java b/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodManagerMultiDisplayTest.java
index e765d6d..c0f27a3 100644
--- a/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodManagerMultiDisplayTest.java
+++ b/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodManagerMultiDisplayTest.java
@@ -29,6 +29,7 @@
 
 import android.content.ComponentName;
 import android.hardware.display.DisplayManager;
+import android.os.RemoteException;
 import android.platform.test.annotations.AppModeFull;
 import android.server.wm.MultiDisplayTestBase;
 import android.server.wm.WindowManagerState;
@@ -81,9 +82,10 @@
     }
 
     @Test
-    public void testShowInputMethodAndSubtypeEnablerOnSingleDisplay() {
+    public void testShowInputMethodAndSubtypeEnablerOnSingleDisplay() throws RemoteException {
         assumeFalse(isCar());
         final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation);
+        uiDevice.setOrientationNatural();
 
         mImManager.showInputMethodAndSubtypeEnabler(MOCK_IME_ID);
         // Check if new activity was started with subtype settings