Home
last modified time | relevance | path

Searched refs:ResType (Results 1 – 25 of 43) sorted by relevance

12

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DResTypeTest.java18 assertThat(ResType.inferFromValue("#802C76AD")).isEqualTo(ResType.COLOR); in testInferFromValue()
20 assertThat(ResType.inferFromValue("true")).isEqualTo(ResType.BOOLEAN); in testInferFromValue()
21 assertThat(ResType.inferFromValue("false")).isEqualTo(ResType.BOOLEAN); in testInferFromValue()
23 assertThat(ResType.inferFromValue("10dp")).isEqualTo(ResType.DIMEN); in testInferFromValue()
24 assertThat(ResType.inferFromValue("10sp")).isEqualTo(ResType.DIMEN); in testInferFromValue()
25 assertThat(ResType.inferFromValue("10pt")).isEqualTo(ResType.DIMEN); in testInferFromValue()
26 assertThat(ResType.inferFromValue("10px")).isEqualTo(ResType.DIMEN); in testInferFromValue()
27 assertThat(ResType.inferFromValue("10in")).isEqualTo(ResType.DIMEN); in testInferFromValue()
29 assertThat(ResType.inferFromValue("10")).isEqualTo(ResType.INTEGER); in testInferFromValue()
31 assertThat(ResType.inferFromValue("10.9")).isEqualTo(ResType.FRACTION); in testInferFromValue()
DStaxValueLoaderTest.java33 .addHandler("string", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE)) in ignoresXliffTags()
47 ….addHandler("item[@type='string']", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQU… in ignoresBTags()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceTableFactory.java122 .addHandler("bool", new StaxValueLoader(resourceTable, "bool", ResType.BOOLEAN))
123 … .addHandler("item[@type='bool']", new StaxValueLoader(resourceTable, "bool", ResType.BOOLEAN))
124 .addHandler("color", new StaxValueLoader(resourceTable, "color", ResType.COLOR))
125 … .addHandler("item[@type='color']", new StaxValueLoader(resourceTable, "color", ResType.COLOR))
126 … .addHandler("drawable", new StaxValueLoader(resourceTable, "drawable", ResType.DRAWABLE))
127 …Handler("item[@type='drawable']", new StaxValueLoader(resourceTable, "drawable", ResType.DRAWABLE))
128 ….addHandler("item[@type='mipmap']", new StaxValueLoader(resourceTable, "mipmap", ResType.DRAWABLE))
129 .addHandler("dimen", new StaxValueLoader(resourceTable, "dimen", ResType.DIMEN))
130 … .addHandler("item[@type='dimen']", new StaxValueLoader(resourceTable, "dimen", ResType.DIMEN))
131 … .addHandler("integer", new StaxValueLoader(resourceTable, "integer", ResType.INTEGER))
[all …]
DResType.java6 public enum ResType { enum
28 public static ResType inferType(String itemString) { in inferType()
29 ResType itemResType = ResType.inferFromValue(itemString); in inferType()
30 if (itemResType == ResType.CHAR_SEQUENCE) { in inferType()
32 itemResType = ResType.STYLE; in inferType()
34 itemResType = ResType.NULL; in inferType()
46 public static ResType inferFromValue(String value) { in inferFromValue()
DStaxArrayLoader.java13 …oader(PackageResourceTable resourceTable, String attrType, ResType arrayResType, final ResType sca… in StaxArrayLoader()
29 ResType resType = scalarResType == null ? ResType.inferType(buf.toString()) : scalarResType; in StaxArrayLoader()
DTypedResource.java7 private final ResType resType;
10 public TypedResource(T data, ResType resType, XmlContext xmlContext) { in TypedResource()
20 public ResType getResType() { in getResType()
DStaxValueLoader.java10 public StaxValueLoader(PackageResourceTable resourceTable, String attrType, ResType resType) { in StaxValueLoader()
13 if (resType == ResType.CHAR_SEQUENCE) { in StaxValueLoader()
32 if (resType == ResType.CHAR_SEQUENCE) { in onEnd()
DFileTypedResource.java6 public FileTypedResource(FsFile fsFile, ResType resType, XmlContext xmlContext) { in FileTypedResource()
29 super(fsFile, ResType.DRAWABLE, xmlContext); in Image()
DStaxLoader.java10 protected final ResType resType;
12 public StaxLoader(PackageResourceTable resourceTable, String attrType, ResType resType) { in StaxLoader()
DPluralRules.java6 public PluralRules(List<Plural> data, ResType resType, XmlContext xmlContext) { in PluralRules()
DRawResourceLoader.java42 new FileTypedResource(file, ResType.FILE, in loadRawFiles()
DStaxPluralsLoader.java13 …public StaxPluralsLoader(PackageResourceTable resourceTable, String attrType, ResType charSequence… in StaxPluralsLoader()
DStaxAttrLoader.java13 public StaxAttrLoader(PackageResourceTable resourceTable, String attrType, ResType resType) { in StaxAttrLoader()
DStaxStyleLoader.java13 public StaxStyleLoader(PackageResourceTable resourceTable, String attrType, ResType resType) { in StaxStyleLoader()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DConverterTest.java13 import org.robolectric.res.ResType;
32 …final TypedResource<String> resource = new TypedResource<>(" 100 ", ResType.CHAR_SEQUENCE, xmlCont… in fromCharSequence_asInt_shouldHandleSpacesInString()
33 assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asInt(resource)).isEqualTo(100); in fromCharSequence_asInt_shouldHandleSpacesInString()
38 …final TypedResource<String> resource = new TypedResource<>(" Robolectric ", ResType.CHAR_SEQUENCE,… in fromCharSequence_asCharSequence_shouldHandleSpacesInString()
39 …assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asCharSequence(resource)).isEqualTo("Robo… in fromCharSequence_asCharSequence_shouldHandleSpacesInString()
44 …final TypedResource<String> resource = new TypedResource<>(" #aaaaaa ", ResType.COLOR, xmlContext); in fromColor_asInt_shouldHandleSpacesInString()
45 assertThat(Converter.getConverter(ResType.COLOR).asInt(resource)).isEqualTo(-5592406); in fromColor_asInt_shouldHandleSpacesInString()
50 …final TypedResource<String> resource = new TypedResource<>(" #aaaaaa ", ResType.DRAWABLE, xmlConte… in fromDrawableValue_asInt_shouldHandleSpacesInString()
51 assertThat(Converter.getConverter(ResType.DRAWABLE).asInt(resource)).isEqualTo(-5592406); in fromDrawableValue_asInt_shouldHandleSpacesInString()
56 … final TypedResource<String> resource = new TypedResource<>(" 100 ", ResType.INTEGER, xmlContext); in fromInt_asInt_shouldHandleSpacesInString()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DResourceParserTest.java33 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE); in shouldLoadDrawableXmlResources()
42 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE); in shouldLoadDrawableBitmapResources()
51 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE); in shouldLoadDrawableBitmapResourcesDefinedByItemTag()
60 assertThat(value.getResType()).isEqualTo(ResType.CHAR_SEQUENCE); in shouldLoadIdResourcesDefinedByItemTag()
DResBundleTest.java174 … TypedResource firstValue = new TypedResource<>("first_value", ResType.CHAR_SEQUENCE, xmlContext); in shouldNotOverwriteValuesWithMatchingQualifiers()
175 …TypedResource secondValue = new TypedResource<>("second_value", ResType.CHAR_SEQUENCE, xmlContext); in shouldNotOverwriteValuesWithMatchingQualifiers()
200 return new TypedResource<>(str, ResType.CHAR_SEQUENCE, mockXmlContext); in createStringTypedResource()
DStaxPluralsLoaderTest.java20 …StaxPluralsLoader pluralsLoader = new StaxPluralsLoader(resourceTable, "plurals", ResType.CHAR_SEQ… in setUp()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAssetManager.java61 import org.robolectric.res.ResType;
218 ResType resType = ResType.inferFromValue(attribute.value); in convertAndFill()
702 final ResType resType = typedResource.getResType(); in getResourceType()
704 if (typedResource.getData() == null || resType == ResType.NULL) { in getResourceType()
708 } else if (resType == ResType.STYLE) { in getResourceType()
710 } else if (resType == ResType.CHAR_SEQUENCE || resType == ResType.DRAWABLE) { in getResourceType()
712 } else if (resType == ResType.INTEGER) { in getResourceType()
714 } else if (resType == ResType.FLOAT || resType == ResType.FRACTION) { in getResourceType()
716 } else if (resType == ResType.BOOLEAN) { in getResourceType()
718 } else if (resType == ResType.DIMEN) { in getResourceType()
[all …]
DConverter.java7 import org.robolectric.res.ResType;
44 public static Converter getConverter(ResType resType) { in getConverter()
DShadowResourcesImpl.java35 import org.robolectric.res.ResType;
96 …new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shado… in getQuantityString()
/external/python/cpython2/Mac/Modules/res/
D_Resmodule.c190 ResType theType; in ResObj_GetResInfo()
239 ResType theType; in ResObj_AddResource()
785 ResType theType; in Res_GetIndType()
807 ResType theType; in Res_Get1IndType()
850 ResType theType; in Res_CountResources()
871 ResType theType; in Res_Count1Resources()
892 ResType theType; in Res_GetIndResource()
916 ResType theType; in Res_Get1IndResource()
940 ResType theType; in Res_GetResource()
964 ResType theType; in Res_Get1Resource()
[all …]
/external/eigen/Eigen/src/SPQRSupport/
DSuiteSparseQRSupport.h263 template<typename ResType>
264 void evalTo(ResType& res) const
272 …res = Matrix<Scalar,ResType::RowsAtCompileTime,ResType::ColsAtCompileTime>::Map(reinterpret_cast<S…
/external/eigen/test/
Dinplace_decomposition.cpp21 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType; in inplace() typedef
28 ResType x(cols); in inplace()
/external/clang/lib/CodeGen/
DTargetInfo.cpp3031 llvm::Type *ResType = nullptr; in classifyReturnType() local
3054 ResType = GetINTEGERTypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
3058 if (Hi == NoClass && isa<llvm::IntegerType>(ResType)) { in classifyReturnType()
3072 ResType = GetSSETypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
3078 ResType = llvm::Type::getX86_FP80Ty(getVMContext()); in classifyReturnType()
3086 ResType = llvm::StructType::get(llvm::Type::getX86_FP80Ty(getVMContext()), in classifyReturnType()
3122 ResType = GetByteVectorType(RetTy); in classifyReturnType()
3144 ResType = GetX86_64ByValArgumentPair(ResType, HighPart, getDataLayout()); in classifyReturnType()
3146 return ABIArgInfo::getDirect(ResType); in classifyReturnType()
3166 llvm::Type *ResType = nullptr; in classifyArgumentType() local
[all …]

12