Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceValues.cpp352 : type_mask(0u), in Attribute()
358 : type_mask(t), in Attribute()
388 if (type_mask != other->type_mask || min_int != other->min_int || max_int != other->max_int) { in Equals()
417 if (type_mask == android::ResTable_map::TYPE_ANY) { in PrintMask()
423 if ((type_mask & android::ResTable_map::TYPE_REFERENCE) != 0) { in PrintMask()
432 if ((type_mask & android::ResTable_map::TYPE_STRING) != 0) { in PrintMask()
441 if ((type_mask & android::ResTable_map::TYPE_INTEGER) != 0) { in PrintMask()
450 if ((type_mask & android::ResTable_map::TYPE_BOOLEAN) != 0) { in PrintMask()
459 if ((type_mask & android::ResTable_map::TYPE_COLOR) != 0) { in PrintMask()
468 if ((type_mask & android::ResTable_map::TYPE_FLOAT) != 0) { in PrintMask()
[all …]
DResourceUtils.cpp574 const StringPiece& value, uint32_t type_mask, in TryParseItemForAttribute() argument
592 if (type_mask & ResTable_map::TYPE_COLOR) { in TryParseItemForAttribute()
600 if (type_mask & ResTable_map::TYPE_BOOLEAN) { in TryParseItemForAttribute()
608 if (type_mask & ResTable_map::TYPE_INTEGER) { in TryParseItemForAttribute()
618 if (type_mask & float_mask) { in TryParseItemForAttribute()
622 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) { in TryParseItemForAttribute()
639 const uint32_t type_mask = attr->type_mask; in TryParseItemForAttribute() local
640 auto value = TryParseItemForAttribute(str, type_mask, on_create_reference); in TryParseItemForAttribute()
645 if (type_mask & ResTable_map::TYPE_ENUM) { in TryParseItemForAttribute()
653 if (type_mask & ResTable_map::TYPE_FLAGS) { in TryParseItemForAttribute()
DResourceParser.cpp573 const uint32_t type_mask, in ParseXml() argument
603 ResourceUtils::TryParseItemForAttribute(raw_value, type_mask, in ParseXml()
614 if (type_mask & android::ResTable_map::TYPE_STRING) { in ParseXml()
881 uint32_t type_mask = 0; in ParseAttrImpl() local
885 type_mask = ParseFormatAttribute(maybe_format.value()); in ParseAttrImpl()
886 if (type_mask == 0) { in ParseAttrImpl()
933 (type_mask & android::ResTable_map::TYPE_INTEGER) == 0) { in ParseAttrImpl()
965 if (type_mask & android::ResTable_map::TYPE_FLAGS) { in ParseAttrImpl()
971 type_mask |= android::ResTable_map::TYPE_ENUM; in ParseAttrImpl()
974 if (type_mask & android::ResTable_map::TYPE_ENUM) { in ParseAttrImpl()
[all …]
DResourceParser_test.cpp244 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
248 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_ANY)); in TEST_F()
277 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_INTEGER)); in TEST_F()
296 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
311 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_BOOLEAN)); in TEST_F()
325 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM)); in TEST_F()
352 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()
DResourceTable.cpp270 if (existing_attr->type_mask == incoming_attr->type_mask) { in ResolveValueCollision()
277 if (existing_attr->IsWeak() && existing_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
282 if (incoming_attr->IsWeak() && incoming_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
DResourceParser.h81 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
DResourceUtils.h199 const android::StringPiece& value, uint32_t type_mask,
DResourceValues.h255 uint32_t type_mask; member
DDebug.cpp47 if (attr->type_mask & kMask) { in Visit()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp99 const uint32_t type_mask = attr->type_mask; in AddAttributeFormatDoc() local
100 if (type_mask & android::ResTable_map::TYPE_REFERENCE) { in AddAttributeFormatDoc()
109 if (type_mask & android::ResTable_map::TYPE_STRING) { in AddAttributeFormatDoc()
115 if (type_mask & android::ResTable_map::TYPE_INTEGER) { in AddAttributeFormatDoc()
120 if (type_mask & android::ResTable_map::TYPE_BOOLEAN) { in AddAttributeFormatDoc()
126 if (type_mask & android::ResTable_map::TYPE_COLOR) { in AddAttributeFormatDoc()
134 if (type_mask & android::ResTable_map::TYPE_FLOAT) { in AddAttributeFormatDoc()
139 if (type_mask & android::ResTable_map::TYPE_DIMENSION) { in AddAttributeFormatDoc()
149 if (type_mask & android::ResTable_map::TYPE_FRACTION) { in AddAttributeFormatDoc()
159 if (type_mask & in AddAttributeFormatDoc()
[all …]
/frameworks/native/services/surfaceflinger/
DTransform.h54 enum type_mask { enum
/frameworks/base/tools/aapt2/test/
DBuilders.cpp149 attr_->type_mask = android::ResTable_map::TYPE_ANY; in AttributeBuilder()
153 attr_->type_mask = typeMask; in SetTypeMask()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp228 attr.type_mask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
244 EXPECT_EQ(attr.type_mask, actual_attr->type_mask); in TEST_F()
DTableFlattener.cpp89 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask); in Visit()
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp129 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
DReferenceLinker.cpp154 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) { in ParseValueWithAttribute()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp513 attr->type_mask = util::DeviceToHost32(type_mask_iter->value.data); in ParseAttr()
529 if (attr->type_mask & in ParseAttr()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer.cpp96 pb_attr->set_format_flags(attr->type_mask); in Visit()
DTableProtoDeserializer.cpp218 attr->type_mask = pb_attr.format_flags(); in DeserializeValueFromPb()