Searched refs:type_mask (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/tools/aapt2/
H A DResourceValues.cpp523 : type_mask(t),
552 if (type_mask != other->type_mask || min_int != other->min_int || max_int != other->max_int) {
579 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 ||
580 (attr.type_mask & ~android::ResTable_map::TYPE_ANY) != 0) {
585 uint32_t this_type_mask = type_mask | android::ResTable_map::TYPE_REFERENCE;
586 uint32_t that_type_mask = attr.type_mask | android::ResTable_map::TYPE_REFERENCE;
595 if (type_mask == android::ResTable_map::TYPE_ANY) {
601 if ((type_mask & android::ResTable_map::TYPE_REFERENCE) != 0) {
610 if ((type_mask
[all...]
H A DResourceUtils.cpp583 const StringPiece& value, uint32_t type_mask,
601 if (type_mask & ResTable_map::TYPE_COLOR) {
609 if (type_mask & ResTable_map::TYPE_BOOLEAN) {
617 if (type_mask & ResTable_map::TYPE_INTEGER) {
627 if (type_mask & float_mask) {
631 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) {
648 const uint32_t type_mask = attr->type_mask; local
649 auto value = TryParseItemForAttribute(str, type_mask, on_create_reference);
654 if (type_mask
582 TryParseItemForAttribute( const StringPiece& value, uint32_t type_mask, const std::function<void(const ResourceName&)>& on_create_reference) argument
[all...]
H A DResourceParser.h76 * The type of Item that can be parsed is denoted by the `type_mask`.
81 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
H A DResourceParser.cpp721 const uint32_t type_mask,
751 ResourceUtils::TryParseItemForAttribute(raw_value, type_mask, on_create_reference);
761 if (type_mask & android::ResTable_map::TYPE_STRING) {
1110 uint32_t type_mask = 0; local
1114 type_mask = ParseFormatAttribute(maybe_format.value());
1115 if (type_mask == 0) {
1159 (type_mask & android::ResTable_map::TYPE_INTEGER) == 0) {
1190 if (type_mask & android::ResTable_map::TYPE_FLAGS) {
1196 type_mask |= android::ResTable_map::TYPE_ENUM;
1199 if (type_mask
720 ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask, const bool allow_raw_value) argument
[all...]
H A DResourceUtils.h202 const android::StringPiece& value, uint32_t type_mask,
H A DResourceParser_test.cpp306 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING));
310 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_ANY));
339 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_INTEGER));
358 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING));
373 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_BOOLEAN));
387 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM));
414 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS));
H A DResourceValues.h299 uint32_t type_mask; member in struct:aapt::Attribute
H A DResourceTable.cpp295 if (existing_attr->IsWeak() && existing_attr->type_mask == android::ResTable_map::TYPE_ANY) {
300 if (incoming_attr->IsWeak() && incoming_attr->type_mask == android::ResTable_map::TYPE_ANY) {
H A DDebug.cpp130 if (attr->type_mask & kMask) {
/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator.cpp101 const uint32_t type_mask = attr->type_mask; local
102 if (type_mask & android::ResTable_map::TYPE_REFERENCE) {
111 if (type_mask & android::ResTable_map::TYPE_STRING) {
117 if (type_mask & android::ResTable_map::TYPE_INTEGER) {
122 if (type_mask & android::ResTable_map::TYPE_BOOLEAN) {
128 if (type_mask & android::ResTable_map::TYPE_COLOR) {
136 if (type_mask & android::ResTable_map::TYPE_FLOAT) {
141 if (type_mask & android::ResTable_map::TYPE_DIMENSION) {
151 if (type_mask
[all...]
/frameworks/native/services/surfaceflinger/
H A DTransform.h58 enum type_mask { enum in class:android::Transform
/frameworks/base/tools/aapt2/link/
H A DXmlReferenceLinker.cpp121 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) {
H A DReferenceLinker.cpp136 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) {
/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp516 attr->type_mask = util::DeviceToHost32(type_mask_iter->value.data);
532 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) {
H A DTableFlattener_test.cpp219 attr.type_mask = android::ResTable_map::TYPE_INTEGER;
234 EXPECT_EQ(attr.type_mask, actual_attr->type_mask);
H A DTableFlattener.cpp91 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask);
/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp164 attr_->type_mask = typeMask;
/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize.cpp489 pb_attr->set_format_flags(attr->type_mask);

Completed in 6291 milliseconds