Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceValues.cpp523 : type_mask(t), in Attribute()
552 if (type_mask != other->type_mask || min_int != other->min_int || max_int != other->max_int) { in Equals()
579 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 || in IsCompatibleWith()
580 (attr.type_mask & ~android::ResTable_map::TYPE_ANY) != 0) { in IsCompatibleWith()
585 uint32_t this_type_mask = type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith()
586 uint32_t that_type_mask = attr.type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith()
595 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString()
601 if ((type_mask & android::ResTable_map::TYPE_REFERENCE) != 0) { in MaskString()
610 if ((type_mask & android::ResTable_map::TYPE_STRING) != 0) { in MaskString()
619 if ((type_mask & android::ResTable_map::TYPE_INTEGER) != 0) { in MaskString()
[all …]
DResourceUtils.cpp630 const StringPiece& value, uint32_t type_mask, in TryParseItemForAttribute() argument
648 if (type_mask & ResTable_map::TYPE_COLOR) { in TryParseItemForAttribute()
656 if (type_mask & ResTable_map::TYPE_BOOLEAN) { in TryParseItemForAttribute()
664 if (type_mask & ResTable_map::TYPE_INTEGER) { in TryParseItemForAttribute()
674 if (type_mask & float_mask) { in TryParseItemForAttribute()
678 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) { in TryParseItemForAttribute()
695 const uint32_t type_mask = attr->type_mask; in TryParseItemForAttribute() local
696 auto value = TryParseItemForAttribute(str, type_mask, on_create_reference); in TryParseItemForAttribute()
701 if (type_mask & ResTable_map::TYPE_ENUM) { in TryParseItemForAttribute()
709 if (type_mask & ResTable_map::TYPE_FLAGS) { in TryParseItemForAttribute()
DResourceParser.cpp728 const uint32_t type_mask, in ParseXml() argument
758 ResourceUtils::TryParseItemForAttribute(raw_value, type_mask, on_create_reference); in ParseXml()
768 if (type_mask & android::ResTable_map::TYPE_STRING) { in ParseXml()
1209 uint32_t type_mask = 0; in ParseAttrImpl() local
1213 type_mask = ParseFormatAttribute(maybe_format.value()); in ParseAttrImpl()
1214 if (type_mask == 0) { in ParseAttrImpl()
1258 (type_mask & android::ResTable_map::TYPE_INTEGER) == 0) { in ParseAttrImpl()
1289 if (type_mask & android::ResTable_map::TYPE_FLAGS) { in ParseAttrImpl()
1295 type_mask |= android::ResTable_map::TYPE_ENUM; in ParseAttrImpl()
1298 if (type_mask & android::ResTable_map::TYPE_ENUM) { in ParseAttrImpl()
[all …]
DResourceParser.h91 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
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()
365 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_INTEGER)); in TEST_F()
384 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
399 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_BOOLEAN)); in TEST_F()
413 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM)); in TEST_F()
443 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()
DResourceUtils.h210 const android::StringPiece& value, uint32_t type_mask,
DResourceTable.cpp312 if (existing_attr->IsWeak() && existing_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
317 if (incoming_attr->IsWeak() && incoming_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
DResourceValues.h300 uint32_t type_mask; member
DDebug.cpp136 if (attr->type_mask & kMask) { in Visit()
/frameworks/base/tools/aapt2/java/
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 …]
/frameworks/native/libs/ui/include/ui/
DTransform.h55 enum type_mask : uint32_t { enum
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h55 enum type_mask : uint32_t { enum
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp131 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
DReferenceLinker.cpp139 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) { in ParseValueWithAttribute()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp569 attr->type_mask = util::DeviceToHost32(type_mask_iter->value.data); in ParseAttr()
585 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr()
DTableFlattener_test.cpp223 attr.type_mask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
238 EXPECT_EQ(attr.type_mask, actual_attr->type_mask); in TEST_F()
DTableFlattener.cpp105 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask); in Visit()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp173 attr_->type_mask = typeMask; in SetTypeMask()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp567 pb_attr->set_format_flags(attr->type_mask); in Visit()