/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
H A D | ResTypeTest.java | 10 * 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 D | StaxValueLoaderTest.java | 33 .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 D | ResourceTableFactory.java | 122 .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 D | ResType.java | 6 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 D | TypedResource.java | 7 private final ResType resType; 10 public TypedResource(T data, ResType resType, XmlContext xmlContext) { 20 public ResType getResType() {
|
H A D | FileTypedResource.java | 6 public FileTypedResource(FsFile fsFile, ResType resType, XmlContext xmlContext) { 29 super(fsFile, ResType.DRAWABLE, xmlContext);
|
H A D | StaxLoader.java | 10 protected final ResType resType; 12 public StaxLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
|
H A D | StaxArrayLoader.java | 13 public StaxArrayLoader(PackageResourceTable resourceTable, String attrType, ResType arrayResType, final ResType scalarResType) { 29 ResType resType = scalarResType == null ? ResType.inferType(buf.toString()) : scalarResType;
|
H A D | PluralRules.java | 6 public PluralRules(List<Plural> data, ResType resType, XmlContext xmlContext) {
|
H A D | StaxValueLoader.java | 10 public StaxValueLoader(PackageResourceTable resourceTable, String attrType, ResType resType) { 13 if (resType == ResType.CHAR_SEQUENCE) { 32 if (resType == ResType.CHAR_SEQUENCE) {
|
H A D | RawResourceLoader.java | 42 new FileTypedResource(file, ResType.FILE,
|
H A D | StaxPluralsLoader.java | 13 public StaxPluralsLoader(PackageResourceTable resourceTable, String attrType, ResType charSequence) {
|
H A D | StaxAttrLoader.java | 13 public StaxAttrLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
|
H A D | StaxStyleLoader.java | 13 public StaxStyleLoader(PackageResourceTable resourceTable, String attrType, ResType resType) {
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
H A D | ConverterTest.java | 13 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 D | ResourceParserTest.java | 33 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 D | StaxPluralsLoaderTest.java | 20 StaxPluralsLoader pluralsLoader = new StaxPluralsLoader(resourceTable, "plurals", ResType.CHAR_SEQUENCE);
|
H A D | ResBundleTest.java | 174 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 D | inplace_decomposition.cpp | 21 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType; typedef 28 ResType x(cols);
|
/external/eigen/Eigen/src/SPQRSupport/ |
H A D | SuiteSparseQRSupport.h | 263 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 D | ShadowAssetManager.java | 61 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 D | Converter.java | 7 import org.robolectric.res.ResType; 44 public static Converter getConverter(ResType resType) {
|
H A D | ShadowResourcesImpl.java | 35 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.c | 190 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 D | macsupport.py | 53 # OSType and ResType: 4-byte character strings 57 ResType = OSTypeType("ResType") variable
|