Home
last modified time | relevance | path

Searched refs:subtypeHashCode (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeHandle.java79 private static String encodeHandle(@NonNull String imeId, int subtypeHashCode) { in encodeHandle() argument
80 return imeId + DATA_SEPARATOR + SUBTYPE_TAG + DATA_SEPARATOR + subtypeHashCode; in encodeHandle()
99 final int subtypeHashCode = in of() local
101 return new InputMethodSubtypeHandle(encodeHandle(imi.getId(), subtypeHashCode)); in of()
144 final int subtypeHashCode; in of() local
146 subtypeHashCode = Integer.parseInt(hashCodeStr); in of()
152 if (!Objects.equals(encodeHandle(imeId, subtypeHashCode), stringHandle)) { in of()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodSettings.java383 final String subtypeHashCode = in getLastSubtypeForInputMethodInternal() local
386 if (!TextUtils.isEmpty(subtypeHashCode)) { in getLastSubtypeForInputMethodInternal()
389 "Enabled subtype found in the history: " + subtypeHashCode); in getLastSubtypeForInputMethodInternal()
391 return new Pair<>(imeInTheHistory, subtypeHashCode); in getLastSubtypeForInputMethodInternal()
402 ArrayList<String>>> enabledImes, String imeId, String subtypeHashCode) { in getEnabledSubtypeHashCodeForInputMethodAndSubtype() argument
421 if (String.valueOf(st.hashCode()).equals(subtypeHashCode)) { in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
422 return subtypeHashCode; in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
429 if (s.equals(subtypeHashCode)) { in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
432 final int hashCode = Integer.parseInt(subtypeHashCode); in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
559 final int subtypeHashCode = getSelectedInputMethodSubtypeHashCode(); in getSelectedInputMethodSubtypeId() local
[all …]
DSubtypeUtils.java105 static boolean isValidSubtypeHashCode(InputMethodInfo imi, int subtypeHashCode) { in isValidSubtypeHashCode() argument
106 return getSubtypeIdFromHashCode(imi, subtypeHashCode) != NOT_A_SUBTYPE_ID; in isValidSubtypeHashCode()
109 static int getSubtypeIdFromHashCode(InputMethodInfo imi, int subtypeHashCode) { in getSubtypeIdFromHashCode() argument
114 if (subtypeHashCode == ims.hashCode()) { in getSubtypeIdFromHashCode()
DInputMethodSubtypeSwitchingController.java200 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList() local
202 if (enabledSubtypeSet.contains(subtypeHashCode) in getSortedInputMethodAndSubtypeList()
214 enabledSubtypeSet.remove(subtypeHashCode); in getSortedInputMethodAndSubtypeList()
DInputMethodManagerService.java5496 String subtypeHashCode = settings.getLastSubtypeForInputMethod(newDefaultIme); in resetSelectedInputMethodAndSubtypeLocked() local
5497 if (subtypeHashCode != null) { in resetSelectedInputMethodAndSubtypeLocked()
5500 Integer.parseInt(subtypeHashCode)); in resetSelectedInputMethodAndSubtypeLocked()
5502 Slog.w(TAG, "HashCode for subtype looks broken: " + subtypeHashCode, e); in resetSelectedInputMethodAndSubtypeLocked()
/frameworks/base/services/core/java/com/android/server/textservices/
DTextServicesManagerService.java507 final int subtypeHashCode; in getCurrentSpellCheckerSubtype() local
515 subtypeHashCode = in getCurrentSpellCheckerSubtype()
518 Slog.w(TAG, "getCurrentSpellCheckerSubtype: " + subtypeHashCode); in getCurrentSpellCheckerSubtype()
529 if (subtypeHashCode == SpellCheckerSubtype.SUBTYPE_ID_NONE in getCurrentSpellCheckerSubtype()
535 if (subtypeHashCode != 0) { in getCurrentSpellCheckerSubtype()
539 if (scs.hashCode() == subtypeHashCode) { in getCurrentSpellCheckerSubtype()