Searched refs:InputMethodUtil (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtilTest.java | 97 .stream(DUMMY_ENABLED_INPUT_METHODS.split(String.valueOf(InputMethodUtil in setUp() 108 .stream(DUMMY_ENABLED_INPUT_METHODS.split(String.valueOf(InputMethodUtil in setUp() 123 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull() 139 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() 151 mPackageManager, mInputMethodManager, InputMethodUtil.GOOGLE_VOICE_TYPING); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 156 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 168 assertThat(InputMethodUtil.getPackageIcon(mPackageManager, info)).isEqualTo(mIcon); in getPackageIcon_hasApplicationIcon() 177 assertThat(InputMethodUtil.getPackageIcon(mPackageManager, info)).isEqualTo( in getPackageIcon_noApplicationIcon() 178 InputMethodUtil.NO_ICON); in getPackageIcon_noApplicationIcon() 185 assertThat(InputMethodUtil.getPackageLabel(mPackageManager, info)).isEqualTo( in getPackageLabel() [all …]
|
D | EnabledKeyboardPreferenceControllerTest.java | 129 createInputMethodInfoList(InputMethodUtil.GOOGLE_VOICE_TYPING); in refreshUi_skipVoiceTyping() 147 InputMethodUtil.getPackageIcon(mContext.getPackageManager(), infos.get(0))); in refreshUi_verifyPreferenceIcon() 160 InputMethodUtil.getPackageLabel(mContext.getPackageManager(), infos.get(0))); in refreshUi_verifyPreferenceTitle() 175 InputMethodUtil.getSummaryString(mContext, inputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary()
|
D | KeyboardManagementPreferenceControllerTest.java | 190 createInputMethodInfoList(InputMethodUtil.GOOGLE_VOICE_TYPING); in refreshUi_skipVoiceTyping() 212 InputMethodUtil.getPackageIcon(mContext.getPackageManager(), infos.get(0))); in refreshUi_verifyPreferenceIcon() 229 InputMethodUtil.getPackageLabel(mContext.getPackageManager(), infos.get(0))); in refreshUi_verifyPreferenceTitle() 248 InputMethodUtil.getSummaryString(mContext, inputMethodManager, infos.get(0))); in refreshUi_verifyPreferenceSummary()
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceController.java | 56 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 69 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 124 (InputMethodInfo a) -> InputMethodUtil.getPackageLabel(mPackageManager, a)) in updateState() 125 .thenComparing((InputMethodInfo a) -> InputMethodUtil.getSummaryString(getContext(), in updateState() 133 if (inputMethodInfo.getPackageName().equals(InputMethodUtil.GOOGLE_VOICE_TYPING)) { in updateState() 186 switchPreference.setIcon(InputMethodUtil.getPackageIcon(mPackageManager, inputMethodInfo)); in createSwitchPreference() 187 switchPreference.setTitle(InputMethodUtil.getPackageLabel(mPackageManager, in createSwitchPreference() 189 switchPreference.setChecked(InputMethodUtil.isInputMethodEnabled(getContext() in createSwitchPreference() 191 switchPreference.setSummary(InputMethodUtil.getSummaryString(getContext(), in createSwitchPreference() 199 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference()
|
D | EnabledKeyboardPreferenceController.java | 76 InputMethodUtil.getPermittedAndEnabledInputMethodList( in updateState() 123 preference.setIcon(InputMethodUtil.getPackageIcon(mPackageManager, inputMethodInfo)); in createPreference() 124 preference.setTitle(InputMethodUtil.getPackageLabel(mPackageManager, inputMethodInfo)); in createPreference() 125 preference.setSummary(InputMethodUtil.getSummaryString( in createPreference()
|
D | InputMethodUtil.java | 42 public final class InputMethodUtil { class 59 private InputMethodUtil() { in InputMethodUtil() method in InputMethodUtil 75 info.getPackageName().equals(InputMethodUtil.GOOGLE_VOICE_TYPING); in getPermittedAndEnabledInputMethodList()
|
D | KeyboardPreferenceController.java | 62 InputMethodUtil.getPermittedAndEnabledInputMethodList( in updateState() 71 labels.add(InputMethodUtil.getPackageLabel(mPackageManager, inputMethodInfo)); in updateState()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowInputMethodManager.java | 26 import com.android.car.settings.inputmethod.InputMethodUtil; 88 InputMethodUtil.sInputMethodSplitter.setString(inputMethodIdString); in getEnabledInputMethodList() 89 while (InputMethodUtil.sInputMethodSplitter.hasNext()) { in getEnabledInputMethodList() 90 enabledInputMethodList.add(sInputMethodMap.get(InputMethodUtil.sInputMethodSplitter in getEnabledInputMethodList() 121 builder.append(InputMethodUtil.INPUT_METHOD_DELIMITER); in createInputMethodIdString()
|