Home
last modified time | relevance | path

Searched refs:InputMethodUtil (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DInputMethodUtilTest.java97 .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 …]
DEnabledKeyboardPreferenceControllerTest.java129 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()
DKeyboardManagementPreferenceControllerTest.java190 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/
DKeyboardManagementPreferenceController.java56 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()
DEnabledKeyboardPreferenceController.java76 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()
DInputMethodUtil.java42 public final class InputMethodUtil { class
59 private InputMethodUtil() { in InputMethodUtil() method in InputMethodUtil
75 info.getPackageName().equals(InputMethodUtil.GOOGLE_VOICE_TYPING); in getPermittedAndEnabledInputMethodList()
DKeyboardPreferenceController.java62 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/
DShadowInputMethodManager.java26 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()