Loading services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -866,6 +866,9 @@ public class InputMethodServiceTest { () -> mActivity.showImeWithWindowInsetsController(), EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var backButton = getUiObject(By.res(INPUT_METHOD_NAV_BACK_ID)); verifyInputViewStatus( () -> { Loading @@ -892,6 +895,9 @@ public class InputMethodServiceTest { () -> mActivity.showImeWithWindowInsetsController(), EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var backButton = getUiObject(By.res(INPUT_METHOD_NAV_BACK_ID)); verifyInputViewStatus( () -> { Loading Loading @@ -927,6 +933,9 @@ public class InputMethodServiceTest { }, EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var imeSwitcherButton = getUiObject(By.res(INPUT_METHOD_NAV_IME_SWITCHER_ID)); imeSwitcherButton.click(); mInstrumentation.waitForIdleSync(); Loading Loading @@ -965,6 +974,9 @@ public class InputMethodServiceTest { }, EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var imeSwitcherButton = getUiObject(By.res(INPUT_METHOD_NAV_IME_SWITCHER_ID)); imeSwitcherButton.longClick(); mInstrumentation.waitForIdleSync(); Loading Loading
services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -866,6 +866,9 @@ public class InputMethodServiceTest { () -> mActivity.showImeWithWindowInsetsController(), EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var backButton = getUiObject(By.res(INPUT_METHOD_NAV_BACK_ID)); verifyInputViewStatus( () -> { Loading @@ -892,6 +895,9 @@ public class InputMethodServiceTest { () -> mActivity.showImeWithWindowInsetsController(), EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var backButton = getUiObject(By.res(INPUT_METHOD_NAV_BACK_ID)); verifyInputViewStatus( () -> { Loading Loading @@ -927,6 +933,9 @@ public class InputMethodServiceTest { }, EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var imeSwitcherButton = getUiObject(By.res(INPUT_METHOD_NAV_IME_SWITCHER_ID)); imeSwitcherButton.click(); mInstrumentation.waitForIdleSync(); Loading Loading @@ -965,6 +974,9 @@ public class InputMethodServiceTest { }, EVENT_SHOW, true /* eventExpected */, true /* shown */, "IME is shown"); eventually(() -> assertWithMessage("IME navigation bar is shown") .that(mInputMethodService.isImeNavigationBarShownForTesting()).isTrue()); final var imeSwitcherButton = getUiObject(By.res(INPUT_METHOD_NAV_IME_SWITCHER_ID)); imeSwitcherButton.longClick(); mInstrumentation.waitForIdleSync(); Loading