/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputMethodSubtypeSwitchingController.java | 225 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList() 226 enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); in getSortedInputMethodAndSubtypeList() 235 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList() local 236 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList() 239 && (includeAuxiliarySubtypes || !subtype.isAuxiliary())) { in getSortedInputMethodAndSubtypeList() 241 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype in getSortedInputMethodAndSubtypeList() 245 subtypeLabel, imi, j, subtype.getLocale(), mSystemLocaleStr)); in getSortedInputMethodAndSubtypeList() 263 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId() argument 264 return subtype != null ? InputMethodUtils.getSubtypeIdFromHashCode(imi, in calculateSubtypeId() 265 subtype.hashCode()) : NOT_A_SUBTYPE_ID; in calculateSubtypeId() [all …]
|
D | InputMethodUtils.java | 367 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf() local 369 final Locale subtypeLocale = subtype.getLocaleObject(); in containsSubtypeOf() 377 subtype.getLocale())); in containsSubtypeOf() 383 mode.equalsIgnoreCase(subtype.getMode())) { in containsSubtypeOf() 404 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in getOverridingImplicitlyEnabledSubtypes() local 405 if (subtype.overridesImplicitlyEnabledSubtype() && subtype.getMode().equals(mode)) { in getOverridingImplicitlyEnabledSubtypes() 406 subtypes.add(subtype); in getOverridingImplicitlyEnabledSubtypes() 501 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local 502 if (subtype.overridesImplicitlyEnabledSubtype()) { in getImplicitlyApplicableSubtypesLockedImpl() 503 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl() [all …]
|
D | InputMethodSubtypeHandle.java | 30 public InputMethodSubtypeHandle(InputMethodInfo info, @Nullable InputMethodSubtype subtype) { in InputMethodSubtypeHandle() argument 32 if (subtype != null) { in InputMethodSubtypeHandle() 33 mSubtypeId = subtype.hashCode(); in InputMethodSubtypeHandle()
|
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
D | SpellCheckerSubtypeTest.java | 67 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, in testSubtypeWithNoSubtypeId() local 70 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithNoSubtypeId() 71 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); in testSubtypeWithNoSubtypeId() 72 assertEquals(SUBTYPE_SUBTYPE_LANGUAGE_TAG_A, subtype.getLanguageTag()); in testSubtypeWithNoSubtypeId() 73 assertEquals("Value1", subtype.getExtraValueOf("Key1")); in testSubtypeWithNoSubtypeId() 74 assertEquals("Value2", subtype.getExtraValueOf("Key2")); in testSubtypeWithNoSubtypeId() 80 subtype.hashCode()); in testSubtypeWithNoSubtypeId() 82 final SpellCheckerSubtype clonedSubtype = cloneViaParcel(subtype); in testSubtypeWithNoSubtypeId() 94 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, in testSubtypeWithSubtypeId() local 98 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithSubtypeId() [all …]
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSubtype.java | 206 SpellCheckerSubtype subtype = (SpellCheckerSubtype) o; in equals() local 207 if (subtype.mSubtypeId != SUBTYPE_ID_NONE || mSubtypeId != SUBTYPE_ID_NONE) { in equals() 208 return (subtype.hashCode() == hashCode()); in equals() 210 return (subtype.hashCode() == hashCode()) in equals() 211 && (subtype.getNameResId() == getNameResId()) in equals() 212 && (subtype.getLocale().equals(getLocale())) in equals() 213 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals() 214 && (subtype.getExtraValue().equals(getExtraValue())); in equals() 308 SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in sort() local 309 if (subtypesSet.contains(subtype)) { in sort() [all …]
|
D | TextServicesManager.java | 160 final SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in newSpellCheckerSession() local 161 final String tempSubtypeLocale = subtype.getLocale(); in newSpellCheckerSession() 164 subtypeInUse = subtype; in newSpellCheckerSession() 168 subtypeInUse = subtype; in newSpellCheckerSession() 243 public void setSpellCheckerSubtype(SpellCheckerSubtype subtype) { in setSpellCheckerSubtype() argument 246 if (subtype == null) { in setSpellCheckerSubtype() 249 hashCode = subtype.hashCode(); in setSpellCheckerSubtype()
|
D | SpellCheckerInfo.java | 116 SpellCheckerSubtype subtype = new SpellCheckerSubtype( in SpellCheckerInfo() local 127 mSubtypes.add(subtype); in SpellCheckerInfo()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 590 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals() local 591 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) { in equals() 592 return (subtype.hashCode() == hashCode()); in equals() 594 return (subtype.hashCode() == hashCode()) in equals() 595 && (subtype.getLocale().equals(getLocale())) in equals() 596 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals() 597 && (subtype.getMode().equals(getMode())) in equals() 598 && (subtype.getExtraValue().equals(getExtraValue())) in equals() 599 && (subtype.isAuxiliary() == isAuxiliary()) in equals() 600 && (subtype.overridesImplicitlyEnabledSubtype() in equals() [all …]
|
D | InputMethodInfo.java | 201 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo() local 223 if (!subtype.isAuxiliary()) { in InputMethodInfo() 226 subtypes.add(subtype); in InputMethodInfo() 243 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo() local 244 if (!subtypes.contains(subtype)) { in InputMethodInfo() 245 subtypes.add(subtype); in InputMethodInfo() 248 + subtype.getLocale() + ", " + subtype.getMode()); in InputMethodInfo()
|
D | InputMethod.java | 267 public void changeInputMethodSubtype(InputMethodSubtype subtype); in changeInputMethodSubtype() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSubtypePreference.java | 40 public InputMethodSubtypePreference(final Context context, final InputMethodSubtype subtype, in InputMethodSubtypePreference() argument 44 setKey(imi.getId() + subtype.hashCode()); in InputMethodSubtypePreference() 46 InputMethodAndSubtypeUtil.getSubtypeLocaleNameAsSentence(subtype, context, imi); in InputMethodSubtypePreference() 48 final String subtypeLocaleString = subtype.getLocale(); in InputMethodSubtypePreference()
|
D | InputMethodAndSubtypeUtil.java | 192 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local 193 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeList() 216 if (selectedInputMethodSubtype == subtype.hashCode()) { in saveInputMethodSubtypeList() 320 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled() local 322 .findPreference(id + subtype.hashCode()); in setSubtypesPreferenceEnabled() 344 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked() local 345 final String hashCode = String.valueOf(subtype.hashCode()); in updateSubtypesPreferenceChecked() 371 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence() argument 373 if (subtype == null) { in getSubtypeLocaleNameAsSentence() 377 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence()
|
D | InputMethodAndSubtypeEnablerManager.java | 148 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences() local 149 if (subtype.overridesImplicitlyEnabledSubtype()) { in addInputMethodSubtypePreferences() 152 subtype, prefContext, imi); in addInputMethodSubtypePreferences() 156 prefContext, subtype, imi); in addInputMethodSubtypePreferences() 247 for (final InputMethodSubtype subtype : implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypesOf() 248 final String implicitlyEnabledSubtypePrefKey = imiId + subtype.hashCode(); in updateImplicitlyEnabledSubtypesOf()
|
D | InputMethodSettingValuesWrapper.java | 102 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateAsciiCapableEnabledImis() local 103 if (InputMethodUtils.SUBTYPE_MODE_KEYBOARD.equalsIgnoreCase(subtype.getMode()) in updateAsciiCapableEnabledImis() 104 && subtype.isAsciiCapable()) { in updateAsciiCapableEnabledImis()
|
/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 129 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { in NetworkInfo() argument 134 mSubtype = subtype; in NetworkInfo() 198 public void setSubtype(int subtype, String subtypeName) { in setSubtype() argument 200 mSubtype = subtype; in setSubtype() 469 int subtype = in.readInt(); 472 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 154 InputMethodSubtype subtype = null; in assertNextInputMethod() local 156 subtype = createDummySubtype(currentItem.mSubtypeName.toString()); in assertNextInputMethod() 159 currentItem.mImi, subtype, true /* forward */); in assertNextInputMethod() 162 currentItem.mImi, subtype, false /* forward */); in assertNextInputMethod() 184 InputMethodSubtype subtype = null; in onUserAction() local 186 subtype = createDummySubtype(subtypeListItem.mSubtypeName.toString()); in onUserAction() 188 controller.onUserActionLocked(subtypeListItem.mImi, subtype); in onUserAction()
|
/frameworks/base/core/java/android/net/metrics/ |
D | DhcpErrorEvent.java | 97 private static int makeErrorCode(int type, int subtype) { in makeErrorCode() argument 98 return (type << 24) | ((0xFF & subtype) << 16); in makeErrorCode()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | IInputMethodManager.aidl | 69 void setInputMethodAndSubtype(in IBinder token, String id, in InputMethodSubtype subtype); in setInputMethodAndSubtype() argument 78 boolean setCurrentInputMethodSubtype(in InputMethodSubtype subtype); in setCurrentInputMethodSubtype() argument
|
D | IInputMethod.aidl | 54 void changeInputMethodSubtype(in InputMethodSubtype subtype); in changeInputMethodSubtype() argument
|
/frameworks/wilhelm/tools/permute/ |
D | permute.c | 146 unsigned subtype = sfinfo_in.format & SF_FORMAT_SUBMASK; in permute() 148 switch (subtype) { in permute() 156 fprintf(stderr, "%s: unsupported subtype 0x%X\n", path_in, subtype); in permute()
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
D | InputMethodSettingsImpl.java | 86 final InputMethodSubtype subtype = subtypes.get(i); in getEnabledSubtypesLabel() local 90 sb.append(subtype.getDisplayName(context, imi.getPackageName(), in getEnabledSubtypesLabel()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManagerInternal.java | 56 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype); in onInputMethodSubtypeChanged() argument
|
/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | LogMakerTest.java | 37 int subtype = 12; in testSerializeDeserialize() local 46 builder.setSubtype(subtype); in testSerializeDeserialize() 60 assertEquals(subtype, parsed.getSubtype()); in testSerializeDeserialize()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPasswordView.java | 275 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledIMEsOrSubtypes() 276 if (subtype.isAuxiliary()) { in hasMultipleEnabledIMEsOrSubtypes()
|
/frameworks/base/core/java/android/metrics/ |
D | LogMaker.java | 89 public LogMaker setSubtype(int subtype) { in setSubtype() argument 90 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE, subtype); in setSubtype()
|