Home
last modified time | relevance | path

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

1234

/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DUsbACInterface.java86 mSubtype = subtype; in UsbACInterface()
100 switch (subtype) { in allocAudioControlDescriptor()
184 + Integer.toHexString(subtype)); in allocAudioControlDescriptor()
193 switch (subtype) { in allocAudioStreamingDescriptor()
209 + Integer.toHexString(subtype)); in allocAudioStreamingDescriptor()
215 byte subtype, int subClass) { in allocMidiStreamingDescriptor() argument
216 switch (subtype) { in allocMidiStreamingDescriptor()
233 + Integer.toHexString(subtype)); in allocMidiStreamingDescriptor()
243 byte subtype = stream.getByte(); in allocDescriptor()
252 parser, stream, length, type, subtype, subClass); in allocDescriptor()
[all …]
H A DUsbVCInterface.java40 public UsbVCInterface(int length, byte type, byte subtype) { in UsbVCInterface() argument
42 mSubtype = subtype; in UsbVCInterface()
50 byte subtype = stream.getByte(); in allocDescriptor()
53 Log.d(TAG, " Video Class-specific Interface subtype: " + subtype); in allocDescriptor()
55 switch (subtype) { in allocDescriptor()
73 return new UsbVCHeader(length, type, subtype, vcInterfaceSpec); in allocDescriptor()
80 return new UsbVCInputTerminal(length, type, subtype); in allocDescriptor()
86 return new UsbVCOutputTerminal(length, type, subtype); in allocDescriptor()
92 return new UsbVCSelectorUnit(length, type, subtype); in allocDescriptor()
98 return new UsbVCProcessingUnit(length, type, subtype); in allocDescriptor()
[all …]
H A DUsbASFormat.java43 public UsbASFormat(int length, byte type, byte subtype, byte formatType, int mSubclass) { in UsbASFormat() argument
44 super(length, type, subtype, mSubclass); in UsbASFormat()
70 byte subtype, int subclass) { in allocDescriptor() argument
78 return new Usb20ASFormatI(length, type, subtype, formatType, subclass); in allocDescriptor()
80 return new Usb10ASFormatI(length, type, subtype, formatType, subclass); in allocDescriptor()
85 return new Usb20ASFormatII(length, type, subtype, formatType, subclass); in allocDescriptor()
87 return new Usb10ASFormatII(length, type, subtype, formatType, subclass); in allocDescriptor()
92 return new Usb20ASFormatIII(length, type, subtype, formatType, subclass); in allocDescriptor()
97 return new UsbASFormat(length, type, subtype, formatType, subclass); in allocDescriptor()
H A DUsbVCEndpoint.java39 int length, byte type, byte subtype) { in allocDescriptor() argument
44 switch (subtype) { in allocDescriptor()
70 Log.w(TAG, "Unknown Video Class Endpoint id:0x" + Integer.toHexString(subtype)); in allocDescriptor()
H A DUsbACInterfaceUnparsed.java25 public UsbACInterfaceUnparsed(int length, byte type, byte subtype, int subClass) { in UsbACInterfaceUnparsed() argument
26 super(length, type, subtype, subClass); in UsbACInterfaceUnparsed()
H A DUsbACAudioStreamEndpoint.java27 public UsbACAudioStreamEndpoint(int length, byte type, int subclass, byte subtype) { in UsbACAudioStreamEndpoint() argument
28 super(length, type, subclass, subtype); in UsbACAudioStreamEndpoint()
H A DUsbVCInputTerminal.java31 public UsbVCInputTerminal(int length, byte type, byte subtype) { in UsbVCInputTerminal() argument
32 super(length, type, subtype); in UsbVCInputTerminal()
H A DUsbVCOutputTerminal.java31 public UsbVCOutputTerminal(int length, byte type, byte subtype) { in UsbVCOutputTerminal() argument
32 super(length, type, subtype); in UsbVCOutputTerminal()
H A DUsbVCProcessingUnit.java32 public UsbVCProcessingUnit(int length, byte type, byte subtype) { in UsbVCProcessingUnit() argument
33 super(length, type, subtype); in UsbVCProcessingUnit()
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DSubtypeUtils.java84 subtype.getLocale())); in containsSubtypeOf()
168 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
184 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
186 keyboardSubtypes.add(subtype); in getImplicitlyApplicableSubtypesLockedImpl()
204 if (subtype.isAsciiCapable()) { in getImplicitlyApplicableSubtypesLockedImpl()
213 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
216 applicableSubtypes.add(subtype); in getImplicitlyApplicableSubtypesLockedImpl()
267 InputMethodSubtype subtype = subtypes.get(i); in findLastResortApplicableSubtypeLocked() local
274 firstMatchedModeSubtype = subtype; in findLastResortApplicableSubtypeLocked()
278 applicableSubtype = subtype; in findLastResortApplicableSubtypeLocked()
[all …]
H A DInputMethodSubtypeSwitchingController.java221 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype in getSortedInputMethodAndSubtypeList()
244 return subtype != null ? SubtypeUtils.getSubtypeIdFromHashCode(imi, subtype.hashCode()) in calculateSubtypeId()
275 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked() argument
282 final int currentIndex = getIndex(imi, subtype); in getNextInputMethodLocked()
361 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked() argument
362 int currentUsageRank = getUsageRank(imi, subtype); in getNextInputMethodLocked()
446 InputMethodSubtype subtype) { in getNextInputMethod() argument
452 subtype); in getNextInputMethod()
455 subtype); in getNextInputMethod()
512 mController.onUserActionLocked(imi, subtype); in onUserActionLocked()
[all …]
H A DAdditionalSubtypeUtils.java168 for (final InputMethodSubtype subtype : subtypesList) { in saveToFile()
170 if (subtype.hasSubtypeId()) { in saveToFile()
171 out.attributeInt(null, ATTR_IME_SUBTYPE_ID, subtype.getSubtypeId()); in saveToFile()
173 out.attributeInt(null, ATTR_ICON, subtype.getIconResId()); in saveToFile()
174 out.attributeInt(null, ATTR_LABEL, subtype.getNameResId()); in saveToFile()
176 ULocale pkLanguageTag = subtype.getPhysicalKeyboardHintLanguageTag(); in saveToFile()
182 subtype.getPhysicalKeyboardHintLayoutType()); in saveToFile()
184 out.attribute(null, ATTR_IME_SUBTYPE_LOCALE, subtype.getLocale()); in saveToFile()
186 subtype.getLanguageTag()); in saveToFile()
187 out.attribute(null, ATTR_IME_SUBTYPE_MODE, subtype.getMode()); in saveToFile()
[all …]
H A DHardwareKeyboardShortcutController.java48 for (final InputMethodSubtype subtype : subtypes) { in reset()
49 if (subtype.isSuitableForPhysicalKeyboardLayoutMapping()) { in reset()
50 mSubtypeHandles.add(InputMethodSubtypeHandle.of(imi, subtype)); in reset()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textservice/
H A DSpellCheckerSubtypeTest.java71 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithNoSubtypeId()
72 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); in testSubtypeWithNoSubtypeId()
74 assertEquals("Value1", subtype.getExtraValueOf("Key1")); in testSubtypeWithNoSubtypeId()
75 assertEquals("Value2", subtype.getExtraValueOf("Key2")); in testSubtypeWithNoSubtypeId()
81 subtype.hashCode()); in testSubtypeWithNoSubtypeId()
83 final SpellCheckerSubtype clonedSubtype = cloneViaParcel(subtype); in testSubtypeWithNoSubtypeId()
99 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithSubtypeId()
102 assertEquals("Value1", subtype.getExtraValueOf("Key1")); in testSubtypeWithSubtypeId()
103 assertEquals("Value2", subtype.getExtraValueOf("Key2")); in testSubtypeWithSubtypeId()
106 assertEquals(SUBTYPE_SUBTYPE_ID_A, subtype.hashCode()); in testSubtypeWithSubtypeId()
[all …]
/aosp14/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java208 SpellCheckerSubtype subtype = (SpellCheckerSubtype) o; in equals() local
210 return (subtype.hashCode() == hashCode()); in equals()
212 return (subtype.hashCode() == hashCode()) in equals()
213 && (subtype.getNameResId() == getNameResId()) in equals()
214 && (subtype.getLocale().equals(getLocale())) in equals()
310 SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in sort() local
311 if (subtypesSet.contains(subtype)) { in sort()
312 sortedList.add(subtype); in sort()
313 subtypesSet.remove(subtype); in sort()
318 for (SpellCheckerSubtype subtype: subtypesSet) { in sort()
[all …]
/aosp14/frameworks/base/media/java/android/media/tv/tuner/
H A DTunerUtils.java40 public static int getFilterSubtype(@Filter.Type int mainType, @Filter.Subtype int subtype) { in getFilterSubtype() argument
42 switch (subtype) { in getFilterSubtype()
65 switch (subtype) { in getFilterSubtype()
87 switch (subtype) { in getFilterSubtype()
104 switch (subtype) { in getFilterSubtype()
117 switch (subtype) { in getFilterSubtype()
131 "Invalid filter types. Main type=" + mainType + ", subtype=" + subtype); in getFilterSubtype()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java755 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) { in equals()
756 return (subtype.hashCode() == hashCode()); in equals()
758 return (subtype.hashCode() == hashCode()) in equals()
761 && (subtype.getMode().equals(getMode())) in equals()
763 && (subtype.isAuxiliary() == isAuxiliary()) in equals()
836 InputMethodSubtype subtype = imi.getSubtypeAt(i); in sort() local
837 if (inputSubtypesSet.contains(subtype)) { in sort()
838 sortedList.add(subtype); in sort()
839 inputSubtypesSet.remove(subtype); in sort()
844 for (InputMethodSubtype subtype: inputSubtypesSet) { in sort()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodAndSubtypeUtil.java193 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local
217 if (selectedInputMethodSubtype == subtype.hashCode()) { in saveInputMethodSubtypeList()
321 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled() local
323 .findPreference(id + subtype.hashCode()); in setSubtypesPreferenceEnabled()
345 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked() local
346 final String hashCode = String.valueOf(subtype.hashCode()); in updateSubtypesPreferenceChecked()
374 if (subtype == null) { in getSubtypeLocaleNameAsSentence()
378 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence()
428 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidNonAuxAsciiCapableIme() local
429 if (SUBTYPE_MODE_KEYBOARD.equalsIgnoreCase(subtype.getMode()) in isValidNonAuxAsciiCapableIme()
[all …]
H A DInputMethodSubtypePreference.java40 public InputMethodSubtypePreference(final Context context, final InputMethodSubtype subtype, in InputMethodSubtypePreference() argument
43 imi.getId() + subtype.hashCode(), in InputMethodSubtypePreference()
44 InputMethodAndSubtypeUtil.getSubtypeLocaleNameAsSentence(subtype, context, imi), in InputMethodSubtypePreference()
45 subtype.getLocaleObject(), in InputMethodSubtypePreference()
H A DInputMethodAndSubtypeUtilCompat.java236 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeListForUserInternal() local
260 if (selectedInputMethodSubtype == subtype.hashCode()) { in saveInputMethodSubtypeListForUserInternal()
364 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled() local
366 .findPreference(id + subtype.hashCode()); in setSubtypesPreferenceEnabled()
388 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked() local
389 final String hashCode = String.valueOf(subtype.hashCode()); in updateSubtypesPreferenceChecked()
417 if (subtype == null) { in getSubtypeLocaleNameAsSentence()
421 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence()
471 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidSystemNonAuxAsciiCapableIme() local
472 if (SUBTYPE_MODE_KEYBOARD.equalsIgnoreCase(subtype.getMode()) in isValidSystemNonAuxAsciiCapableIme()
[all …]
H A DInputMethodAndSubtypeEnablerManager.java149 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences() local
150 if (subtype.overridesImplicitlyEnabledSubtype()) { in addInputMethodSubtypePreferences()
153 subtype, prefContext, imi); in addInputMethodSubtypePreferences()
157 prefContext, subtype, imi); in addInputMethodSubtypePreferences()
248 for (final InputMethodSubtype subtype : implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypesOf()
249 final String implicitlyEnabledSubtypePrefKey = imiId + subtype.hashCode(); in updateImplicitlyEnabledSubtypesOf()
H A DInputMethodAndSubtypeEnablerManagerCompat.java150 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences() local
151 if (subtype.overridesImplicitlyEnabledSubtype()) { in addInputMethodSubtypePreferences()
154 subtype, prefContext, imi); in addInputMethodSubtypePreferences()
158 prefContext, subtype, imi); in addInputMethodSubtypePreferences()
249 for (final InputMethodSubtype subtype : implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypesOf()
250 final String implicitlyEnabledSubtypePrefKey = imiId + subtype.hashCode(); in updateImplicitlyEnabledSubtypesOf()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DDisplayFoldDurationLogger.java96 int subtype; in log() local
99 subtype = LOG_SUBTYPE_UNFOLDED | LOG_SUBTYPE_DURATION_MASK; in log()
102 subtype = LOG_SUBTYPE_FOLDED | LOG_SUBTYPE_DURATION_MASK; in log()
110 .setSubtype(subtype) in log()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
H A DAdditionalSubtypeUtilsTest.java77 private void verifySubtype(InputMethodSubtype subtype, InputMethodSubtype expectedSubtype) { in verifySubtype() argument
78 assertEquals(expectedSubtype.getLanguageTag(), subtype.getLanguageTag()); in verifySubtype()
80 subtype.getPhysicalKeyboardHintLanguageTag()); in verifySubtype()
82 subtype.getPhysicalKeyboardHintLayoutType()); in verifySubtype()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeTest.java133 final InputMethodSubtype subtype = createSubtypeUsingLanguageTag("en-US"); in testCanonicalizedLanguageTagObjectCache() local
136 assertSame(subtype.getCanonicalizedLanguageTag(), subtype.getCanonicalizedLanguageTag()); in testCanonicalizedLanguageTagObjectCache()
157 final InputMethodSubtype subtype = createSubtypeUsingLanguageTag(languageTag); in verifyCanonicalizedLanguageTag() local
158 assertEquals(subtype.getCanonicalizedLanguageTag(), expectedLanguageTag); in verifyCanonicalizedLanguageTag()

1234