Home
last modified time | relevance | path

Searched refs:subtype (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java219 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList()
220 enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); in getSortedInputMethodAndSubtypeList()
229 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList() local
230 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList()
233 && (includeAuxiliarySubtypes || !subtype.isAuxiliary())) { in getSortedInputMethodAndSubtypeList()
235 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype in getSortedInputMethodAndSubtypeList()
239 subtypeLabel, imi, j, subtype.getLocale(), mSystemLocaleStr)); in getSortedInputMethodAndSubtypeList()
257 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId() argument
258 return subtype != null ? InputMethodUtils.getSubtypeIdFromHashCode(imi, in calculateSubtypeId()
259 subtype.hashCode()) : NOT_A_SUBTYPE_ID; in calculateSubtypeId()
[all …]
DInputMethodUtils.java415 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf() local
417 final Locale subtypeLocale = subtype.getLocaleObject(); in containsSubtypeOf()
425 subtype.getLocale())); in containsSubtypeOf()
431 mode.equalsIgnoreCase(subtype.getMode())) { in containsSubtypeOf()
452 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in getOverridingImplicitlyEnabledSubtypes() local
453 if (subtype.overridesImplicitlyEnabledSubtype() && subtype.getMode().equals(mode)) { in getOverridingImplicitlyEnabledSubtypes()
454 subtypes.add(subtype); in getOverridingImplicitlyEnabledSubtypes()
549 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local
550 if (subtype.overridesImplicitlyEnabledSubtype()) { in getImplicitlyApplicableSubtypesLockedImpl()
551 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
[all …]
DInputMethodSubtypeHandle.java30 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/
DSpellCheckerSubtypeTest.java67 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/
DSpellCheckerSubtype.java205 SpellCheckerSubtype subtype = (SpellCheckerSubtype) o; in equals() local
206 if (subtype.mSubtypeId != SUBTYPE_ID_NONE || mSubtypeId != SUBTYPE_ID_NONE) { in equals()
207 return (subtype.hashCode() == hashCode()); in equals()
209 return (subtype.hashCode() == hashCode()) in equals()
210 && (subtype.getNameResId() == getNameResId()) in equals()
211 && (subtype.getLocale().equals(getLocale())) in equals()
212 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals()
213 && (subtype.getExtraValue().equals(getExtraValue())); in equals()
307 SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in sort() local
308 if (subtypesSet.contains(subtype)) { in sort()
[all …]
DTextServicesManager.java157 final SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in newSpellCheckerSession() local
158 final String tempSubtypeLocale = subtype.getLocale(); in newSpellCheckerSession()
161 subtypeInUse = subtype; in newSpellCheckerSession()
165 subtypeInUse = subtype; in newSpellCheckerSession()
249 public void setSpellCheckerSubtype(SpellCheckerSubtype subtype) { in setSpellCheckerSubtype() argument
252 if (subtype == null) { in setSpellCheckerSubtype()
255 hashCode = subtype.hashCode(); in setSpellCheckerSubtype()
DSpellCheckerInfo.java116 SpellCheckerSubtype subtype = new SpellCheckerSubtype( in SpellCheckerInfo() local
127 mSubtypes.add(subtype); in SpellCheckerInfo()
DSpellCheckerSession.java125 SpellCheckerSubtype subtype) { in SpellCheckerSession() argument
135 mSubtype = subtype; in SpellCheckerSession()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java588 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals() local
589 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) { in equals()
590 return (subtype.hashCode() == hashCode()); in equals()
592 return (subtype.hashCode() == hashCode()) in equals()
593 && (subtype.getLocale().equals(getLocale())) in equals()
594 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals()
595 && (subtype.getMode().equals(getMode())) in equals()
596 && (subtype.getExtraValue().equals(getExtraValue())) in equals()
597 && (subtype.isAuxiliary() == isAuxiliary()) in equals()
598 && (subtype.overridesImplicitlyEnabledSubtype() in equals()
[all …]
DInputMethodInfo.java188 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo() local
210 if (!subtype.isAuxiliary()) { in InputMethodInfo()
213 subtypes.add(subtype); in InputMethodInfo()
231 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo() local
232 if (!subtypes.contains(subtype)) { in InputMethodInfo()
233 subtypes.add(subtype); in InputMethodInfo()
236 + subtype.getLocale() + ", " + subtype.getMode()); in InputMethodInfo()
DInputMethod.java227 public void changeInputMethodSubtype(InputMethodSubtype subtype); in changeInputMethodSubtype() argument
/frameworks/base/core/java/android/net/
DNetworkInfo.java129 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/
DInputMethodSubtypeSwitchingControllerTest.java125 InputMethodSubtype subtype = null; in assertNextInputMethod() local
127 subtype = createDummySubtype(currentItem.mSubtypeName.toString()); in assertNextInputMethod()
130 currentItem.mImi, subtype, true /* forward */); in assertNextInputMethod()
133 currentItem.mImi, subtype, false /* forward */); in assertNextInputMethod()
155 InputMethodSubtype subtype = null; in onUserAction() local
157 subtype = createDummySubtype(subtypeListItem.mSubtypeName.toString()); in onUserAction()
159 controller.onUserActionLocked(subtypeListItem.mImi, subtype); in onUserAction()
/frameworks/base/services/core/java/com/android/server/
DInputMethodManagerService.java1757 final InputMethodSubtype subtype = subtypes.get(j); in shouldShowImeSwitcherLocked() local
1758 if (!subtype.isAuxiliary()) { in shouldShowImeSwitcherLocked()
1760 nonAuxSubtype = subtype; in shouldShowImeSwitcherLocked()
1763 auxSubtype = subtype; in shouldShowImeSwitcherLocked()
1992 @Nullable final InputMethodSubtype subtype) { in notifyInputMethodSubtypeChanged() argument
1996 inputManagerInternal.onInputMethodSubtypeChanged(userId, inputMethodInfo, subtype); in notifyInputMethodSubtypeChanged()
2437 public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) { in setInputMethodAndSubtype() argument
2442 if (subtype != null) { in setInputMethodAndSubtype()
2445 subtype.hashCode())); in setInputMethodAndSubtype()
3450 InputMethodSubtype subtype = imi.getSubtypeAt(subtypeId); in setSelectedInputMethodAndSubtypeLocked() local
[all …]
/frameworks/base/core/java/android/net/metrics/
DDhcpErrorEvent.java112 private static int makeErrorCode(int type, int subtype) { in makeErrorCode() argument
113 return (type << 24) | ((0xFF & subtype) << 16); in makeErrorCode()
/frameworks/base/docs/html/guide/topics/text/
Dcreating-input-method.jd420 subtype can represent:
431 Basically, the mode can be any text such as "keyboard", "voice", and so forth. A subtype can
438 specific subtype of an IME directly. When you build an IME, use the subtype facility, because
443 <code>&lt;subtype&gt;</code> element. The following snippet defines an IME with two
444 subtypes: a keyboard subtype for the US English locale, and another keyboard subtype for the
451 &lt;subtype android:name="&#64;string/display_name_english_keyboard_ime"
457 &lt;subtype android:name="&#64;string/display_name_french_keyboard_ime"
463 &lt;subtype android:name="&#64;string/display_name_german_keyboard_ime"
469 To ensure that your subtypes are labeled correctly in the UI, use %s to get a subtype label
470 that is the same as the subtype’s locale label. This is demonstrated in the next two snippets.
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl69 void setInputMethodAndSubtype(in IBinder token, String id, in InputMethodSubtype subtype); in setInputMethodAndSubtype() argument
77 boolean setCurrentInputMethodSubtype(in InputMethodSubtype subtype); in setCurrentInputMethodSubtype() argument
DIInputMethod.aidl55 void changeInputMethodSubtype(in InputMethodSubtype subtype); in changeInputMethodSubtype() argument
/frameworks/wilhelm/tools/permute/
Dpermute.c146 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/
DInputMethodSettingsImpl.java86 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/
DInputManagerInternal.java54 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype); in onInputMethodSubtypeChanged() argument
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardPasswordView.java275 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledIMEsOrSubtypes()
276 if (subtype.isAuxiliary()) { in hasMultipleEnabledIMEsOrSubtypes()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodWrapper.java331 public void changeInputMethodSubtype(InputMethodSubtype subtype) { in changeInputMethodSubtype() argument
333 subtype)); in changeInputMethodSubtype()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1464 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) { in handleSwitchInputMethodSubtype() argument
1467 + " ime=" + inputMethodInfo + " subtype=" + subtype); in handleSwitchInputMethodSubtype()
1473 if (subtype != null && !"keyboard".equals(subtype.getMode())) { in handleSwitchInputMethodSubtype()
1477 InputMethodSubtypeHandle handle = new InputMethodSubtypeHandle(inputMethodInfo, subtype); in handleSwitchInputMethodSubtype()
2101 final InputMethodSubtype subtype = (InputMethodSubtype) args.arg2; in handleMessage() local
2103 handleSwitchInputMethodSubtype(userId, inputMethodInfo, subtype); in handleMessage()
2285 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) { in onInputMethodSubtypeChanged() argument
2288 someArgs.arg2 = subtype; in onInputMethodSubtypeChanged()
/frameworks/base/docs/html/training/contacts-provider/
Dretrieve-details.jd166 <strong>Note:</strong> Some data types don't use a subtype, so you can't sort on subtype.
168 determine the data type of the current row, and store data for rows that use a subtype. When
169 you finish reading the cursor, you can then sort each data type by subtype and display the
372 Instead, if the type of detail data you're searching includes a subtype, sort on it.

12