Searched refs:subtypeHashCode (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeHandle.java | 79 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | InputMethodUtils.java | 636 final String subtypeHashCode = in getLastSubtypeForInputMethodLockedInternal() local 639 if (!TextUtils.isEmpty(subtypeHashCode)) { in getLastSubtypeForInputMethodLockedInternal() 671 return subtypeHashCode; in getEnabledSubtypeHashCodeForInputMethodAndSubtypeLocked() 677 if (s.equals(subtypeHashCode)) { in getEnabledSubtypeHashCodeForInputMethodAndSubtypeLocked() 847 if (subtypeHashCode != InputMethodUtils.NOT_A_SUBTYPE_ID) { in getCurrentInputMethodSubtypeForNonCurrentUsers() 849 subtypeHashCode); in getCurrentInputMethodSubtypeForNonCurrentUsers() 906 for (int subtypeHashCode : subtypeHashCodes) { in setEnabledInputMethodSubtypes() 907 if (subtypeHashCode == NOT_A_SUBTYPE_ID) { in setEnabledInputMethodSubtypes() 910 if (!SubtypeUtils.isValidSubtypeId(imi, subtypeHashCode)) { in setEnabledInputMethodSubtypes() 913 if (validSubtypeHashCodes.indexOf(subtypeHashCode) >= 0) { in setEnabledInputMethodSubtypes() [all …]
|
H A D | SubtypeUtils.java | 106 static boolean isValidSubtypeId(InputMethodInfo imi, int subtypeHashCode) { in isValidSubtypeId() argument 107 return getSubtypeIdFromHashCode(imi, subtypeHashCode) != NOT_A_SUBTYPE_ID; in isValidSubtypeId() 110 static int getSubtypeIdFromHashCode(InputMethodInfo imi, int subtypeHashCode) { in getSubtypeIdFromHashCode() argument 115 if (subtypeHashCode == ims.hashCode()) { in getSubtypeIdFromHashCode()
|
H A D | InputMethodSubtypeSwitchingController.java | 216 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList() local 218 if (enabledSubtypeSet.contains(subtypeHashCode) in getSortedInputMethodAndSubtypeList() 230 enabledSubtypeSet.remove(subtypeHashCode); in getSortedInputMethodAndSubtypeList()
|
H A D | InputMethodManagerService.java | 5523 String subtypeHashCode = mSettings.getLastSubtypeForInputMethodLocked(newDefaultIme); in resetSelectedInputMethodAndSubtypeLocked() local 5524 if (subtypeHashCode != null) { in resetSelectedInputMethodAndSubtypeLocked() 5527 Integer.parseInt(subtypeHashCode)); in resetSelectedInputMethodAndSubtypeLocked() 5529 Slog.w(TAG, "HashCode for subtype looks broken: " + subtypeHashCode, e); in resetSelectedInputMethodAndSubtypeLocked()
|
/aosp14/frameworks/base/services/core/java/com/android/server/textservices/ |
H A D | TextServicesManagerService.java | 507 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()
|