/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtilTest.java | 77 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() 153 mPackageManager, mInputMethodManager, PLACEHOLDER_PACKAGE_NAME); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 155 mPackageManager, mInputMethodManager, InputMethodUtil.GOOGLE_VOICE_TYPING); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 156 when(mInputMethodManager.getEnabledInputMethodList()) in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 161 mInputMethodManager, mDevicePolicyManager); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() [all …]
|
D | EnabledKeyboardPreferenceControllerTest.java | 84 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() 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() 194 InputMethodUtil.getSummaryString(mContext, mInputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary() [all …]
|
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()
|
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() 293 InputMethodUtil.getSummaryString(mContext, mInputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary() 823 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleTrue_showDirectBootDialog_negative_inputMethodDisabled() 888 assertThat(mInputMethodManager.getEnabledInputMethodList().size()) in performClick_toggleFalse_inputMethodDisabled() 1083 when(mInputMethodManager.getEnabledInputMethodSubtypeList(any(), anyBoolean())) in createMockInputMethodInfo() 1143 when(mInputMethodManager.getInputMethodList()).thenReturn(list); in setInputMethodList() 1161 when(mInputMethodManager.getEnabledInputMethodList()).thenAnswer( in setEnabledInputMethodList()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/ |
D | WinscopeTraceTest.java | 59 private IInputMethodManager mInputMethodManager; field in WinscopeTraceTest 72 ReflectionHelpers.setField(mWinscopeTrace, "mInputMethodManager", mInputMethodManager); in setUp() 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() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
D | SearchView.java | 49 private final InputMethodManager mInputMethodManager; field in SearchView 92 mInputMethodManager = getContext().getSystemService(InputMethodManager.class); in SearchView() 104 mInputMethodManager.showSoftInput(mSearchText, 0); in SearchView() 119 mSearchText.setOnClickListener((view) -> mInputMethodManager.showSoftInput(view, 0)); in SearchView() 124 mInputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); in SearchView() 185 mInputMethodManager.showSoftInput(mSearchText, 0); in onVisibilityChanged() 258 mInputMethodManager.restartInput(mSearchText); in setPlainText()
|
D | SearchWidescreenController.java | 82 private final InputMethodManager mInputMethodManager; field in SearchWidescreenController 97 mInputMethodManager = context.getSystemService(InputMethodManager.class); in SearchWidescreenController() 236 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_ACTION, null); in displaySearchWideScreen() 259 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_SEARCH_RESULTS, in displaySearchWideScreen() 329 mInputMethodManager.sendAppPrivateCommand(mTextView, WIDE_SCREEN_ACTION, bundle); in onSurfaceInfo()
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceController.java | 50 private final InputMethodManager mInputMethodManager; field in KeyboardManagementPreferenceController 82 mInputMethodManager = context.getSystemService(InputMethodManager.class); in KeyboardManagementPreferenceController() 118 List<InputMethodInfo> inputMethodInfos = mInputMethodManager.getInputMethodList(); in updateState() 126 mInputMethodManager, a))); in updateState() 164 List<InputMethodInfo> inputMethodInfos = mInputMethodManager.getEnabledInputMethodList(); in isOnlyEnabledDefaultInputMethod() 193 mInputMethodManager, inputMethodInfo)); in createSwitchPreference() local 209 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference() local
|
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
|
D | KeyboardPreferenceController.java | 40 private final InputMethodManager mInputMethodManager; field in KeyboardPreferenceController 49 mInputMethodManager = context.getSystemService(InputMethodManager.class); in KeyboardPreferenceController() 61 mInputMethodManager, mDevicePolicyManager); in updateState()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/widescreenime/ |
D | WideScreenImeActivity.java | 72 private InputMethodManager mInputMethodManager; field in WideScreenImeActivity 79 mInputMethodManager = (InputMethodManager) in onCreate() 162 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addIconToExtractedView() 174 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addErrorDescToContentArea() 187 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in hideExtractionView() 198 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addDescToContentArea() 208 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in hideContentArea()
|
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/ |
D | SearchController.java | 49 private final InputMethodManager mInputMethodManager; field in SearchController 93 mInputMethodManager = Objects.requireNonNull((InputMethodManager) in SearchController() 132 mEditText.setOnClickListener(view -> mInputMethodManager.showSoftInput(view, 0)); in setSearchMode() 136 mInputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); in setSearchMode() 164 mInputMethodManager.showSoftInput(mEditText, 0); in setSearchMode() 200 mInputMethodManager.showSoftInput(mEditText, 0); in setSearchMode()
|
/packages/apps/Settings/src/com/android/settings/language/ |
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()
|
/packages/apps/Settings/src/com/android/settings/development/qstile/ |
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()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/ |
D | AlertDialogBuilder.java | 74 private InputMethodManager mInputMethodManager; field in AlertDialogBuilder 93 mInputMethodManager.sendAppPrivateCommand(mCarUiEditText, WIDE_SCREEN_ACTION, 119 mInputMethodManager.sendAppPrivateCommand(mCarUiEditText, WIDE_SCREEN_ACTION, 138 mInputMethodManager = (InputMethodManager) in AlertDialogBuilder()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | MainClusterActivity.java | 111 private InputMethodManager mInputMethodManager; field in MainClusterActivity 209 mInputMethodManager = getSystemService(InputMethodManager.class); in onCreate() 339 mInputMethodManager.dispatchKeyEventFromInputMethod(getCurrentFocus(), event); in onKeyEvent()
|