Home
last modified time | relevance | path

Searched refs:getSubtype (Results 1 – 25 of 58) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/reflect/
DSubtypeTester.java95 assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType); in isSubtype()
120 assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())) in notSubtype()
169 private static Type getSubtype(Type type, Class<?> subclass) { in getSubtype() method in SubtypeTester
170 return TypeToken.of(type).getSubtype(subclass).getType(); in getSubtype()
DTypeTokenTest.java1192 new TypeToken<Iterable<List<String>>>() {}.getSubtype(ListIterable.class)); in testGetSubtype_withTypeVariable()
1195 new TypeToken<Iterable<List<String>[]>>() {}.getSubtype(ListArrayIterable.class)); in testGetSubtype_withTypeVariable()
1198 new TypeToken<Iterable<List<String>[]>[]>() {}.getSubtype(ListArrayIterable[].class)); in testGetSubtype_withTypeVariable()
1204 TypeToken.of(Iterable.class).getSubtype(StringListIterable.class).getType()); in testGetSubtype_withoutTypeVariable()
1207 TypeToken.of(Iterable[].class).getSubtype(StringListIterable[].class).getType()); in testGetSubtype_withoutTypeVariable()
1210 new TypeToken<Iterable<List<String>>>() {}.getSubtype(StringListArrayIterable.class)); in testGetSubtype_withoutTypeVariable()
1213 new TypeToken<Iterable<List<String>>[]>() {}.getSubtype(StringListArrayIterable[].class)); in testGetSubtype_withoutTypeVariable()
1219 TypeToken.of(Iterable[].class).getSubtype(StringListIterable[].class)); in testGetSubtype_withArray()
1221 TypeToken.of(String[].class), TypeToken.of(Object[].class).getSubtype(String[].class)); in testGetSubtype_withArray()
1222 assertEquals(TypeToken.of(int[].class), TypeToken.of(Object.class).getSubtype(int[].class)); in testGetSubtype_withArray()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DSubtypeTester.java95 assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType); in isSubtype()
120 assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())) in notSubtype()
169 private static Type getSubtype(Type type, Class<?> subclass) { in getSubtype() method in SubtypeTester
170 return TypeToken.of(type).getSubtype(subclass).getType(); in getSubtype()
DTypeTokenTest.java1192 new TypeToken<Iterable<List<String>>>() {}.getSubtype(ListIterable.class)); in testGetSubtype_withTypeVariable()
1195 new TypeToken<Iterable<List<String>[]>>() {}.getSubtype(ListArrayIterable.class)); in testGetSubtype_withTypeVariable()
1198 new TypeToken<Iterable<List<String>[]>[]>() {}.getSubtype(ListArrayIterable[].class)); in testGetSubtype_withTypeVariable()
1204 TypeToken.of(Iterable.class).getSubtype(StringListIterable.class).getType()); in testGetSubtype_withoutTypeVariable()
1207 TypeToken.of(Iterable[].class).getSubtype(StringListIterable[].class).getType()); in testGetSubtype_withoutTypeVariable()
1210 new TypeToken<Iterable<List<String>>>() {}.getSubtype(StringListArrayIterable.class)); in testGetSubtype_withoutTypeVariable()
1213 new TypeToken<Iterable<List<String>>[]>() {}.getSubtype(StringListArrayIterable[].class)); in testGetSubtype_withoutTypeVariable()
1219 TypeToken.of(Iterable[].class).getSubtype(StringListIterable[].class)); in testGetSubtype_withArray()
1221 TypeToken.of(String[].class), TypeToken.of(Object[].class).getSubtype(String[].class)); in testGetSubtype_withArray()
1222 assertEquals(TypeToken.of(int[].class), TypeToken.of(Object.class).getSubtype(int[].class)); in testGetSubtype_withArray()
[all …]
/external/icu/libicu/cts_headers/
Dnumber_utils.h57 return uprv_strcmp("percent", unit.getSubtype()) == 0; in unitIsPercent()
61 return uprv_strcmp("permille", unit.getSubtype()) == 0; in unitIsPermille()
/external/icu/icu4c/source/i18n/
Dnumber_utils.h57 return uprv_strcmp("percent", unit.getSubtype()) == 0; in unitIsPercent()
61 return uprv_strcmp("permille", unit.getSubtype()) == 0; in unitIsPermille()
Dnumber_longnames.cpp132 int32_t subtypeLen = static_cast<int32_t>(uprv_strlen(unit.getSubtype())); in getMeasureData()
133 if (subtypeLen > 7 && uprv_strcmp(unit.getSubtype() + subtypeLen - 7, "-person") == 0) { in getMeasureData()
134 subtypeForResource = {unit.getSubtype(), subtypeLen - 7}; in getMeasureData()
136 subtypeForResource = unit.getSubtype(); in getMeasureData()
Dcurrunit.cpp94 u_charsToUChars(getSubtype(), isoCode, 4); in CurrencyUnit()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckWidths.java39 Subtype exp = err.getSubtype(); in TestBasic()
40 assertEquals("errorSubType", Subtype.valueTooWide, err.getSubtype()); in TestBasic()
DTestCheckNumbers.java61 Subtype exp = err.getSubtype(); in checkSingularity()
62 assertEquals("errorSubType", expectedSubtype, err.getSubtype()); in checkSingularity()
DTestCheckCLDR.java235 if (PatternPlaceholders.PLACEHOLDER_SUBTYPES.contains(item.getSubtype())) { in testPlaceholderSamples()
236 actual .add(item.getSubtype()); in testPlaceholderSamples()
408 + "\t" + item.getType() + "\t" + item.getSubtype(); in checkLocale()
490 if (status.getSubtype() != Subtype.modifiedEnglishValue) { in TestCheckNew()
527 if (status.getSubtype() == Subtype.valueMustBeOverridden) { in TestCheckNewRootFailure()
711 actualSubtype = status.getSubtype(); in TestCheckDates()
1008 if (error.getSubtype() == Subtype.missingPlaceholders) { in TestInfohubLinks13979()
/external/nist-sip/java/gov/nist/javax/sip/header/
DAccept.java85 return mediaRange.getSubtype().compareTo(STAR) == 0; in allowsAllContentSubTypes()
129 return mediaRange.getSubtype(); in getContentSubType()
DMediaRange.java84 public String getSubtype() { in getSubtype() method in MediaRange
DContentType.java143 return mediaRange == null ? null : mediaRange.getSubtype(); in getContentSubType()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DLongNameHandler.java109 if (unit.getSubtype() != null && unit.getSubtype().endsWith("-person")) { in getMeasureData()
110 key.append(unit.getSubtype(), 0, unit.getSubtype().length() - 7); in getMeasureData()
112 key.append(unit.getSubtype()); in getMeasureData()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DLongNameHandler.java105 if (unit.getSubtype() != null && unit.getSubtype().endsWith("-person")) { in getMeasureData()
106 key.append(unit.getSubtype(), 0, unit.getSubtype().length() - 7); in getMeasureData()
108 key.append(unit.getSubtype()); in getMeasureData()
/external/caliper/caliper/src/main/java/com/google/caliper/json/
DImmutableListTypeAdatperFactory.java52 TypeToken.get(betterToken.getSupertype(List.class).getSubtype(ArrayList.class) in create()
DImmutableMapTypeAdapterFactory.java52 TypeToken.get(betterToken.getSupertype(Map.class).getSubtype(HashMap.class) in create()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNetworkInfo.java81 protected int getSubtype() { in getSubtype() method in ShadowNetworkInfo
/external/webrtc/sdk/android/api/org/webrtc/
DNetworkMonitorAutoDetect.java283 networkInfo.getType(), networkInfo.getSubtype()); in getNetworkState()
304 underlyingActiveNetworkInfo.getType(), underlyingActiveNetworkInfo.getSubtype()); in getNetworkState()
323 return new NetworkState(true, networkInfo.getType(), networkInfo.getSubtype(), -1, -1); in getNetworkState()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMeasureUnitTest.java2245 String code = expected.getSubtype(); in testAUnit()
2912 String code = unit.getSubtype(); in generateCXXHConstants()
2992 return o1.getSubtype().compareTo(o2.getSubtype()); in getAllUnits()
3060 System.out.print(" \"" + unit.getSubtype() + "\""); in generateCXXConstants()
3149 String code = unit.getSubtype(); in toCamelCase()
3229 String code = unit.getSubtype(); in toJAVAName()
3259 String code = unit.getSubtype(); in generateConstants()
3386 && a1.getSubtype().equals(b1.getSubtype()); in hasSameBehavior()
3817 assertEquals("parsed kilogram equals built-in kilogram", MeasureUnit.KILOGRAM.getSubtype(), in TestKilogramIdentifier()
3818 kilogram.getSubtype()); in TestKilogramIdentifier()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitTest.java2242 String code = expected.getSubtype(); in testAUnit()
2909 String code = unit.getSubtype(); in generateCXXHConstants()
2989 return o1.getSubtype().compareTo(o2.getSubtype()); in getAllUnits()
3057 System.out.print(" \"" + unit.getSubtype() + "\""); in generateCXXConstants()
3146 String code = unit.getSubtype(); in toCamelCase()
3226 String code = unit.getSubtype(); in toJAVAName()
3256 String code = unit.getSubtype(); in generateConstants()
3383 && a1.getSubtype().equals(b1.getSubtype()); in hasSameBehavior()
3814 assertEquals("parsed kilogram equals built-in kilogram", MeasureUnit.KILOGRAM.getSubtype(), in TestKilogramIdentifier()
3815 kilogram.getSubtype()); in TestKilogramIdentifier()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DCombinedCurrencyMatcher.java48 this.isoCode = currency.getSubtype(); in CombinedCurrencyMatcher()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DCombinedCurrencyMatcher.java50 this.isoCode = currency.getSubtype(); in CombinedCurrencyMatcher()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterImpl.java162 return unit != null && "percent".equals(unit.getSubtype()); in unitIsPercent()
166 return unit != null && "permille".equals(unit.getSubtype()); in unitIsPermille()

123