Home
last modified time | relevance | path

Searched refs:type_mask (Results 1 – 20 of 20) sorted by relevance

/aosp12/frameworks/base/tools/aapt2/
H A DResourceValues.cpp490 : type_mask(t), in Attribute()
519 if (type_mask != other->type_mask || min_int != other->min_int || max_int != other->max_int) { in Equals()
557 std::string Attribute::MaskString(uint32_t type_mask) { in MaskString() argument
558 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString()
657 return MaskString(type_mask); in MaskString()
687 if (attr.type_mask & android::ResTable_map::TYPE_COLOR) { in BuildAttributeMismatchMessage()
695 if (attr.type_mask & android::ResTable_map::TYPE_ENUM) { in BuildAttributeMismatchMessage()
741 if ((actual_type & (type_mask | TYPE_REFERENCE)) == 0) { in Matches()
757 if ((type_mask & TYPE_INTEGER) == 0) { in Matches()
775 } else if ((type_mask & TYPE_INTEGER) == 0) { in Matches()
[all …]
H A DResourceUtils.cpp630 const StringPiece& value, uint32_t type_mask, in TryParseItemForAttribute() argument
642 reference->type_flags = type_mask; in TryParseItemForAttribute()
651 if (type_mask & ResTable_map::TYPE_COLOR) { in TryParseItemForAttribute()
659 if (type_mask & ResTable_map::TYPE_BOOLEAN) { in TryParseItemForAttribute()
667 if (type_mask & ResTable_map::TYPE_INTEGER) { in TryParseItemForAttribute()
677 if (type_mask & float_mask) { in TryParseItemForAttribute()
681 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) { in TryParseItemForAttribute()
698 const uint32_t type_mask = attr->type_mask; in TryParseItemForAttribute() local
699 auto value = TryParseItemForAttribute(str, type_mask, on_create_reference); in TryParseItemForAttribute()
704 if (type_mask & ResTable_map::TYPE_ENUM) { in TryParseItemForAttribute()
[all …]
H A DResourceParser.cpp805 xmlsub_tree.raw_value, type_mask, on_create_reference); in ParseXml()
816 if (type_mask & android::ResTable_map::TYPE_STRING) { in ParseXml()
1303 uint32_t type_mask = 0; in ParseAttrImpl() local
1307 type_mask = ParseFormatAttribute(maybe_format.value()); in ParseAttrImpl()
1308 if (type_mask == 0) { in ParseAttrImpl()
1352 (type_mask & android::ResTable_map::TYPE_INTEGER) == 0) { in ParseAttrImpl()
1383 if (type_mask & android::ResTable_map::TYPE_FLAGS) { in ParseAttrImpl()
1389 type_mask |= android::ResTable_map::TYPE_ENUM; in ParseAttrImpl()
1392 if (type_mask & android::ResTable_map::TYPE_ENUM) { in ParseAttrImpl()
1398 type_mask |= android::ResTable_map::TYPE_FLAGS; in ParseAttrImpl()
[all …]
H A DResourceParser.h78 static std::unique_ptr<Item> ParseXml(const FlattenedXmlSubTree& xmlsub_tree, uint32_t type_mask,
106 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
H A DResourceValues.h301 uint32_t type_mask; member
316 static std::string MaskString(uint32_t type_mask);
H A DResourceUtils.h210 const android::StringPiece& value, uint32_t type_mask,
H A DResourceTable.cpp286 if (existing_attr->IsWeak() && existing_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
291 if (incoming_attr->IsWeak() && incoming_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
H A DResourceParser_test.cpp332 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
336 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_ANY)); in TEST_F()
H A DDebug.cpp136 if (attr->type_mask & kMask) { in Visit()
/aosp12/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator.cpp101 const uint32_t type_mask = attr->type_mask; in AddAttributeFormatDoc() local
102 if (type_mask & android::ResTable_map::TYPE_REFERENCE) { in AddAttributeFormatDoc()
111 if (type_mask & android::ResTable_map::TYPE_STRING) { in AddAttributeFormatDoc()
117 if (type_mask & android::ResTable_map::TYPE_INTEGER) { in AddAttributeFormatDoc()
122 if (type_mask & android::ResTable_map::TYPE_BOOLEAN) { in AddAttributeFormatDoc()
128 if (type_mask & android::ResTable_map::TYPE_COLOR) { in AddAttributeFormatDoc()
136 if (type_mask & android::ResTable_map::TYPE_FLOAT) { in AddAttributeFormatDoc()
141 if (type_mask & android::ResTable_map::TYPE_DIMENSION) { in AddAttributeFormatDoc()
151 if (type_mask & android::ResTable_map::TYPE_FRACTION) { in AddAttributeFormatDoc()
161 if (type_mask & in AddAttributeFormatDoc()
[all …]
/aosp12/frameworks/native/libs/ui/include/ui/
H A DTransform.h55 enum type_mask : uint32_t { enum
/aosp12/frameworks/native/libs/ui/include_vndk/ui/
H A DTransform.h55 enum type_mask : uint32_t { enum
/aosp12/frameworks/native/include/ui/
H A DTransform.h55 enum type_mask : uint32_t { enum
/aosp12/frameworks/base/tools/aapt2/link/
H A DXmlReferenceLinker.cpp100 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
H A DReferenceLinker.cpp172 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) { in ParseValueWithAttribute()
/aosp12/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener_test.cpp221 attr.type_mask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
235 EXPECT_EQ(attr.type_mask, actual_attr->type_mask); in TEST_F()
H A DBinaryResourceParser.cpp639 attr->type_mask = util::DeviceToHost32(type_mask_iter->value.data); in ParseAttr()
655 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr()
H A DTableFlattener.cpp93 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask); in Visit()
/aosp12/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp181 attr_->type_mask = typeMask; in SetTypeMask()
/aosp12/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize.cpp620 pb_attr->set_format_flags(attr->type_mask); in Visit()