Loading services/core/java/com/android/server/inputmethod/InputMethodMenuController.java +3 −1 Original line number Diff line number Diff line Loading @@ -209,7 +209,9 @@ final class InputMethodMenuController { } void updateKeyboardFromSettingsLocked() { mShowImeWithHardKeyboard = mSettings.isShowImeWithHardKeyboardEnabled(); mShowImeWithHardKeyboard = SecureSettingsWrapper.getBoolean(Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, false, mService.getCurrentImeUserIdLocked()); if (mSwitchingDialog != null && mSwitchingDialogTitleView != null && mSwitchingDialog.isShowing()) { final Switch hardKeySwitch = mSwitchingDialogTitleView.findViewById( Loading services/core/java/com/android/server/inputmethod/InputMethodUtils.java +0 −4 Original line number Diff line number Diff line Loading @@ -660,10 +660,6 @@ final class InputMethodUtils { return getInt(Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, NOT_A_SUBTYPE_ID); } boolean isShowImeWithHardKeyboardEnabled() { return getBoolean(Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, false); } @UserIdInt public int getCurrentUserId() { return mCurrentUserId; Loading services/tests/servicestests/src/com/android/server/inputmethod/InputMethodUtilsTest.java +0 −7 Original line number Diff line number Diff line Loading @@ -1239,9 +1239,6 @@ public class InputMethodUtilsTest { methodMap, 0 /* userId */); assertEquals(0, settings.getCurrentUserId()); settings.isShowImeWithHardKeyboardEnabled(); verify(ownerUserContext.getContentResolver(), atLeastOnce()).getAttributionSource(); settings.getEnabledInputMethodSubtypeListLocked(nonSystemIme, true); verify(ownerUserContext.getResources(), atLeastOnce()).getConfiguration(); Loading @@ -1250,10 +1247,6 @@ public class InputMethodUtilsTest { settings.switchCurrentUser(10 /* userId */); assertEquals(10, settings.getCurrentUserId()); settings.isShowImeWithHardKeyboardEnabled(); verify(TestContext.getSecondaryUserContext().getContentResolver(), atLeastOnce()).getAttributionSource(); settings.getEnabledInputMethodSubtypeListLocked(nonSystemIme, true); verify(TestContext.getSecondaryUserContext().getResources(), atLeastOnce()).getConfiguration(); Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodMenuController.java +3 −1 Original line number Diff line number Diff line Loading @@ -209,7 +209,9 @@ final class InputMethodMenuController { } void updateKeyboardFromSettingsLocked() { mShowImeWithHardKeyboard = mSettings.isShowImeWithHardKeyboardEnabled(); mShowImeWithHardKeyboard = SecureSettingsWrapper.getBoolean(Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, false, mService.getCurrentImeUserIdLocked()); if (mSwitchingDialog != null && mSwitchingDialogTitleView != null && mSwitchingDialog.isShowing()) { final Switch hardKeySwitch = mSwitchingDialogTitleView.findViewById( Loading
services/core/java/com/android/server/inputmethod/InputMethodUtils.java +0 −4 Original line number Diff line number Diff line Loading @@ -660,10 +660,6 @@ final class InputMethodUtils { return getInt(Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, NOT_A_SUBTYPE_ID); } boolean isShowImeWithHardKeyboardEnabled() { return getBoolean(Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, false); } @UserIdInt public int getCurrentUserId() { return mCurrentUserId; Loading
services/tests/servicestests/src/com/android/server/inputmethod/InputMethodUtilsTest.java +0 −7 Original line number Diff line number Diff line Loading @@ -1239,9 +1239,6 @@ public class InputMethodUtilsTest { methodMap, 0 /* userId */); assertEquals(0, settings.getCurrentUserId()); settings.isShowImeWithHardKeyboardEnabled(); verify(ownerUserContext.getContentResolver(), atLeastOnce()).getAttributionSource(); settings.getEnabledInputMethodSubtypeListLocked(nonSystemIme, true); verify(ownerUserContext.getResources(), atLeastOnce()).getConfiguration(); Loading @@ -1250,10 +1247,6 @@ public class InputMethodUtilsTest { settings.switchCurrentUser(10 /* userId */); assertEquals(10, settings.getCurrentUserId()); settings.isShowImeWithHardKeyboardEnabled(); verify(TestContext.getSecondaryUserContext().getContentResolver(), atLeastOnce()).getAttributionSource(); settings.getEnabledInputMethodSubtypeListLocked(nonSystemIme, true); verify(TestContext.getSecondaryUserContext().getResources(), atLeastOnce()).getConfiguration(); Loading