Home
last modified time | relevance | path

Searched refs:mInputMethodManager (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/
DInputMethodUtilTest.java77 private InputMethodManager mInputMethodManager; field in InputMethodUtilTest
125 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(null); in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull()
128 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull()
137 mPackageManager, mInputMethodManager, PLACEHOLDER_PACKAGE_NAME); in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList()
138 when(mInputMethodManager.getEnabledInputMethodList()) in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList()
144 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList()
155 mPackageManager, mInputMethodManager, PLACEHOLDER_PACKAGE_NAME); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME()
159 mPackageManager, mInputMethodManager, gvtPackageName); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME()
162 when(mInputMethodManager.getEnabledInputMethodList()) in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME()
170 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME()
[all …]
DEnabledKeyboardPreferenceControllerTest.java84 private InputMethodManager mInputMethodManager; field in EnabledKeyboardPreferenceControllerTest
99 when(mContext.getSystemService(InputMethodManager.class)).thenReturn(mInputMethodManager); in setUp()
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()
153 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_skipVoiceTyping()
165 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceIcon()
178 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceTitle()
191 when(mInputMethodManager.getEnabledInputMethodList()).thenReturn(infos); in refreshUi_verifyPreferenceSummary()
197 InputMethodUtil.getSummaryString(mContext, mInputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary()
[all …]
DKeyboardPreferenceControllerTest.java76 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()
DKeyboardManagementPreferenceControllerTest.java102 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()
311 InputMethodUtil.getSummaryString(mContext, mInputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary()
862 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleTrue_showDirectBootDialog_negative_inputMethodDisabled()
931 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleFalse_inputMethodDisabled()
1134 when(mInputMethodManager.getEnabledInputMethodSubtypeList(any(), anyBoolean())) in createMockInputMethodInfo()
1194 when(mInputMethodManager.getInputMethodList()).thenReturn(list); in setInputMethodList()
1212 when(mInputMethodManager.getEnabledInputMethodList()).thenAnswer( in setEnabledInputMethodList()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java52 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() local
DEnabledKeyboardPreferenceController.java53 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
DKeyboardPreferenceController.java40 private final InputMethodManager mInputMethodManager; field in KeyboardPreferenceController
49 mInputMethodManager = context.getSystemService(InputMethodManager.class); in KeyboardPreferenceController()
61 mInputMethodManager, mDevicePolicyManager); in updateState()
/packages/apps/Settings/src/com/android/settings/language/
DLanguageAndInputPreferenceController.java34 private InputMethodManager mInputMethodManager; field in LanguageAndInputPreferenceController
39 mInputMethodManager = mContext.getSystemService(InputMethodManager.class); in LanguageAndInputPreferenceController()
54 final List<InputMethodInfo> imis = mInputMethodManager.getInputMethodList(); in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragmentTest.java75 private InputMethodManager mInputMethodManager; field in AvailableVirtualKeyboardFragmentTest
139 verify(mInputMethodManager).getEnabledInputMethodListAsUser(anyInt()); in updateInputMethodPreferenceViews_callsExpectedMethods()
177 when(mContext.getSystemService(InputMethodManager.class)).thenReturn(mInputMethodManager); in initMock()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DMainClusterActivity.java111 private InputMethodManager mInputMethodManager; field in MainClusterActivity
209 mInputMethodManager = getSystemService(InputMethodManager.class); in onCreate()
339 mInputMethodManager.dispatchKeyEventFromInputMethod(getCurrentFocus(), event); in onKeyEvent()
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java566 @Nullable private InputMethodManager mInputMethodManager; field in RotaryService
720 mInputMethodManager = getSystemService(InputMethodManager.class); in onServiceConnected()
721 if (mInputMethodManager == null) { in onServiceConnected()
2884 if (TextUtils.isEmpty(componentName) || mInputMethodManager == null) { in isInstalledIme()
2891 List<InputMethodInfo> imeList = mInputMethodManager.getInputMethodList(); in isInstalledIme()