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

/frameworks/base/tools/aapt2/
H A DResourceValues.cpp299 typeMask(t),
311 return this->typeMask == other->typeMask && this->minInt == other->minInt &&
325 if (typeMask == android::ResTable_map::TYPE_ANY) {
331 if ((typeMask & android::ResTable_map::TYPE_REFERENCE) != 0) {
340 if ((typeMask & android::ResTable_map::TYPE_STRING) != 0) {
349 if ((typeMask & android::ResTable_map::TYPE_INTEGER) != 0) {
358 if ((typeMask & android::ResTable_map::TYPE_BOOLEAN) != 0) {
367 if ((typeMask & android::ResTable_map::TYPE_COLOR) != 0) {
376 if ((typeMask
[all...]
H A DResourceParser.h71 * The type of Item that can be parsed is denoted by the `typeMask`.
75 std::unique_ptr<Item> parseXml(xml::XmlPullParser* parser, const uint32_t typeMask,
99 bool parseArrayImpl(xml::XmlPullParser* parser, ParsedResource* outResource, uint32_t typeMask);
H A DResourceUtils.cpp477 const StringPiece16& value, uint32_t typeMask,
493 if (typeMask & android::ResTable_map::TYPE_COLOR) {
501 if (typeMask & android::ResTable_map::TYPE_BOOLEAN) {
509 if (typeMask & android::ResTable_map::TYPE_INTEGER) {
519 if (typeMask & floatMask) {
523 if (typeMask & androidTypeToAttributeTypeMask(floatingPoint->value.dataType)) {
538 const uint32_t typeMask = attr->typeMask; local
539 std::unique_ptr<Item> value = parseItemForAttribute(str, typeMask, onCreateReference);
544 if (typeMask
476 parseItemForAttribute( const StringPiece16& value, uint32_t typeMask, std::function<void(const ResourceName&)> onCreateReference) argument
[all...]
H A DResourceUtils.h154 const StringPiece16& value, uint32_t typeMask,
H A DResourceParser.cpp474 * with typeMask denoting which items it can be. If allowRawValue is
479 std::unique_ptr<Item> ResourceParser::parseXml(xml::XmlPullParser* parser, const uint32_t typeMask, argument
503 std::unique_ptr<Item> processedItem = ResourceUtils::parseItemForAttribute(rawValue, typeMask,
514 if (typeMask & android::ResTable_map::TYPE_STRING) {
752 uint32_t typeMask = 0; local
756 typeMask = parseFormatAttribute(maybeFormat.value());
757 if (typeMask == 0) {
798 if ((maybeMin || maybeMax) && (typeMask & android::ResTable_map::TYPE_INTEGER) == 0) {
829 if (typeMask & android::ResTable_map::TYPE_FLAGS) {
835 typeMask |
1055 parseArrayImpl(xml::XmlPullParser* parser, ParsedResource* outResource, const uint32_t typeMask) argument
[all...]
H A DResourceParser_test.cpp136 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask);
140 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_ANY), attr->typeMask);
169 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_INTEGER), attr->typeMask);
188 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask);
202 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_BOOLEAN), attr->typeMask);
215 EXPECT_EQ(enumAttr->typeMask, android::ResTable_map::TYPE_ENUM);
241 EXPECT_EQ(flagAttr->typeMask, android::ResTable_map::TYPE_FLAGS);
H A DResourceTable.cpp244 if (existingAttr->typeMask == incomingAttr->typeMask) {
251 if (existingAttr->isWeak() && existingAttr->typeMask == android::ResTable_map::TYPE_ANY) {
256 if (incomingAttr->isWeak() && incomingAttr->typeMask == android::ResTable_map::TYPE_ANY) {
H A DDebug.cpp42 if (attr->typeMask & kMask) {
H A DResourceValues.h270 uint32_t typeMask; member in struct:aapt::Attribute
/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator.cpp99 const uint32_t typeMask = attr->typeMask; local
100 if (typeMask & android::ResTable_map::TYPE_REFERENCE) {
108 if (typeMask & android::ResTable_map::TYPE_STRING) {
114 if (typeMask & android::ResTable_map::TYPE_INTEGER) {
118 if (typeMask & android::ResTable_map::TYPE_BOOLEAN) {
124 if (typeMask & android::ResTable_map::TYPE_COLOR) {
131 if (typeMask & android::ResTable_map::TYPE_FLOAT) {
136 if (typeMask & android::ResTable_map::TYPE_DIMENSION) {
145 if (typeMask
[all...]
/frameworks/base/tools/aapt2/test/
H A DBuilders.h175 mAttr->typeMask = android::ResTable_map::TYPE_ANY;
178 AttributeBuilder& setTypeMask(uint32_t typeMask) { argument
179 mAttr->typeMask = typeMask;
/frameworks/base/tools/aapt2/flatten/
H A DTableFlattener_test.cpp211 attr.typeMask = android::ResTable_map::TYPE_INTEGER;
226 EXPECT_EQ(attr.typeMask, actualAttr->typeMask);
H A DTableFlattener.cpp86 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->typeMask);
/frameworks/base/tools/aapt2/link/
H A DXmlReferenceLinker.cpp112 !(attribute->typeMask & android::ResTable_map::TYPE_STRING)) {
H A DReferenceLinker.cpp144 if (!transformed && (attr->typeMask & android::ResTable_map::TYPE_STRING)) {
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp501 attr->typeMask = util::deviceToHost32(typeMaskIter->value.data);
517 if (attr->typeMask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) {
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp161 s->attribute->typeMask = entry[i].map.value.data;
/frameworks/base/tools/aapt2/proto/
H A DTableProtoSerializer.cpp88 pbAttr->set_format_flags(attr->typeMask);
H A DTableProtoDeserializer.cpp236 attr->typeMask = pbAttr.format_flags();

Completed in 590 milliseconds