Home
last modified time | relevance | path

Searched refs:ResTable_map (Results 1 – 25 of 30) sorted by relevance

12

/aosp12/frameworks/base/tools/aapt2/link/
H A DXmlReferenceLinker_test.cpp36 .SetTypeMask(android::ResTable_map::TYPE_ENUM | in SetUp()
37 android::ResTable_map::TYPE_DIMENSION) in SetUp()
42 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in SetUp()
48 .SetTypeMask(android::ResTable_map::TYPE_STRING) in SetUp()
66 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in SetUp()
71 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in SetUp()
H A DReferenceLinker_test.cpp21 using ::android::ResTable_map;
106 .SetTypeMask(ResTable_map::TYPE_COLOR) in TEST()
110 .SetTypeMask(ResTable_map::TYPE_FLAGS) in TEST()
149 .SetTypeMask(ResTable_map::TYPE_COLOR) in TEST()
245 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in TEST()
H A DXmlCompatVersioner_test.cpp31 constexpr auto TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION;
32 constexpr auto TYPE_STRING = android::ResTable_map::TYPE_STRING;
H A DManifestFixer_test.cpp45 .SetTypeMask(android::ResTable_map::TYPE_STRING) in SetUp()
50 .SetTypeMask(android::ResTable_map::TYPE_STRING | in SetUp()
51 android::ResTable_map::TYPE_INTEGER) in SetUp()
56 .SetTypeMask(android::ResTable_map::TYPE_STRING | in SetUp()
57 android::ResTable_map::TYPE_INTEGER) in SetUp()
H A DXmlReferenceLinker.cpp52 Attribute default_attribute(android::ResTable_map::TYPE_ANY); in Visit()
100 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
/aosp12/frameworks/base/tools/aapt2/
H A DResourceValues.cpp546 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 || in IsCompatibleWith()
558 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString()
600 if ((type_mask & android::ResTable_map::TYPE_COLOR) != 0) { in MaskString()
609 if ((type_mask & android::ResTable_map::TYPE_FLOAT) != 0) { in MaskString()
636 if ((type_mask & android::ResTable_map::TYPE_ENUM) != 0) { in MaskString()
645 if ((type_mask & android::ResTable_map::TYPE_FLAGS) != 0) { 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()
699 if (attr.type_mask & android::ResTable_map::TYPE_FLAGS) { in BuildAttributeMismatchMessage()
703 if (attr.type_mask & android::ResTable_map::TYPE_FLOAT) { in BuildAttributeMismatchMessage()
[all …]
H A DResourceParser.cpp60 return android::ResTable_map::TYPE_REFERENCE; in ParseFormatTypeNoEnumsOrFlags()
62 return android::ResTable_map::TYPE_STRING; in ParseFormatTypeNoEnumsOrFlags()
64 return android::ResTable_map::TYPE_INTEGER; in ParseFormatTypeNoEnumsOrFlags()
66 return android::ResTable_map::TYPE_BOOLEAN; in ParseFormatTypeNoEnumsOrFlags()
68 return android::ResTable_map::TYPE_COLOR; in ParseFormatTypeNoEnumsOrFlags()
70 return android::ResTable_map::TYPE_FLOAT; in ParseFormatTypeNoEnumsOrFlags()
74 return android::ResTable_map::TYPE_FRACTION; in ParseFormatTypeNoEnumsOrFlags()
81 return android::ResTable_map::TYPE_ENUM; in ParseFormatType()
83 return android::ResTable_map::TYPE_FLAGS; in ParseFormatType()
515 android::ResTable_map::TYPE_FLOAT | android::ResTable_map::TYPE_FRACTION | in ParseResource()
[all …]
H A DResourceUtils.cpp601 return android::ResTable_map::TYPE_FLOAT; in AndroidTypeToAttributeTypeMask()
612 android::ResTable_map::TYPE_ENUM | in AndroidTypeToAttributeTypeMask()
613 android::ResTable_map::TYPE_FLAGS; in AndroidTypeToAttributeTypeMask()
622 return android::ResTable_map::TYPE_COLOR; in AndroidTypeToAttributeTypeMask()
632 using android::ResTable_map; in TryParseItemForAttribute()
651 if (type_mask & ResTable_map::TYPE_COLOR) { in TryParseItemForAttribute()
659 if (type_mask & ResTable_map::TYPE_BOOLEAN) { in TryParseItemForAttribute()
676 ResTable_map::TYPE_FLOAT | ResTable_map::TYPE_DIMENSION | ResTable_map::TYPE_FRACTION; in TryParseItemForAttribute()
696 using android::ResTable_map; in TryParseItemForAttribute()
704 if (type_mask & ResTable_map::TYPE_ENUM) { in TryParseItemForAttribute()
[all …]
H A DResourceUtils_test.cpp25 using ::android::ResTable_map;
198 .SetTypeMask(ResTable_map::TYPE_FLAGS) in TEST()
219 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" 12\n ", ResTable_map::TYPE_INTEGER), in TEST()
221 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" true\n ", ResTable_map::TYPE_BOOLEAN), in TEST()
226 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" 12.0\n ", ResTable_map::TYPE_FLOAT), in TEST()
H A DResourceValues_test.cpp30 constexpr const uint32_t TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION;
31 constexpr const uint32_t TYPE_ENUM = android::ResTable_map::TYPE_ENUM;
32 constexpr const uint32_t TYPE_FLAGS = android::ResTable_map::TYPE_FLAGS;
33 constexpr const uint32_t TYPE_INTEGER = android::ResTable_map::TYPE_INTEGER;
35 constexpr const uint32_t TYPE_STRING = android::ResTable_map::TYPE_STRING;
H A DResourceTable_test.cpp135 Attribute attr_one(android::ResTable_map::TYPE_STRING); in TEST()
137 Attribute attr_two(android::ResTable_map::TYPE_STRING | android::ResTable_map::TYPE_REFERENCE); in TEST()
H A DDebug.cpp135 constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS; in Visit()
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.cpp34 using ::android::ResTable_map;
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()
/aosp12/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp611 for (const ResTable_map& map_entry : map) { in ParseStyle()
642 for (const ResTable_map& map_entry : map) { in ParseAttr()
645 case ResTable_map::ATTR_MIN: in ParseAttr()
648 case ResTable_map::ATTR_MAX: in ParseAttr()
655 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr()
689 case ResTable_map::ATTR_ZERO: in ParsePlural()
692 case ResTable_map::ATTR_ONE: in ParsePlural()
695 case ResTable_map::ATTR_TWO: in ParsePlural()
698 case ResTable_map::ATTR_FEW: in ParsePlural()
701 case ResTable_map::ATTR_MANY: in ParsePlural()
[all …]
H A DBinaryResourceParser.h92 bool CollectMetaData(const android::ResTable_map& map_entry, Value* value);
134 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin()
135 return (const ResTable_map*)((const uint8_t*)map + ::aapt::util::DeviceToHost32(map->size)); in begin()
138 inline const ResTable_map* end(const ResTable_map_entry* map) { in end()
H A DTableFlattener.cpp98 Reference key = Reference(ResourceId(ResTable_map::ATTR_MIN)); in Visit()
145 Reference key(android::ResTable_map::ATTR_MIN + i); in Visit()
160 q.id = android::ResTable_map::ATTR_ZERO; in Visit()
164 q.id = android::ResTable_map::ATTR_ONE; in Visit()
168 q.id = android::ResTable_map::ATTR_TWO; in Visit()
172 q.id = android::ResTable_map::ATTR_FEW; in Visit()
176 q.id = android::ResTable_map::ATTR_MANY; in Visit()
180 q.id = android::ResTable_map::ATTR_OTHER; in Visit()
204 void FlattenKey(const Reference* key, ResTable_map* out_entry) { in FlattenKey()
209 void FlattenValue(const Item* value, ResTable_map* out_entry) { in FlattenValue()
[all …]
H A DTableFlattener_test.cpp221 attr.type_mask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
288 auto values = (const ResTable_map*)(((const uint8_t *)entry) + entry->size); in TEST_F()
290 ASSERT_EQ(values->name.ident, android::ResTable_map::ATTR_MIN); in TEST_F()
292 ASSERT_EQ((values+1)->name.ident, android::ResTable_map::ATTR_MIN + 1); in TEST_F()
/aosp12/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator.cpp102 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()
162 (android::ResTable_map::TYPE_FLAGS | android::ResTable_map::TYPE_ENUM)) { in AddAttributeFormatDoc()
163 if (type_mask & android::ResTable_map::TYPE_FLAGS) { in AddAttributeFormatDoc()
/aosp12/frameworks/base/tools/aapt/
H A DResourceTable.cpp464 if ((attr.type&(ResTable_map::TYPE_ENUM|ResTable_map::TYPE_FLAGS)) == 0) { in compileAttribute()
519 ResTable_map::TYPE_ENUM|ResTable_map::TYPE_FLAGS)); in compileAttribute()
1407 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_STRING; in compileResourceFile()
1413 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_COLOR; in compileResourceFile()
1417 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_COLOR; in compileResourceFile()
1421 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_BOOLEAN; in compileResourceFile()
1425 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_INTEGER; in compileResourceFile()
1433 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_FRACTION; in compileResourceFile()
1498 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_STRING; in compileResourceFile()
1505 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_INTEGER; in compileResourceFile()
[all …]
H A DResourceTable.h149 const int32_t format = ResTable_map::TYPE_ANY,
173 const int32_t format = ResTable_map::TYPE_ANY);
254 uint32_t attrType = ResTable_map::TYPE_ANY,
298 Item() : isId(false), format(ResTable_map::TYPE_ANY), bagKeyId(0), evaluating(false) in Item()
304 int32_t format = ResTable_map::TYPE_ANY);
337 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos) in Entry()
364 int32_t format = ResTable_map::TYPE_ANY,
371 int32_t format = ResTable_map::TYPE_ANY);
/aosp12/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp4766 const ResTable_map* map; in getBagLocked()
5545 case ResTable_map::ATTR_TYPE: in stringToValue()
5548 case ResTable_map::ATTR_MIN: in stringToValue()
5551 case ResTable_map::ATTR_MAX: in stringToValue()
5554 case ResTable_map::ATTR_L10N: in stringToValue()
5564 if (attrType == ResTable_map::TYPE_ENUM in stringToValue()
5691 if (l10nReq == ResTable_map::L10N_SUGGESTED) { in stringToValue()
5946 if ((attrType&ResTable_map::TYPE_ENUM) != 0) { in stringToValue()
5985 if ((attrType&ResTable_map::TYPE_FLAGS) != 0) { in stringToValue()
6047 if ((attrType&ResTable_map::TYPE_STRING) == 0) { in stringToValue()
[all …]
/aosp12/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp283 if (bag->entries[i].key == ResTable_map::ATTR_TYPE) { in LookupAttributeInTable()
294 case ResTable_map::ATTR_MIN: in LookupAttributeInTable()
297 case ResTable_map::ATTR_MAX: in LookupAttributeInTable()
/aosp12/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp390 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
391 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
399 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
400 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
409 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
411 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
420 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
422 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
/aosp12/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h1531 struct ResTable_map struct
1907 ResTable_map map;
2083 uint32_t attrType = ResTable_map::TYPE_ANY,

12