Searched refs:ResType (Results 1 - 25 of 44) sorted by relevance

12

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
H A DResTypeTest.java10 * Tests for {@link ResType}
18 assertThat(ResType.inferFromValue("#802C76AD")).isEqualTo(ResType.COLOR);
20 assertThat(ResType.inferFromValue("true")).isEqualTo(ResType.BOOLEAN);
21 assertThat(ResType.inferFromValue("false")).isEqualTo(ResType.BOOLEAN);
23 assertThat(ResType.inferFromValue("10dp")).isEqualTo(ResType.DIMEN);
24 assertThat(ResType
[all...]
H A DStaxValueLoaderTest.java33 .addHandler("string", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE))
47 .addHandler("item[@type='string']", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE))
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
H A 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 .addHandler("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
[all...]
H A DResType.java6 public enum ResType { enum
28 public static ResType inferType(String itemString) {
29 ResType itemResType = ResType.inferFromValue(itemString);
30 if (itemResType == ResType.CHAR_SEQUENCE) {
32 itemResType = ResType.STYLE;
34 itemResType = ResType.NULL;
46 public static ResType inferFromValue(String value) {
H A DTypedResource.java7 private final ResType resType;
10 public TypedResource(T data, ResType resType, XmlContext xmlContext) {
20 public ResType getResType() {
H A DFileTypedResource.java6 public FileTypedResource(FsFile fsFile, ResType resType, XmlContext xmlContext) {
29 super(fsFile, ResType.DRAWABLE, xmlContext);
H A DStaxLoader.java10 protected final ResType resType;
12 public StaxLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
H A DStaxArrayLoader.java13 public StaxArrayLoader(PackageResourceTable resourceTable, String attrType, ResType arrayResType, final ResType scalarResType) {
29 ResType resType = scalarResType == null ? ResType.inferType(buf.toString()) : scalarResType;
H A DPluralRules.java6 public PluralRules(List<Plural> data, ResType resType, XmlContext xmlContext) {
H A DStaxValueLoader.java10 public StaxValueLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
13 if (resType == ResType.CHAR_SEQUENCE) {
32 if (resType == ResType.CHAR_SEQUENCE) {
H A DRawResourceLoader.java42 new FileTypedResource(file, ResType.FILE,
H A DStaxPluralsLoader.java13 public StaxPluralsLoader(PackageResourceTable resourceTable, String attrType, ResType charSequence) {
H A DStaxAttrLoader.java13 public StaxAttrLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
H A DStaxStyleLoader.java13 public StaxStyleLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
H A DConverterTest.java13 import org.robolectric.res.ResType;
32 final TypedResource<String> resource = new TypedResource<>(" 100 ", ResType.CHAR_SEQUENCE, xmlContext);
33 assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asInt(resource)).isEqualTo(100);
38 final TypedResource<String> resource = new TypedResource<>(" Robolectric ", ResType.CHAR_SEQUENCE, xmlContext);
39 assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asCharSequence(resource)).isEqualTo("Robolectric");
44 final TypedResource<String> resource = new TypedResource<>(" #aaaaaa ", ResType.COLOR, xmlContext);
45 assertThat(Converter.getConverter(ResType.COLOR).asInt(resource)).isEqualTo(-5592406);
50 final TypedResource<String> resource = new TypedResource<>(" #aaaaaa ", ResType.DRAWABLE, xmlContext);
51 assertThat(Converter.getConverter(ResType.DRAWABLE).asInt(resource)).isEqualTo(-5592406);
56 final TypedResource<String> resource = new TypedResource<>(" 100 ", ResType
[all...]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
H A DResourceParserTest.java33 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE);
42 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE);
51 assertThat(value.getResType()).isEqualTo(ResType.DRAWABLE);
60 assertThat(value.getResType()).isEqualTo(ResType.CHAR_SEQUENCE);
H A DStaxPluralsLoaderTest.java20 StaxPluralsLoader pluralsLoader = new StaxPluralsLoader(resourceTable, "plurals", ResType.CHAR_SEQUENCE);
H A DResBundleTest.java174 TypedResource firstValue = new TypedResource<>("first_value", ResType.CHAR_SEQUENCE, xmlContext);
175 TypedResource secondValue = new TypedResource<>("second_value", ResType.CHAR_SEQUENCE, xmlContext);
200 return new TypedResource<>(str, ResType.CHAR_SEQUENCE, mockXmlContext);
/external/eigen/test/
H A Dinplace_decomposition.cpp21 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType; typedef
28 ResType x(cols);
/external/eigen/Eigen/src/SPQRSupport/
H A DSuiteSparseQRSupport.h263 template<typename ResType>
264 void evalTo(ResType& res) const
272 res = Matrix<Scalar,ResType::RowsAtCompileTime,ResType::ColsAtCompileTime>::Map(reinterpret_cast<Scalar*>(x_cd->x), x_cd->nrow, x_cd->ncol);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
H A DShadowAssetManager.java61 import org.robolectric.res.ResType;
218 ResType resType = ResType.inferFromValue(attribute.value);
702 final ResType resType = typedResource.getResType();
704 if (typedResource.getData() == null || resType == ResType.NULL) {
708 } else if (resType == ResType.STYLE) {
710 } else if (resType == ResType.CHAR_SEQUENCE || resType == ResType.DRAWABLE) {
712 } else if (resType == ResType.INTEGER) {
714 } else if (resType == ResType
[all...]
H A DConverter.java7 import org.robolectric.res.ResType;
44 public static Converter getConverter(ResType resType) {
H A DShadowResourcesImpl.java35 import org.robolectric.res.ResType;
96 new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shadowAssetManager.config, resId);
/external/python/cpython2/Mac/Modules/res/
H A D_Resmodule.c190 ResType theType;
239 ResType theType;
484 PyDoc_STR("() -> (short theID, ResType theType, Str255 name)")},
488 PyDoc_STR("(ResType theType, short theID, Str255 name) -> None")},
785 ResType theType;
807 ResType theType;
850 ResType theType;
871 ResType theType;
892 ResType theType;
916 ResType theTyp
[all...]
/external/python/cpython2/Tools/bgen/bgen/
H A Dmacsupport.py53 # OSType and ResType: 4-byte character strings
57 ResType = OSTypeType("ResType") variable

Completed in 581 milliseconds

12