/aosp12/frameworks/base/tools/aapt2/ |
H A D | ResourceValues.cpp | 490 : 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 D | ResourceUtils.cpp | 630 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 D | ResourceParser.cpp | 805 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 D | ResourceParser.h | 78 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 D | ResourceValues.h | 301 uint32_t type_mask; member 316 static std::string MaskString(uint32_t type_mask);
|
H A D | ResourceUtils.h | 210 const android::StringPiece& value, uint32_t type_mask,
|
H A D | ResourceTable.cpp | 286 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 D | ResourceParser_test.cpp | 332 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 D | Debug.cpp | 136 if (attr->type_mask & kMask) { in Visit()
|
/aosp12/frameworks/base/tools/aapt2/java/ |
H A D | JavaClassGenerator.cpp | 101 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 D | Transform.h | 55 enum type_mask : uint32_t { enum
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Transform.h | 55 enum type_mask : uint32_t { enum
|
/aosp12/frameworks/native/include/ui/ |
H A D | Transform.h | 55 enum type_mask : uint32_t { enum
|
/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | XmlReferenceLinker.cpp | 100 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
|
H A D | ReferenceLinker.cpp | 172 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) { in ParseValueWithAttribute()
|
/aosp12/frameworks/base/tools/aapt2/format/binary/ |
H A D | TableFlattener_test.cpp | 221 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 D | BinaryResourceParser.cpp | 639 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 D | TableFlattener.cpp | 93 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask); in Visit()
|
/aosp12/frameworks/base/tools/aapt2/test/ |
H A D | Builders.cpp | 181 attr_->type_mask = typeMask; in SetTypeMask()
|
/aosp12/frameworks/base/tools/aapt2/format/proto/ |
H A D | ProtoSerialize.cpp | 620 pb_attr->set_format_flags(attr->type_mask); in Visit()
|