Home
last modified time | relevance | path

Searched refs:typeMask (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceValues.cpp250 typeMask(t), in Attribute()
261 if (typeMask == android::ResTable_map::TYPE_ANY) { in printMask()
267 if ((typeMask & android::ResTable_map::TYPE_REFERENCE) != 0) { in printMask()
276 if ((typeMask & android::ResTable_map::TYPE_STRING) != 0) { in printMask()
285 if ((typeMask & android::ResTable_map::TYPE_INTEGER) != 0) { in printMask()
294 if ((typeMask & android::ResTable_map::TYPE_BOOLEAN) != 0) { in printMask()
303 if ((typeMask & android::ResTable_map::TYPE_COLOR) != 0) { in printMask()
312 if ((typeMask & android::ResTable_map::TYPE_FLOAT) != 0) { in printMask()
321 if ((typeMask & android::ResTable_map::TYPE_DIMENSION) != 0) { in printMask()
330 if ((typeMask & android::ResTable_map::TYPE_FRACTION) != 0) { in printMask()
[all …]
DResourceUtils.cpp477 const StringPiece16& value, uint32_t typeMask, in parseItemForAttribute() argument
493 if (typeMask & android::ResTable_map::TYPE_COLOR) { in parseItemForAttribute()
501 if (typeMask & android::ResTable_map::TYPE_BOOLEAN) { in parseItemForAttribute()
509 if (typeMask & android::ResTable_map::TYPE_INTEGER) { in parseItemForAttribute()
519 if (typeMask & floatMask) { in parseItemForAttribute()
523 if (typeMask & androidTypeToAttributeTypeMask(floatingPoint->value.dataType)) { in parseItemForAttribute()
538 const uint32_t typeMask = attr->typeMask; in parseItemForAttribute() local
539 std::unique_ptr<Item> value = parseItemForAttribute(str, typeMask, onCreateReference); in parseItemForAttribute()
544 if (typeMask & android::ResTable_map::TYPE_ENUM) { in parseItemForAttribute()
552 if (typeMask & android::ResTable_map::TYPE_FLAGS) { in parseItemForAttribute()
DResourceParser.cpp479 std::unique_ptr<Item> ResourceParser::parseXml(xml::XmlPullParser* parser, const uint32_t typeMask, in parseXml() argument
503 std::unique_ptr<Item> processedItem = ResourceUtils::parseItemForAttribute(rawValue, typeMask, in parseXml()
514 if (typeMask & android::ResTable_map::TYPE_STRING) { in parseXml()
752 uint32_t typeMask = 0; in parseAttrImpl() local
756 typeMask = parseFormatAttribute(maybeFormat.value()); in parseAttrImpl()
757 if (typeMask == 0) { in parseAttrImpl()
798 if ((maybeMin || maybeMax) && (typeMask & android::ResTable_map::TYPE_INTEGER) == 0) { in parseAttrImpl()
829 if (typeMask & android::ResTable_map::TYPE_FLAGS) { in parseAttrImpl()
835 typeMask |= android::ResTable_map::TYPE_ENUM; in parseAttrImpl()
838 if (typeMask & android::ResTable_map::TYPE_ENUM) { in parseAttrImpl()
[all …]
DResourceParser.h75 std::unique_ptr<Item> parseXml(xml::XmlPullParser* parser, const uint32_t typeMask,
99 bool parseArrayImpl(xml::XmlPullParser* parser, ParsedResource* outResource, uint32_t typeMask);
DResourceParser_test.cpp136 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask); in TEST_F()
140 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_ANY), attr->typeMask); in TEST_F()
169 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_INTEGER), attr->typeMask); in TEST_F()
188 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask); in TEST_F()
202 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_BOOLEAN), attr->typeMask); in TEST_F()
215 EXPECT_EQ(enumAttr->typeMask, android::ResTable_map::TYPE_ENUM); in TEST_F()
241 EXPECT_EQ(flagAttr->typeMask, android::ResTable_map::TYPE_FLAGS); in TEST_F()
DResourceTable.cpp233 if (existingAttr->typeMask == incomingAttr->typeMask) { in resolveValueCollision()
240 if (existingAttr->isWeak() && existingAttr->typeMask == android::ResTable_map::TYPE_ANY) { in resolveValueCollision()
245 if (incomingAttr->isWeak() && incomingAttr->typeMask == android::ResTable_map::TYPE_ANY) { in resolveValueCollision()
DResourceUtils.h154 const StringPiece16& value, uint32_t typeMask,
DResourceValues.h264 uint32_t typeMask; member
DDebug.cpp42 if (attr->typeMask & kMask) { in visit()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp99 const uint32_t typeMask = attr->typeMask; in addAttributeFormatDoc() local
100 if (typeMask & android::ResTable_map::TYPE_REFERENCE) { in addAttributeFormatDoc()
108 if (typeMask & android::ResTable_map::TYPE_STRING) { in addAttributeFormatDoc()
114 if (typeMask & android::ResTable_map::TYPE_INTEGER) { in addAttributeFormatDoc()
118 if (typeMask & android::ResTable_map::TYPE_BOOLEAN) { in addAttributeFormatDoc()
124 if (typeMask & android::ResTable_map::TYPE_COLOR) { in addAttributeFormatDoc()
131 if (typeMask & android::ResTable_map::TYPE_FLOAT) { in addAttributeFormatDoc()
136 if (typeMask & android::ResTable_map::TYPE_DIMENSION) { in addAttributeFormatDoc()
145 if (typeMask & android::ResTable_map::TYPE_FRACTION) { in addAttributeFormatDoc()
153 if (typeMask & (android::ResTable_map::TYPE_FLAGS | android::ResTable_map::TYPE_ENUM)) { in addAttributeFormatDoc()
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.h175 mAttr->typeMask = android::ResTable_map::TYPE_ANY; in mAttr()
178 AttributeBuilder& setTypeMask(uint32_t typeMask) { in setTypeMask() argument
179 mAttr->typeMask = typeMask; in setTypeMask()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp211 attr.typeMask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
226 EXPECT_EQ(attr.typeMask, actualAttr->typeMask); in TEST_F()
DTableFlattener.cpp86 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->typeMask); in visit()
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp112 !(attribute->typeMask & android::ResTable_map::TYPE_STRING)) { in visit()
DReferenceLinker.cpp144 if (!transformed && (attr->typeMask & android::ResTable_map::TYPE_STRING)) { in parseValueWithAttribute()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp501 attr->typeMask = util::deviceToHost32(typeMaskIter->value.data); in parseAttr()
517 if (attr->typeMask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in parseAttr()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp161 s->attribute->typeMask = entry[i].map.value.data; in lookupAttributeInTable()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer.cpp88 pbAttr->set_format_flags(attr->typeMask); in visit()
DTableProtoDeserializer.cpp236 attr->typeMask = pbAttr.format_flags(); in deserializeValueFromPb()