/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbACInterface.java | 84 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() 112 return new Usb20ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 114 return new Usb10ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 128 return new Usb20ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 130 return new Usb10ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 144 return new Usb20ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 146 return new Usb10ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() [all …]
|
D | UsbVCInterface.java | 40 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 …]
|
D | UsbASFormat.java | 43 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()
|
D | UsbVCEndpoint.java | 39 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()
|
D | UsbACInterfaceUnparsed.java | 25 public UsbACInterfaceUnparsed(int length, byte type, byte subtype, int subClass) { in UsbACInterfaceUnparsed() argument 26 super(length, type, subtype, subClass); in UsbACInterfaceUnparsed()
|
D | UsbACAudioStreamEndpoint.java | 27 public UsbACAudioStreamEndpoint(int length, byte type, int subclass, byte subtype) { in UsbACAudioStreamEndpoint() argument 28 super(length, type, subclass, subtype); in UsbACAudioStreamEndpoint()
|
D | UsbVCOutputTerminal.java | 31 public UsbVCOutputTerminal(int length, byte type, byte subtype) { in UsbVCOutputTerminal() argument 32 super(length, type, subtype); in UsbVCOutputTerminal()
|
D | UsbVCSelectorUnit.java | 32 public UsbVCSelectorUnit(int length, byte type, byte subtype) { in UsbVCSelectorUnit() argument 33 super(length, type, subtype); in UsbVCSelectorUnit()
|
D | UsbVCInputTerminal.java | 31 public UsbVCInputTerminal(int length, byte type, byte subtype) { in UsbVCInputTerminal() argument 32 super(length, type, subtype); in UsbVCInputTerminal()
|
D | UsbVCProcessingUnit.java | 32 public UsbVCProcessingUnit(int length, byte type, byte subtype) { in UsbVCProcessingUnit() argument 33 super(length, type, subtype); in UsbVCProcessingUnit()
|
D | UsbVCHeader.java | 32 public UsbVCHeader(int length, byte type, byte subtype, int spec) { in UsbVCHeader() argument 33 super(length, type, subtype, spec); in UsbVCHeader()
|
D | UsbACFeatureUnit.java | 49 public UsbACFeatureUnit(int length, byte type, byte subtype, int subClass) { in UsbACFeatureUnit() argument 50 super(length, type, subtype, subClass); in UsbACFeatureUnit()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingController.java | 205 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList() 206 enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); in getSortedInputMethodAndSubtypeList() 215 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList() local 216 final String subtypeHashCode = String.valueOf(subtype.hashCode()); in getSortedInputMethodAndSubtypeList() 219 && (includeAuxiliarySubtypes || !subtype.isAuxiliary())) { in getSortedInputMethodAndSubtypeList() 221 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype in getSortedInputMethodAndSubtypeList() 225 subtypeLabel, imi, j, subtype.getLocale(), mSystemLocaleStr)); in getSortedInputMethodAndSubtypeList() 243 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId() argument 244 return subtype != null ? InputMethodUtils.getSubtypeIdFromHashCode(imi, in calculateSubtypeId() 245 subtype.hashCode()) : NOT_A_SUBTYPE_ID; in calculateSubtypeId() [all …]
|
D | AdditionalSubtypeUtils.java | 154 final InputMethodSubtype subtype = subtypesList.get(i); in save() local 156 if (subtype.hasSubtypeId()) { in save() 157 out.attributeInt(null, ATTR_IME_SUBTYPE_ID, subtype.getSubtypeId()); in save() 159 out.attributeInt(null, ATTR_ICON, subtype.getIconResId()); in save() 160 out.attributeInt(null, ATTR_LABEL, subtype.getNameResId()); in save() 161 out.attribute(null, ATTR_IME_SUBTYPE_LOCALE, subtype.getLocale()); in save() 163 subtype.getLanguageTag()); in save() 164 out.attribute(null, ATTR_IME_SUBTYPE_MODE, subtype.getMode()); in save() 165 out.attribute(null, ATTR_IME_SUBTYPE_EXTRA_VALUE, subtype.getExtraValue()); in save() 166 out.attributeInt(null, ATTR_IS_AUXILIARY, subtype.isAuxiliary() ? 1 : 0); in save() [all …]
|
D | InputMethodUtils.java | 393 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf() local 395 final Locale subtypeLocale = subtype.getLocaleObject(); in containsSubtypeOf() 403 subtype.getLocale())); in containsSubtypeOf() 409 mode.equalsIgnoreCase(subtype.getMode())) { in containsSubtypeOf() 513 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local 514 if (subtype.overridesImplicitlyEnabledSubtype()) { in getImplicitlyApplicableSubtypesLockedImpl() 515 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl() 517 applicableModeAndSubtypesMap.put(mode, subtype); in getImplicitlyApplicableSubtypesLockedImpl() 530 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl() local 531 final String mode = subtype.getMode(); in getImplicitlyApplicableSubtypesLockedImpl() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
D | SpellCheckerSubtypeTest.java | 68 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/ |
D | SpellCheckerSubtype.java | 208 SpellCheckerSubtype subtype = (SpellCheckerSubtype) o; in equals() local 209 if (subtype.mSubtypeId != SUBTYPE_ID_NONE || mSubtypeId != SUBTYPE_ID_NONE) { in equals() 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() 215 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals() 216 && (subtype.getExtraValue().equals(getExtraValue())); in equals() 310 SpellCheckerSubtype subtype = sci.getSubtypeAt(i); in sort() local 311 if (subtypesSet.contains(subtype)) { in sort() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 603 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals() local 604 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) { in equals() 605 return (subtype.hashCode() == hashCode()); in equals() 607 return (subtype.hashCode() == hashCode()) in equals() 608 && (subtype.getLocale().equals(getLocale())) in equals() 609 && (subtype.getLanguageTag().equals(getLanguageTag())) in equals() 610 && (subtype.getMode().equals(getMode())) in equals() 611 && (subtype.getExtraValue().equals(getExtraValue())) in equals() 612 && (subtype.isAuxiliary() == isAuxiliary()) in equals() 613 && (subtype.overridesImplicitlyEnabledSubtype() in equals() [all …]
|
/frameworks/base/media/java/android/media/tv/tuner/ |
D | TunerUtils.java | 40 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()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DisplayFoldDurationLogger.java | 96 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSubtypePreference.java | 40 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()
|
D | InputMethodAndSubtypeUtil.java | 193 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 …]
|
D | InputMethodAndSubtypeUtilCompat.java | 236 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeListForUserInternal() local 237 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeListForUserInternal() 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() 415 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence() argument 417 if (subtype == null) { in getSubtypeLocaleNameAsSentence() 421 final CharSequence subtypeName = subtype.getDisplayName(context, in getSubtypeLocaleNameAsSentence() [all …]
|
D | InputMethodAndSubtypeEnablerManager.java | 149 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()
|
D | InputMethodAndSubtypeEnablerManagerCompat.java | 150 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()
|