Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/link/
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()
64 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in SetUp()
69 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in SetUp()
DReferenceLinker_test.cpp21 using ::android::ResTable_map;
108 .SetTypeMask(ResTable_map::TYPE_COLOR) in TEST()
112 .SetTypeMask(ResTable_map::TYPE_FLAGS) in TEST()
151 .SetTypeMask(ResTable_map::TYPE_COLOR) in TEST()
251 .SetTypeMask(android::ResTable_map::TYPE_COLOR) in TEST()
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()
DXmlCompatVersioner_test.cpp31 constexpr auto TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION;
32 constexpr auto TYPE_STRING = android::ResTable_map::TYPE_STRING;
DXmlReferenceLinker.cpp83 Attribute default_attribute(android::ResTable_map::TYPE_ANY); in Visit()
122 } else if ((attribute->type_mask & android::ResTable_map::TYPE_STRING) == 0) { in Visit()
DTableMerger_test.cpp360 .SetTypeMask(android::ResTable_map::TYPE_STRING) in TEST_F()
369 .SetTypeMask(android::ResTable_map::TYPE_STRING) in TEST_F()
388 .SetTypeMask(android::ResTable_map::TYPE_ANY) in TEST_F()
397 .SetTypeMask(android::ResTable_map::TYPE_STRING) in TEST_F()
/frameworks/base/tools/aapt2/
DResourceValues.cpp583 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 || in IsCompatibleWith()
584 (attr.type_mask & ~android::ResTable_map::TYPE_ANY) != 0) { in IsCompatibleWith()
589 uint32_t this_type_mask = type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith()
590 uint32_t that_type_mask = attr.type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith()
599 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString()
605 if ((type_mask & android::ResTable_map::TYPE_REFERENCE) != 0) { in MaskString()
614 if ((type_mask & android::ResTable_map::TYPE_STRING) != 0) { in MaskString()
623 if ((type_mask & android::ResTable_map::TYPE_INTEGER) != 0) { in MaskString()
632 if ((type_mask & android::ResTable_map::TYPE_BOOLEAN) != 0) { in MaskString()
641 if ((type_mask & android::ResTable_map::TYPE_COLOR) != 0) { in MaskString()
[all …]
DResourceParser.cpp51 return android::ResTable_map::TYPE_REFERENCE; in ParseFormatTypeNoEnumsOrFlags()
53 return android::ResTable_map::TYPE_STRING; in ParseFormatTypeNoEnumsOrFlags()
55 return android::ResTable_map::TYPE_INTEGER; in ParseFormatTypeNoEnumsOrFlags()
57 return android::ResTable_map::TYPE_BOOLEAN; in ParseFormatTypeNoEnumsOrFlags()
59 return android::ResTable_map::TYPE_COLOR; in ParseFormatTypeNoEnumsOrFlags()
61 return android::ResTable_map::TYPE_FLOAT; in ParseFormatTypeNoEnumsOrFlags()
63 return android::ResTable_map::TYPE_DIMENSION; in ParseFormatTypeNoEnumsOrFlags()
65 return android::ResTable_map::TYPE_FRACTION; in ParseFormatTypeNoEnumsOrFlags()
72 return android::ResTable_map::TYPE_ENUM; in ParseFormatType()
74 return android::ResTable_map::TYPE_FLAGS; in ParseFormatType()
[all …]
DResourceUtils.cpp595 return android::ResTable_map::TYPE_REFERENCE; in AndroidTypeToAttributeTypeMask()
598 return android::ResTable_map::TYPE_STRING; in AndroidTypeToAttributeTypeMask()
601 return android::ResTable_map::TYPE_FLOAT; in AndroidTypeToAttributeTypeMask()
604 return android::ResTable_map::TYPE_DIMENSION; in AndroidTypeToAttributeTypeMask()
607 return android::ResTable_map::TYPE_FRACTION; in AndroidTypeToAttributeTypeMask()
611 return android::ResTable_map::TYPE_INTEGER | in AndroidTypeToAttributeTypeMask()
612 android::ResTable_map::TYPE_ENUM | in AndroidTypeToAttributeTypeMask()
613 android::ResTable_map::TYPE_FLAGS; in AndroidTypeToAttributeTypeMask()
616 return android::ResTable_map::TYPE_BOOLEAN; in AndroidTypeToAttributeTypeMask()
622 return android::ResTable_map::TYPE_COLOR; in AndroidTypeToAttributeTypeMask()
[all …]
DResourceUtils_test.cpp25 using ::android::ResTable_map;
184 .SetTypeMask(ResTable_map::TYPE_FLAGS) in TEST()
205 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" 12\n ", ResTable_map::TYPE_INTEGER), in TEST()
207 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" true\n ", ResTable_map::TYPE_BOOLEAN), in TEST()
212 EXPECT_THAT(ResourceUtils::TryParseItemForAttribute(" 12.0\n ", ResTable_map::TYPE_FLOAT), in TEST()
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;
DResourceParser_test.cpp34 using ::android::ResTable_map;
330 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
334 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_ANY)); in TEST_F()
363 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_INTEGER)); in TEST_F()
382 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_STRING)); in TEST_F()
397 EXPECT_THAT(attr->type_mask, Eq(ResTable_map::TYPE_BOOLEAN)); in TEST_F()
411 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM)); in TEST_F()
438 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()
DResourceTable_test.cpp126 Attribute attr_one(android::ResTable_map::TYPE_STRING); in TEST()
128 Attribute attr_two(android::ResTable_map::TYPE_STRING | android::ResTable_map::TYPE_REFERENCE); in TEST()
DDebug.cpp129 constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS; in Visit()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp570 for (const ResTable_map& map_entry : map) { in ParseStyle()
593 auto type_mask_iter = std::find_if(begin(map), end(map), [](const ResTable_map& entry) -> bool { in ParseAttr()
594 return util::DeviceToHost32(entry.name.ident) == ResTable_map::ATTR_TYPE; in ParseAttr()
601 for (const ResTable_map& map_entry : map) { in ParseAttr()
604 case ResTable_map::ATTR_MIN: in ParseAttr()
607 case ResTable_map::ATTR_MAX: in ParseAttr()
614 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr()
630 for (const ResTable_map& map_entry : map) { in ParseArray()
640 for (const ResTable_map& map_entry : map) { in ParsePlural()
647 case ResTable_map::ATTR_ZERO: in ParsePlural()
[all …]
DBinaryResourceParser.h89 bool CollectMetaData(const android::ResTable_map& map_entry, Value* value);
127 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin()
128 return (const ResTable_map*)((const uint8_t*)map + ::aapt::util::DeviceToHost32(map->size)); in begin()
131 inline const ResTable_map* end(const ResTable_map_entry* map) { in end()
DTableFlattener.cpp92 Reference key = Reference(ResourceId(ResTable_map::ATTR_TYPE)); in Visit()
98 Reference key = Reference(ResourceId(ResTable_map::ATTR_MIN)); in Visit()
104 Reference key = Reference(ResourceId(ResTable_map::ATTR_MAX)); in Visit()
140 Reference key(android::ResTable_map::ATTR_MIN + i); in Visit()
155 q.id = android::ResTable_map::ATTR_ZERO; in Visit()
159 q.id = android::ResTable_map::ATTR_ONE; in Visit()
163 q.id = android::ResTable_map::ATTR_TWO; in Visit()
167 q.id = android::ResTable_map::ATTR_FEW; in Visit()
171 q.id = android::ResTable_map::ATTR_MANY; in Visit()
175 q.id = android::ResTable_map::ATTR_OTHER; in Visit()
[all …]
DTableFlattener_test.cpp221 attr.type_mask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
290 auto values = (const ResTable_map*)(((const uint8_t *)entry) + entry->size); in TEST_F()
292 ASSERT_EQ(values->name.ident, android::ResTable_map::ATTR_MIN); in TEST_F()
294 ASSERT_EQ((values+1)->name.ident, android::ResTable_map::ATTR_MIN + 1); in TEST_F()
/frameworks/base/tools/aapt2/java/
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()
/frameworks/base/tools/aapt/
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);
DResourceTable.cpp179 { referenceArray, sizeof(referenceArray)/2, ResTable_map::TYPE_REFERENCE,
182 { stringArray, sizeof(stringArray)/2, ResTable_map::TYPE_STRING,
184 { integerArray, sizeof(integerArray)/2, ResTable_map::TYPE_INTEGER,
186 { booleanArray, sizeof(booleanArray)/2, ResTable_map::TYPE_BOOLEAN,
188 { colorArray, sizeof(colorArray)/2, ResTable_map::TYPE_COLOR,
191 { floatArray, sizeof(floatArray)/2, ResTable_map::TYPE_FLOAT,
193 { dimensionArray, sizeof(dimensionArray)/2, ResTable_map::TYPE_DIMENSION,
197 { fractionArray, sizeof(fractionArray)/2, ResTable_map::TYPE_FRACTION,
201 { enumArray, sizeof(enumArray)/2, ResTable_map::TYPE_ENUM, NULL },
202 { flagsArray, sizeof(flagsArray)/2, ResTable_map::TYPE_FLAGS, NULL },
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp4648 const ResTable_map* map; in getBagLocked()
4660 if (curOff > (dtohl(entry.type->header.size)-sizeof(ResTable_map))) { in getBagLocked()
4666 map = (const ResTable_map*)(((const uint8_t*)entry.type) + curOff); in getBagLocked()
4838 { ResTable_map::ATTR_TYPE, 5, { '^', 't', 'y', 'p', 'e' } },
4839 { ResTable_map::ATTR_L10N, 5, { '^', 'l', '1', '0', 'n' } },
4840 { ResTable_map::ATTR_MIN, 4, { '^', 'm', 'i', 'n' } },
4841 { ResTable_map::ATTR_MAX, 4, { '^', 'm', 'a', 'x' } },
4842 { ResTable_map::ATTR_OTHER, 6, { '^', 'o', 't', 'h', 'e', 'r' } },
4843 { ResTable_map::ATTR_ZERO, 5, { '^', 'z', 'e', 'r', 'o' } },
4844 { ResTable_map::ATTR_ONE, 4, { '^', 'o', 'n', 'e' } },
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp281 if (bag->entries[i].key == android::ResTable_map::ATTR_TYPE) { in LookupAttributeInTable()
292 case android::ResTable_map::ATTR_MIN: in LookupAttributeInTable()
295 case android::ResTable_map::ATTR_MAX: in LookupAttributeInTable()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp345 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
346 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
354 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
355 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
364 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
366 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
375 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
377 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1500 struct ResTable_map struct
1837 ResTable_map map;
2013 uint32_t attrType = ResTable_map::TYPE_ANY,

12