Home
last modified time | relevance | path

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

123

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbACInterface.java84 public UsbACInterface(int length, byte type, byte subtype, int subclass) { in UsbACInterface() argument
86 mSubtype = subtype; in UsbACInterface()
99 ByteStream stream, int length, byte type, byte subtype, int subClass) { in allocAudioControlDescriptor() argument
100 switch (subtype) { in allocAudioControlDescriptor()
106 return new Usb20ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor()
108 return new Usb10ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor()
116 return new Usb20ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
118 return new Usb10ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
126 return new Usb20ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
128 return new Usb10ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
[all …]
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()
DUsbACInterfaceUnparsed.java25 public UsbACInterfaceUnparsed(int length, byte type, byte subtype, int subClass) { in UsbACInterfaceUnparsed() argument
26 super(length, type, subtype, subClass); in UsbACInterfaceUnparsed()
DUsbACFeatureUnit.java49 public UsbACFeatureUnit(int length, byte type, byte subtype, int subClass) { in UsbACFeatureUnit() argument
50 super(length, type, subtype, subClass); in UsbACFeatureUnit()
DUsbMSMidiOutputJack.java28 public UsbMSMidiOutputJack(int length, byte type, byte subtype, int subclass) { in UsbMSMidiOutputJack() argument
29 super(length, type, subtype, subclass); in UsbMSMidiOutputJack()
DUsbMSMidiHeader.java28 public UsbMSMidiHeader(int length, byte type, byte subtype, int subclass) { in UsbMSMidiHeader() argument
29 super(length, type, subtype, subclass); in UsbMSMidiHeader()
DUsbMSMidiInputJack.java28 UsbMSMidiInputJack(int length, byte type, byte subtype, int subclass) { in UsbMSMidiInputJack() argument
29 super(length, type, subtype, subclass); in UsbMSMidiInputJack()
DUsbACHeaderInterface.java34 int length, byte type, byte subtype, int subclass, int adcRelease) { in UsbACHeaderInterface() argument
35 super(length, type, subtype, subclass); in UsbACHeaderInterface()
DUsbACSelectorUnit.java35 public UsbACSelectorUnit(int length, byte type, byte subtype, int subClass) { in UsbACSelectorUnit() argument
36 super(length, type, subtype, subClass); in UsbACSelectorUnit()
DUsb20ACMixerUnit.java36 public Usb20ACMixerUnit(int length, byte type, byte subtype, int subClass) { in Usb20ACMixerUnit() argument
37 super(length, type, subtype, subClass); in Usb20ACMixerUnit()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingController.java203 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList()
204 enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); in getSortedInputMethodAndSubtypeList()
213 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList() local
214 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList()
217 && (includeAuxiliarySubtypes || !subtype.isAuxiliary())) { in getSortedInputMethodAndSubtypeList()
219 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype in getSortedInputMethodAndSubtypeList()
223 subtypeLabel, imi, j, subtype.getLocale(), mSystemLocaleStr)); in getSortedInputMethodAndSubtypeList()
241 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId() argument
242 return subtype != null ? InputMethodUtils.getSubtypeIdFromHashCode(imi, in calculateSubtypeId()
243 subtype.hashCode()) : NOT_A_SUBTYPE_ID; in calculateSubtypeId()
[all …]
DAdditionalSubtypeUtils.java157 final InputMethodSubtype subtype = subtypesList.get(i); in save() local
159 if (subtype.hasSubtypeId()) { in save()
161 String.valueOf(subtype.getSubtypeId())); in save()
163 out.attribute(null, ATTR_ICON, String.valueOf(subtype.getIconResId())); in save()
164 out.attribute(null, ATTR_LABEL, String.valueOf(subtype.getNameResId())); in save()
165 out.attribute(null, ATTR_IME_SUBTYPE_LOCALE, subtype.getLocale()); in save()
167 subtype.getLanguageTag()); in save()
168 out.attribute(null, ATTR_IME_SUBTYPE_MODE, subtype.getMode()); in save()
169 out.attribute(null, ATTR_IME_SUBTYPE_EXTRA_VALUE, subtype.getExtraValue()); in save()
171 String.valueOf(subtype.isAuxiliary() ? 1 : 0)); in save()
[all …]
DInputMethodUtils.java349 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf() local
351 final Locale subtypeLocale = subtype.getLocaleObject(); in containsSubtypeOf()
359 subtype.getLocale())); in containsSubtypeOf()
365 mode.equalsIgnoreCase(subtype.getMode())) { in containsSubtypeOf()
469 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local
470 if (subtype.overridesImplicitlyEnabledSubtype()) { in getImplicitlyApplicableSubtypesLockedImpl()
471 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
473 applicableModeAndSubtypesMap.put(mode, subtype); in getImplicitlyApplicableSubtypesLockedImpl()
486 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local
487 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textservice/
DSpellCheckerSubtypeTest.java68 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, in testSubtypeWithNoSubtypeId() local
71 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithNoSubtypeId()
72 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); in testSubtypeWithNoSubtypeId()
73 assertEquals(SUBTYPE_SUBTYPE_LANGUAGE_TAG_A, subtype.getLanguageTag()); 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()
95 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, in testSubtypeWithSubtypeId() local
99 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); in testSubtypeWithSubtypeId()
[all …]
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java206 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 …]
DTextServicesManager.java190 final SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in newSpellCheckerSession() local
191 final String tempSubtypeLocale = subtype.getLocale(); in newSpellCheckerSession()
194 subtypeInUse = subtype; in newSpellCheckerSession()
198 subtypeInUse = subtype; in newSpellCheckerSession()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java602 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals() local
603 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) { in equals()
604 return (subtype.hashCode() == hashCode()); in equals()
606 return (subtype.hashCode() == hashCode()) in equals()
607 && (subtype.getLocale().equals(getLocale())) in equals()
608 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals()
609 && (subtype.getMode().equals(getMode())) in equals()
610 && (subtype.getExtraValue().equals(getExtraValue())) in equals()
611 && (subtype.isAuxiliary() == isAuxiliary()) in equals()
612 && (subtype.overridesImplicitlyEnabledSubtype() in equals()
[all …]
DInputMethodInfo.java210 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo() local
232 if (!subtype.isAuxiliary()) { in InputMethodInfo()
235 subtypes.add(subtype); in InputMethodInfo()
252 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo() local
253 if (!subtypes.contains(subtype)) { in InputMethodInfo()
254 subtypes.add(subtype); in InputMethodInfo()
257 + subtype.getLocale() + ", " + subtype.getMode()); in InputMethodInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtil.java193 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local
194 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeList()
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()
372 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence() argument
374 if (subtype == null) { in getSubtypeLocaleNameAsSentence()
378 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence()
[all …]
DInputMethodAndSubtypeUtilCompat.java193 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local
194 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeList()
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()
372 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence() argument
374 if (subtype == null) { in getSubtypeLocaleNameAsSentence()
378 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence()
[all …]
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()
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()
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()
/frameworks/base/core/java/android/net/
DNetworkInfo.java167 public NetworkInfo(int type, @NetworkType int subtype, in NetworkInfo() argument
174 mSubtype = subtype; in NetworkInfo()
252 public void setSubtype(int subtype, String subtypeName) { in setSubtype() argument
254 mSubtype = subtype; in setSubtype()
564 final String subtype = getSubtypeName(); in toShortString() local
565 if (!TextUtils.isEmpty(subtype)) { in toShortString()
566 builder.append("[").append(subtype).append("]"); in toShortString()
607 int subtype = in.readInt();
610 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName);
/frameworks/base/services/core/java/com/android/server/policy/
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()

123