Loading core/java/android/inputmethodservice/InputMethodService.java +13 −1 Original line number Diff line number Diff line Loading @@ -1725,9 +1725,21 @@ public class InputMethodService extends AbstractInputMethodService { return "SettingsObserver{mShowImeWithHardKeyboard=" + mShowImeWithHardKeyboard + "}"; } } @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) private SettingsObserver mSettingsObserver; /** * Checks whether the IME should be shown when a hardware keyboard is connected, as configured * through {@link Settings.Secure#SHOW_IME_WITH_HARD_KEYBOARD}, for testing purposes only. * * @hide */ @VisibleForTesting public final boolean getShouldShowImeWithHardKeyboardForTesting() { return mSettingsObserver.shouldShowImeWithHardKeyboard(); } /** * You can call this to customize the theme used by your IME's window. * This theme should typically be one that derives from Loading Loading @@ -4454,7 +4466,7 @@ public class InputMethodService extends AbstractInputMethodService { * * @hide */ @VisibleForTesting(visibility = VisibleForTesting.Visibility.PRIVATE) @VisibleForTesting public final boolean isImeNavigationBarShownForTesting() { return mNavigationBarController.isShown(); } Loading services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +216 −174 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
core/java/android/inputmethodservice/InputMethodService.java +13 −1 Original line number Diff line number Diff line Loading @@ -1725,9 +1725,21 @@ public class InputMethodService extends AbstractInputMethodService { return "SettingsObserver{mShowImeWithHardKeyboard=" + mShowImeWithHardKeyboard + "}"; } } @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) private SettingsObserver mSettingsObserver; /** * Checks whether the IME should be shown when a hardware keyboard is connected, as configured * through {@link Settings.Secure#SHOW_IME_WITH_HARD_KEYBOARD}, for testing purposes only. * * @hide */ @VisibleForTesting public final boolean getShouldShowImeWithHardKeyboardForTesting() { return mSettingsObserver.shouldShowImeWithHardKeyboard(); } /** * You can call this to customize the theme used by your IME's window. * This theme should typically be one that derives from Loading Loading @@ -4454,7 +4466,7 @@ public class InputMethodService extends AbstractInputMethodService { * * @hide */ @VisibleForTesting(visibility = VisibleForTesting.Visibility.PRIVATE) @VisibleForTesting public final boolean isImeNavigationBarShownForTesting() { return mNavigationBarController.isShown(); } Loading
services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +216 −174 File changed.Preview size limit exceeded, changes collapsed. Show changes