Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DResEntryWriter.cpp58 Reference key = Reference(ResourceId(ResTable_map::ATTR_MIN)); in Visit()
64 Reference key = Reference(ResourceId(ResTable_map::ATTR_MAX)); in Visit()
105 Reference key(android::ResTable_map::ATTR_MIN + i); in Visit()
120 q.id = android::ResTable_map::ATTR_ZERO; in Visit()
124 q.id = android::ResTable_map::ATTR_ONE; in Visit()
128 q.id = android::ResTable_map::ATTR_TWO; in Visit()
132 q.id = android::ResTable_map::ATTR_FEW; in Visit()
136 q.id = android::ResTable_map::ATTR_MANY; in Visit()
140 q.id = android::ResTable_map::ATTR_OTHER; in Visit()
169 void FlattenValue(const Item* value, ResTable_map* out_entry) { in FlattenValue()
[all …]
H A DResEntryWriter_test.cpp26 using ::android::ResTable_map;
105 std::vector<int32_t> expected_offsets{0, sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map)}; in TEST_F()
106 EXPECT_EQ(out.size(), 2 * (sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map))); in TEST_F()
116 std::vector<int32_t> expected_offsets{0, sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map)}; in TEST_F()
117 EXPECT_EQ(out.size(), 2 * (sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map))); in TEST_F()
174 std::vector<int32_t> expected_offsets{0, sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map)}; in TEST_F()
175 EXPECT_EQ(out.size(), 2 * (sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map))); in TEST_F()
185 std::vector<int32_t> expected_offsets{0, sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map)}; in TEST_F()
186 EXPECT_EQ(out.size(), 2 * (sizeof(ResTable_entry_ext) + 2 * sizeof(ResTable_map))); in TEST_F()
H A DBinaryResourceParser.h93 bool CollectMetaData(const android::ResTable_map& map_entry, Value* value);
135 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin()
136 return (const ResTable_map*)((const uint8_t*)map + android::util::DeviceToHost32(map->size)); in begin()
139 inline const ResTable_map* end(const ResTable_map_entry* map) { in end()
H A DBinaryResourceParser.cpp619 for (const ResTable_map& map_entry : map) { in ParseStyle()
650 for (const ResTable_map& map_entry : map) { in ParseAttr()
653 case ResTable_map::ATTR_MIN: in ParseAttr()
656 case ResTable_map::ATTR_MAX: in ParseAttr()
663 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr()
697 case ResTable_map::ATTR_ZERO: in ParsePlural()
700 case ResTable_map::ATTR_ONE: in ParsePlural()
703 case ResTable_map::ATTR_TWO: in ParsePlural()
706 case ResTable_map::ATTR_FEW: in ParsePlural()
709 case ResTable_map::ATTR_MANY: in ParsePlural()
[all …]
H A DResEntryWriter.h33 using android::ResTable_map;
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()
/aosp14/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 DXmlReferenceLinker.cpp50 Attribute default_attribute(android::ResTable_map::TYPE_ANY); in Visit()
98 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
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()
/aosp14/frameworks/base/tools/aapt2/
H A DResourceValues.cpp547 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 || in IsCompatibleWith()
559 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString()
601 if ((type_mask & android::ResTable_map::TYPE_COLOR) != 0) { in MaskString()
610 if ((type_mask & android::ResTable_map::TYPE_FLOAT) != 0) { in MaskString()
637 if ((type_mask & android::ResTable_map::TYPE_ENUM) != 0) { in MaskString()
646 if ((type_mask & android::ResTable_map::TYPE_FLAGS) != 0) { in MaskString()
688 if (attr.type_mask & android::ResTable_map::TYPE_COLOR) { in BuildAttributeMismatchMessage()
696 if (attr.type_mask & android::ResTable_map::TYPE_ENUM) { in BuildAttributeMismatchMessage()
700 if (attr.type_mask & android::ResTable_map::TYPE_FLAGS) { in BuildAttributeMismatchMessage()
704 if (attr.type_mask & android::ResTable_map::TYPE_FLOAT) { in BuildAttributeMismatchMessage()
[all …]
H A DResourceUtils.cpp593 return android::ResTable_map::TYPE_FLOAT; in AndroidTypeToAttributeTypeMask()
604 android::ResTable_map::TYPE_ENUM | in AndroidTypeToAttributeTypeMask()
605 android::ResTable_map::TYPE_FLAGS; in AndroidTypeToAttributeTypeMask()
614 return android::ResTable_map::TYPE_COLOR; in AndroidTypeToAttributeTypeMask()
624 using android::ResTable_map; in TryParseItemForAttribute()
643 if (type_mask & ResTable_map::TYPE_COLOR) { in TryParseItemForAttribute()
651 if (type_mask & ResTable_map::TYPE_BOOLEAN) { in TryParseItemForAttribute()
668 ResTable_map::TYPE_FLOAT | ResTable_map::TYPE_DIMENSION | ResTable_map::TYPE_FRACTION; in TryParseItemForAttribute()
688 using android::ResTable_map; in TryParseItemForAttribute()
696 if (type_mask & ResTable_map::TYPE_ENUM) { in TryParseItemForAttribute()
[all …]
H A DResourceParser.cpp59 return android::ResTable_map::TYPE_REFERENCE; in ParseFormatTypeNoEnumsOrFlags()
61 return android::ResTable_map::TYPE_STRING; in ParseFormatTypeNoEnumsOrFlags()
63 return android::ResTable_map::TYPE_INTEGER; in ParseFormatTypeNoEnumsOrFlags()
65 return android::ResTable_map::TYPE_BOOLEAN; in ParseFormatTypeNoEnumsOrFlags()
67 return android::ResTable_map::TYPE_COLOR; in ParseFormatTypeNoEnumsOrFlags()
69 return android::ResTable_map::TYPE_FLOAT; in ParseFormatTypeNoEnumsOrFlags()
73 return android::ResTable_map::TYPE_FRACTION; in ParseFormatTypeNoEnumsOrFlags()
80 return android::ResTable_map::TYPE_ENUM; in ParseFormatType()
82 return android::ResTable_map::TYPE_FLAGS; in ParseFormatType()
513 android::ResTable_map::TYPE_FLOAT | android::ResTable_map::TYPE_FRACTION | in ParseResource()
[all …]
H A DResourceUtils_test.cpp25 using ::android::ResTable_map;
199 .SetTypeMask(ResTable_map::TYPE_FLAGS) in TEST()
220 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" 12\n ", ResTable_map::TYPE_INTEGER), in TEST()
222 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" true\n ", ResTable_map::TYPE_BOOLEAN), in TEST()
227 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.cpp136 Attribute attr_one(android::ResTable_map::TYPE_STRING); in TEST()
138 Attribute attr_two(android::ResTable_map::TYPE_STRING | android::ResTable_map::TYPE_REFERENCE); in TEST()
H A DDebug.cpp139 constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS; in Visit()
714 auto maps = (const ResTable_map*)((const uint8_t*)entry + entry->size()); in PrintTableType()
/aosp14/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()
/aosp14/frameworks/base/tools/aapt/
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);
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 …]
/aosp14/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp278 if (bag->entries[i].key == ResTable_map::ATTR_TYPE) { in LookupAttributeInTable()
289 case ResTable_map::ATTR_MIN: in LookupAttributeInTable()
292 case ResTable_map::ATTR_MAX: in LookupAttributeInTable()
/aosp14/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp4802 const ResTable_map* map; in getBagLocked()
5581 case ResTable_map::ATTR_TYPE: in stringToValue()
5584 case ResTable_map::ATTR_MIN: in stringToValue()
5587 case ResTable_map::ATTR_MAX: in stringToValue()
5590 case ResTable_map::ATTR_L10N: in stringToValue()
5600 if (attrType == ResTable_map::TYPE_ENUM in stringToValue()
5727 if (l10nReq == ResTable_map::L10N_SUGGESTED) { in stringToValue()
5982 if ((attrType&ResTable_map::TYPE_ENUM) != 0) { in stringToValue()
6021 if ((attrType&ResTable_map::TYPE_FLAGS) != 0) { in stringToValue()
6083 if ((attrType&ResTable_map::TYPE_STRING) == 0) { in stringToValue()
[all …]
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp392 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
393 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
401 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
402 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
411 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
413 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
422 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
424 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h1636 struct ResTable_map struct
2037 ResTable_map map;
2213 uint32_t attrType = ResTable_map::TYPE_ANY,

12