/libcore/ojluni/src/main/java/sun/nio/fs/ |
AbstractFileTypeDetector.java | 63 * Parses a candidate content type into its type and subtype, returning 70 return null; // no subtype 74 String subtype = (semicolon < 0) ? s.substring(slash + 1) : 76 subtype = subtype.trim().toLowerCase(Locale.ENGLISH); 77 if (!isValidToken(subtype)) 78 return null; // invalid subtype 79 StringBuilder sb = new StringBuilder(type.length() + subtype.length() + 1); 82 sb.append(subtype); 99 * Returns true if the given string is a legal type or subtype [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
LanguageOnSpacebarUtils.java | 45 @Nonnull final RichInputMethodSubtype subtype) { 46 if (subtype.isNoLanguage()) { 49 // Only this subtype is enabled and equals to the system locale. 53 final Locale locale = subtype.getLocale(); 58 final String keyboardLayout = subtype.getKeyboardLayoutSetName(); 77 public static void onSubtypeChanged(@Nonnull final RichInputMethodSubtype subtype, 79 final Locale newLocale = subtype.getLocale(); 88 // If the subtype is enabled explicitly, the language name should be displayed even when
|
SubtypeLocaleUtils.java | 19 import static com.android.inputmethod.latin.common.Constants.Subtype.ExtraValue.COMBINING_RULES; 20 import static com.android.inputmethod.latin.common.Constants.Subtype.ExtraValue.KEYBOARD_LAYOUT_SET; 21 import static com.android.inputmethod.latin.common.Constants.Subtype.ExtraValue.UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME; 40 * A helper class to deal with subtype locales. 60 // Keyboard layout to subtype name resource id map. 65 // Exceptional locale to subtype name resource id map. 67 // Exceptional locale to subtype name with layout resource id map. 81 // This is for compatibility to keep the same subtype ids as pre-JellyBean. 112 // Register subtype name resource id of "No language" with key "zz_<layout>" 211 // No language subtype should be displayed in system locale [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
InputMethodSubtypeCompatUtils.java | 75 public static boolean isAsciiCapable(final RichInputMethodSubtype subtype) { 76 return isAsciiCapable(subtype.getRawSubtype()); 79 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { 80 return isAsciiCapableWithAPI(subtype) 81 || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE); 88 public static Locale getLocaleObject(final InputMethodSubtype subtype) { 91 final String languageTag = (String) CompatUtils.invoke(subtype, null, GET_LANGUAGE_TAG); 96 return LocaleUtils.constructLocaleFromString(subtype.getLocale()); 100 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { [all...] |
/dalvik/dx/src/com/android/dx/cf/code/ |
Merger.java | 209 * the given subtype. This takes into account primitiveness, 217 * @param subtypeBearer {@code non-null;} the subtype 222 Type subtype = subtypeBearer.getType(); local 224 if (supertype.equals(subtype)) { 230 int subBt = subtype.getBasicType(); 240 subtype = Type.OBJECT; 249 return supertype.isIntlike() && subtype.isIntlike(); 261 } else if (subtype == Type.KNOWN_NULL) { 263 * A known-null subtype is in fact assignable to any 274 if (! subtype.isArray()) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
KeyboardTextsSetTests.java | 48 final InputMethodSubtype subtype = imi.getSubtypeAt(index); local 49 allSubtypesList.add(subtype); 60 for (final InputMethodSubtype subtype : mAllSubtypesList) { 61 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); 86 for (final InputMethodSubtype subtype : mAllSubtypesList) { 87 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
|
/external/libnl/include/netlink/netfilter/ |
nfnl.h | 24 #define NFNLMSG_TYPE(subsys, subtype) (((subsys) << 8) | (subtype))
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
MediaType.java | 36 private final String subtype; field in class:MediaType 39 private MediaType(String mediaType, String type, String subtype, String charset) { 42 this.subtype = subtype; 54 String subtype = typeSubtype.group(2).toLowerCase(Locale.US); local 73 return new MediaType(string, type, subtype, charset); 85 * Returns a specific media subtype, such as "plain" or "png", "mpeg", 88 public String subtype() { method in class:MediaType 89 return subtype;
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
Usb20ACMixerUnit.java | 36 public Usb20ACMixerUnit(int length, byte type, byte subtype, byte subClass) { 37 super(length, type, subtype, subClass);
|
UsbACFeatureUnit.java | 49 public UsbACFeatureUnit(int length, byte type, byte subtype, byte subClass) { 50 super(length, type, subtype, subClass);
|
UsbACHeaderInterface.java | 34 int length, byte type, byte subtype, byte subclass, int adcRelease) { 35 super(length, type, subtype, subclass);
|
UsbACSelectorUnit.java | 35 public UsbACSelectorUnit(int length, byte type, byte subtype, byte subClass) { 36 super(length, type, subtype, subClass);
|
UsbMSMidiHeader.java | 28 public UsbMSMidiHeader(int length, byte type, byte subtype, byte subclass) { 29 super(length, type, subtype, subclass); 44 + " SubType: " + ReportCanvas.getHexString(getSubclass())
|
UsbMSMidiInputJack.java | 28 UsbMSMidiInputJack(int length, byte type, byte subtype, byte subclass) { 29 super(length, type, subtype, subclass); 44 + " SubType: " + ReportCanvas.getHexString(getSubclass())
|
UsbMSMidiOutputJack.java | 28 public UsbMSMidiOutputJack(int length, byte type, byte subtype, byte subclass) { 29 super(length, type, subtype, subclass); 44 + " SubType: " + ReportCanvas.getHexString(getSubclass())
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
KeyboardLayoutSetTestsBase.java | 46 public boolean accept(final InputMethodSubtype subtype); 51 public boolean accept(InputMethodSubtype subtype) { 52 return InputMethodSubtypeCompatUtils.isAsciiCapable(subtype); 58 public boolean accept(InputMethodSubtype subtype) { 59 return AdditionalSubtypeUtils.isAdditionalSubtype(subtype); 113 for (final InputMethodSubtype subtype : mAllSubtypesList) { 114 if (filter.accept(subtype)) { 115 list.add(subtype); 127 for (final InputMethodSubtype subtype : mAllSubtypesList) { 128 final Locale subtypeLocale = SubtypeLocaleUtils.getSubtypeLocale(subtype); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
CustomInputStylePreference.java | 71 public CustomInputStylePreference(final Context context, final InputMethodSubtype subtype, 77 setSubtype(subtype); 92 public void setSubtype(final InputMethodSubtype subtype) { 94 mSubtype = subtype; 101 SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype); 104 setKey(KEY_PREFIX + subtype.getLocale() + "_" 105 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype)); 179 final InputMethodSubtype subtype = local 182 setSubtype(subtype); 261 public SubtypeLocaleItem(final InputMethodSubtype subtype) { 292 final InputMethodSubtype subtype = imi.getSubtypeAt(i); local 334 final InputMethodSubtype subtype = local [all...] |
/external/valgrind/none/tests/amd64/ |
gen_insn_test.pl | 240 my $subtype = $2; 248 subtype => $subtype, 256 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|; 263 print qq| $value$SubTypeSuffixes{$subtype}|; 277 my $subtype = $2; 285 subtype => $subtype, 293 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|; 300 print qq| $value$SubTypeSuffixes{$subtype}|; [all...] |
/external/valgrind/none/tests/x86/ |
gen_insn_test.pl | 217 my $subtype = $2; 225 subtype => $subtype, 233 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|; 240 print qq| $value$SubTypeSuffixes{$subtype}|; 254 my $subtype = $2; 262 subtype => $subtype, 270 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|; 277 print qq| $value$SubTypeSuffixes{$subtype}|; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
RichInputMethodManager.java | 19 import static com.android.inputmethod.latin.common.Constants.Subtype.KEYBOARD_MODE; 109 // Initialize the current input method subtype and the shortcut IME. 151 Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype=" 157 // The current subtype is the last or only enabled one and it needs to switch to 179 // The next IME has no subtype. 221 final InputMethodSubtype subtype = imi.getSubtypeAt(index); local 222 if (!subtype.isAuxiliary()) { 290 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) { 291 return checkIfSubtypeBelongsToList(subtype, 422 final InputMethodSubtype subtype = myImi.getSubtypeAt(i); local 439 final InputMethodSubtype subtype = subtypes.get(i); local 446 final InputMethodSubtype subtype = subtypes.get(i); local 455 final InputMethodSubtype subtype = subtypes.get(i); local 463 final InputMethodSubtype subtype = subtypes.get(i); local [all...] |
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
SpellCheckerSubtypeTest.java | 67 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, local 70 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); 71 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); 72 assertEquals(SUBTYPE_SUBTYPE_LANGUAGE_TAG_A, subtype.getLanguageTag()); 73 assertEquals("Value1", subtype.getExtraValueOf("Key1")); 74 assertEquals("Value2", subtype.getExtraValueOf("Key2")); 75 // Historically we have used SpellCheckerSubtype#hashCode() to track which subtype is 80 subtype.hashCode()); 82 final SpellCheckerSubtype clonedSubtype = cloneViaParcel(subtype); 94 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A local [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
KlpActionLabelTests.java | 36 void doTestActionKeys(final InputMethodSubtype subtype, final String tag, 42 tag + " unspecified", subtype, EditorInfo.IME_ACTION_UNSPECIFIED, unspecifiedKey); 43 doTestActionKey(tag + " none", subtype, EditorInfo.IME_ACTION_NONE, noneKey); 44 doTestActionKey(tag + " go", subtype, EditorInfo.IME_ACTION_GO, goKey); 45 doTestActionKey(tag + " search", subtype, EditorInfo.IME_ACTION_SEARCH, searchKey); 46 doTestActionKey(tag + " send", subtype, EditorInfo.IME_ACTION_SEND, sendKey); 47 doTestActionKey(tag + " next", subtype, EditorInfo.IME_ACTION_NEXT, nextKey); 48 doTestActionKey(tag + " done", subtype, EditorInfo.IME_ACTION_DONE, doneKey); 49 doTestActionKey(tag + " previous", subtype, EditorInfo.IME_ACTION_PREVIOUS, previousKey); 55 private void doTestActionKeysInLocaleWithStringResources(final InputMethodSubtype subtype, [all...] |
/external/guava/guava/src/com/google/common/net/ |
MediaType.java | 59 * type or subtype value. A media type may not have wildcard type with a declared subtype. The 60 * {@code *} character has no special meaning as part of a parameter. All values for type, subtype, 65 * <p>All portions of the media type that are case-insensitive (type, subtype, parameter attributes) 88 /** Matcher for type, subtype and attributes. */ 111 private static MediaType createConstant(String type, String subtype) { 112 return addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); 115 private static MediaType createConstantUtf8(String type, String subtype) { 116 return addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); 127 * "common name" of the media. This is often, but not necessarily the same as the subtype 360 private final String subtype; field in class:MediaType 376 public String subtype() { method in class:MediaType [all...] |
/external/jmdns/src/javax/jmdns/ |
ServiceInfo.java | 29 * <li><sub>: This is the subtype for the application protocol</li> 61 * Subtype Field. 63 Subtype 90 * @param subtype 91 * service subtype see draft-cheshire-dnsext-dns-sd-06.txt chapter 7.1 Selective Instance Enumeration 98 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final String text) { 99 return new ServiceInfoImpl(type, name, subtype, port, 0, 0, false, text); 130 * @param subtype 131 * service subtype see draft-cheshire-dnsext-dns-sd-06.txt chapter 7.1 Selective Instance Enumeration 142 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final int weight, final int priority, final String text) [all...] |
/frameworks/base/core/java/android/view/textservice/ |
SpellCheckerSubtype.java | 38 * This class is used to specify meta information of a subtype contained in a spell checker. 39 * Subtype can describe locale (e.g. en_US, fr_FR...) used for settings. 74 * @param nameId The name of the subtype 75 * @param locale The locale supported by the subtype 76 * @param languageTag The BCP-47 Language Tag associated with this subtype. 77 * @param extraValue The extra value of the subtype 78 * @param subtypeId The subtype ID that is supposed to be stable during package update. 95 * @param nameId The name of the subtype 96 * @param locale The locale supported by the subtype 97 * @param extraValue The extra value of the subtype 206 SpellCheckerSubtype subtype = (SpellCheckerSubtype) o; local 308 SpellCheckerSubtype subtype = sci.getSubtypeAt(i); local [all...] |