Lines Matching defs:subtypeId

1602     /* package */ void setInputMethodLocked(String id, int subtypeId) {
1616 if (subtypeId >= 0 && subtypeId < subtypeCount) {
1617 newSubtype = info.getSubtypeAt(subtypeId);
1629 setSelectedInputMethodAndSubtypeLocked(info, subtypeId, true);
1646 // subtypeId the name of a subtype which will be set.
1647 setSelectedInputMethodAndSubtypeLocked(info, subtypeId, false);
2029 int subtypeId = NOT_A_SUBTYPE_ID;
2039 subtypeId = getSubtypeIdFromHashCode(lastImi, lastSubtypeHash);
2061 subtypeId = getSubtypeIdFromHashCode(
2075 + ", from: " + mCurMethodId + ", " + subtypeId);
2077 setInputMethodWithSubtypeId(token, targetLastImiId, subtypeId);
2163 private void setInputMethodWithSubtypeId(IBinder token, String id, int subtypeId) {
2181 setInputMethodLocked(id, subtypeId);
2595 int subtypeId = mSubtypeIds[i];
2596 if ((subtypeId == NOT_A_SUBTYPE_ID)
2597 || (lastInputMethodSubtypeId == NOT_A_SUBTYPE_ID && subtypeId == 0)
2598 || (subtypeId == lastInputMethodSubtypeId)) {
2654 int subtypeId = mSubtypeIds[which];
2657 if ((subtypeId < 0)
2658 || (subtypeId >= im.getSubtypeCount())) {
2659 subtypeId = NOT_A_SUBTYPE_ID;
2661 setInputMethodLocked(im.getId(), subtypeId);
2697 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) {
2701 mSubtypeId = subtypeId;
2878 String subtypeId = NOT_A_SUBTYPE_ID_STR;
2880 subtypeId = String.valueOf(mCurrentSubtype.hashCode());
2883 mSettings.addSubtypeToHistory(mCurMethodId, subtypeId);
2887 private void setSelectedInputMethodAndSubtypeLocked(InputMethodInfo imi, int subtypeId,
2893 if (imi == null || subtypeId < 0) {
2897 if (subtypeId < imi.getSubtypeCount()) {
2898 InputMethodSubtype subtype = imi.getSubtypeAt(subtypeId);
3042 * @return the most applicable subtypeId
3200 int subtypeId = getSelectedInputMethodSubtypeId(mCurMethodId);
3201 if (subtypeId == NOT_A_SUBTYPE_ID) {
3222 mCurrentSubtype = getSubtypes(imi).get(subtypeId);
3277 int subtypeId = getSubtypeIdFromHashCode(imi, subtype.hashCode());
3278 if (subtypeId != NOT_A_SUBTYPE_ID) {
3279 setInputMethodLocked(mCurMethodId, subtypeId);
3435 for (String subtypeId: subtypes) {
3436 builder.append(INPUT_METHOD_SUBTYPE_SEPARATER).append(subtypeId);
3637 String subtypeId = ime.second;
3638 if (TextUtils.isEmpty(subtypeId)) {
3639 subtypeId = NOT_A_SUBTYPE_ID_STR;
3647 subtypeId);
3653 public void addSubtypeToHistory(String imeId, String subtypeId) {
3667 Slog.v(TAG, "Add subtype to the history: " + imeId + ", " + subtypeId);
3669 saveSubtypeHistory(subtypeHistory, imeId, subtypeId);
3747 // If both imeId and subtypeId are enabled, return subtypeId.
3762 // If imeId was enabled but subtypeId was disabled.
3766 // If both imeId and subtypeId are disabled, return null
3781 String subtypeId = NOT_A_SUBTYPE_ID_STR;
3785 subtypeId = mSubtypeSplitter.next();
3788 imsList.add(new Pair<String, String>(imeId, subtypeId));
3812 public void putSelectedSubtype(int subtypeId) {
3814 Slog.d(TAG, "putSelectedInputMethodSubtypeStr: " + subtypeId + ", "
3818 subtypeId, mCurrentUserId);