/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/ |
H A D | InputMethodUtilTest.java | 77 private InputMethodManager mInputMethodManager; field in InputMethodUtilTest 128 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull() 138 when(mInputMethodManager.getEnabledInputMethodList()) in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() 144 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() 156 when(mInputMethodManager.getEnabledInputMethodList()) in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 161 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 170 mInputMethodManager, PLACEHOLDER_PACKAGE_NAME); in getPackageIcon_hasApplicationIcon() 262 when(mInputMethodManager.getEnabledInputMethodList()) in disableInputMethod_notEnabled_remainsUnchanged() 279 when(mInputMethodManager.getEnabledInputMethodList()) in disableInputMethod_notDefault_removesIMEWhileDefaultRemainsSame() 296 when(mInputMethodManager.getEnabledInputMethodList()) in disableInputMethod_twoDefaultableIMEsEnabled_removesIMEAndChangesDefault() [all …]
|
H A D | EnabledKeyboardPreferenceControllerTest.java | 84 private InputMethodManager mInputMethodManager; field in EnabledKeyboardPreferenceControllerTest 116 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_permitAllInputMethods() 128 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_hasAllowedImeByOrganization() 140 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_disallowedByOrganization() 151 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_skipVoiceTyping() 162 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceIcon() 175 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceTitle() 188 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceSummary() 202 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in performClick_launchSettingsActivity() 222 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in performClick_missingSettingsActivity_noCrash() [all …]
|
H A D | KeyboardPreferenceControllerTest.java | 76 private InputMethodManager mInputMethodManager; field in KeyboardPreferenceControllerTest 90 when(mContext.getSystemService(InputMethodManager.class)).thenReturn(mInputMethodManager); in setUp() 103 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(Collections.emptyList()); in refreshUi_noInputMethodInfo() 117 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_permitAllInputMethods_hasOneInputMethodInfo() 134 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo() 154 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_permitAllInputMethods_hasThreeInputMethodInfo() 171 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_hasAllowedImeByOrganization() 186 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_disallowedByOrganization()
|
H A D | KeyboardManagementPreferenceControllerTest.java | 102 private InputMethodManager mInputMethodManager; field in KeyboardManagementPreferenceControllerTest 120 when(mContext.getSystemService(InputMethodManager.class)).thenReturn(mInputMethodManager); in setUp() 121 when(mInputMethodManager.getInputMethodList()).thenReturn(new ArrayList<>()); in setUp() 308 InputMethodUtil.getSummaryString(mContext, mInputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary() 859 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleTrue_showDirectBootDialog_negative_inputMethodDisabled() 928 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleFalse_inputMethodDisabled() 1131 when(mInputMethodManager.getEnabledInputMethodSubtypeList(any(), anyBoolean())) in createMockInputMethodInfo() 1191 when(mInputMethodManager.getInputMethodList()).thenReturn(list); in setInputMethodList() 1209 when(mInputMethodManager.getEnabledInputMethodList()).thenAnswer( in setEnabledInputMethodList()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/ |
H A D | WinscopeTraceTest.java | 59 private IInputMethodManager mInputMethodManager; field in WinscopeTraceTest 96 doReturn(false).when(mInputMethodManager).isImeTraceEnabled(); in sfReturnsTraceEnabled_shouldReturnEnabled() 117 doReturn(false).when(mInputMethodManager).isImeTraceEnabled(); in wmAndSfAndImmReturnTraceDisabled_shouldReturnDisabled() 130 doReturn(true).when(mInputMethodManager).isImeTraceEnabled(); in wmAndSfReturnTraceDisabled_immReturnsTraceEnabled_shouldReturnEnabled() 143 doReturn(true).when(mInputMethodManager).isImeTraceEnabled(); in immReturnsTraceEnabled_shouldReturnEnabled() 152 doReturn(false).when(mInputMethodManager).isImeTraceEnabled(); in immReturnsTraceDisabled_shouldReturnDisabled() 170 doReturn(false).when(mInputMethodManager).isImeTraceEnabled(); in sfUnavailableAndWmAndImmReturnTraceDisabled_shouldReturnDisabled() 185 verify(mInputMethodManager).startImeTrace(); in setIsEnableTrue_shouldEnableImeTrace() 186 verifyNoMoreInteractions(mInputMethodManager); in setIsEnableTrue_shouldEnableImeTrace() 213 verify(mInputMethodManager).stopImeTrace(); in setIsEnableFalse_shouldDisableImeTrace() [all …]
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
H A D | KeyboardManagementPreferenceController.java | 52 private final InputMethodManager mInputMethodManager; field in KeyboardManagementPreferenceController 84 mInputMethodManager = context.getSystemService(InputMethodManager.class); in KeyboardManagementPreferenceController() 120 List<InputMethodInfo> inputMethodInfos = mInputMethodManager.getInputMethodList(); in updateState() 128 mInputMethodManager, a))); in updateState() 170 List<InputMethodInfo> inputMethodInfos = mInputMethodManager.getEnabledInputMethodList(); in isOnlyEnabledDefaultInputMethod() 200 mInputMethodManager, inputMethodInfo)); in createSwitchPreference() local 222 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference()
|
H A D | KeyboardPreferenceController.java | 40 private final InputMethodManager mInputMethodManager; field in KeyboardPreferenceController 49 mInputMethodManager = context.getSystemService(InputMethodManager.class); in KeyboardPreferenceController() 61 mInputMethodManager, mDevicePolicyManager); in updateState()
|
H A D | EnabledKeyboardPreferenceController.java | 53 private final InputMethodManager mInputMethodManager; field in EnabledKeyboardPreferenceController 62 mInputMethodManager = context.getSystemService(InputMethodManager.class); in EnabledKeyboardPreferenceController() 76 mInputMethodManager, mDevicePolicyManager); in updateState() 125 getContext(), mInputMethodManager, inputMethodInfo)); in createPreference() local
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
H A D | SearchView.java | 54 private final InputMethodManager mInputMethodManager; field in SearchView 102 mInputMethodManager = getContext().getSystemService(InputMethodManager.class); in SearchView() 114 mInputMethodManager.showSoftInput(mSearchText, 0); in SearchView() 129 mSearchText.setOnClickListener((view) -> mInputMethodManager.showSoftInput(view, 0)); in SearchView() 134 mInputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); in SearchView() 207 mInputMethodManager.showSoftInput(mSearchText, 0); in onVisibilityChanged() 285 mInputMethodManager.restartInput(mSearchText); in setPlainText()
|
H A D | SearchWidescreenController.java | 89 private final InputMethodManager mInputMethodManager; field in SearchWidescreenController 104 mInputMethodManager = context.getSystemService(InputMethodManager.class); in SearchWidescreenController() 243 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_ACTION, null); in displaySearchWideScreen() 266 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_SEARCH_RESULTS, in displaySearchWideScreen() 343 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_ACTION, bundle); in onSurfaceInfo()
|
/aosp12/packages/apps/Settings/src/com/android/settings/language/ |
H A D | LanguageAndInputPreferenceController.java | 34 private InputMethodManager mInputMethodManager; field in LanguageAndInputPreferenceController 39 mInputMethodManager = mContext.getSystemService(InputMethodManager.class); in LanguageAndInputPreferenceController() 54 final List<InputMethodInfo> imis = mInputMethodManager.getInputMethodList(); in getSummary()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/widescreenime/ |
H A D | WideScreenImeActivity.java | 73 private InputMethodManager mInputMethodManager; field in WideScreenImeActivity 80 mInputMethodManager = (InputMethodManager) in onCreate() 175 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addIconToExtractedView() 191 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addErrorDescToContentArea() 208 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in hideExtractionView() 222 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addDescToContentArea() 236 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in hideContentArea()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/ |
H A D | SearchController.java | 51 private final InputMethodManager mInputMethodManager; field in SearchController 99 mInputMethodManager = Objects.requireNonNull((InputMethodManager) in SearchController() 139 mEditText.setOnClickListener(view -> mInputMethodManager.showSoftInput(view, 0)); in setSearchMode() 143 mInputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); in setSearchMode() 171 mInputMethodManager.showSoftInput(mEditText, 0); in setSearchMode() 211 mInputMethodManager.showSoftInput(mEditText, 0); in setSearchMode()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardPasswordViewController.java | 56 private final InputMethodManager mInputMethodManager; field in KeyguardPasswordViewController 124 mInputMethodManager = inputMethodManager; in KeyguardPasswordViewController() 149 mInputMethodManager.showInputMethodPickerFromSystem(false, in onViewAttached() 246 mInputMethodManager, false); in updateSwitchImeButton()
|
H A D | KeyguardInputViewController.java | 163 private final InputMethodManager mInputMethodManager; field in KeyguardInputViewController.Factory 186 mInputMethodManager = inputMethodManager; in Factory() 213 mInputMethodManager, emergencyButtonController, mMainExecutor, mResources, in create()
|
/aosp12/packages/apps/Settings/src/com/android/settings/development/qstile/ |
H A D | DevelopmentTiles.java | 201 private IInputMethodManager mInputMethodManager; field in DevelopmentTiles.WinscopeTrace 209 mInputMethodManager = IInputMethodManager.Stub.asInterface( in onCreate() 265 return mInputMethodManager.isImeTraceEnabled(); in isImeTraceEnabled() 328 mInputMethodManager.startImeTrace(); in setImeTraceEnabled() 330 mInputMethodManager.stopImeTrace(); in setImeTraceEnabled()
|
/aosp12/frameworks/base/core/java/android/view/textservice/ |
H A D | TextServicesManager.java | 99 private final InputMethodManager mInputMethodManager; field in TextServicesManager 106 mInputMethodManager = inputMethodManager; in TextServicesManager() 146 return mInputMethodManager; in getInputMethodManager()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/ |
H A D | AlertDialogBuilder.java | 82 private InputMethodManager mInputMethodManager; field in AlertDialogBuilder 103 mInputMethodManager.sendAppPrivateCommand(mCarUiEditText, WIDE_SCREEN_ACTION, 130 mInputMethodManager.sendAppPrivateCommand(mCarUiEditText, WIDE_SCREEN_ACTION, 149 mInputMethodManager = (InputMethodManager) in AlertDialogBuilder()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | RemoteInputView.java | 904 private InputMethodManager mInputMethodManager; field in RemoteInputView.RemoteEditText 926 if (mInputMethodManager != null) { in hideIme() 927 mInputMethodManager.hideSoftInputFromWindow(getWindowToken(), 0); in hideIme() 1037 mInputMethodManager = targetContext.getSystemService(InputMethodManager.class); in onCreateInputConnection() 1038 if (mInputMethodManager != null) { in onCreateInputConnection() 1045 mInputMethodManager.viewClicked(RemoteEditText.this); in onCreateInputConnection() 1046 mInputMethodManager.showSoftInput(RemoteEditText.this, 0); in onCreateInputConnection()
|
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
H A D | MainClusterActivity.java | 111 private InputMethodManager mInputMethodManager; field in MainClusterActivity 209 mInputMethodManager = getSystemService(InputMethodManager.class); in onCreate() 339 mInputMethodManager.dispatchKeyEventFromInputMethod(getCurrentFocus(), event); in onKeyEvent()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
H A D | NavigationBar.java | 240 private final InputMethodManager mInputMethodManager; field in NavigationBar 539 mInputMethodManager = inputMethodManager; in NavigationBar() 1262 mInputMethodManager.showInputMethodPickerFromSystem( in onImeSwitcherClick() 1687 private final InputMethodManager mInputMethodManager; field in NavigationBar.Factory 1750 mInputMethodManager = inputMethodManager; in Factory() 1767 mInputMethodManager); in create()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/ |
H A D | NavigationBarTest.java | 155 private InputMethodManager mInputMethodManager; field in NavigationBarTest 386 mInputMethodManager); in createNavBar()
|