/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | XmlReferenceLinker_test.cpp | 36 .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 D | ReferenceLinker_test.cpp | 21 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 D | XmlCompatVersioner_test.cpp | 31 constexpr auto TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION; 32 constexpr auto TYPE_STRING = android::ResTable_map::TYPE_STRING;
|
H A D | ManifestFixer_test.cpp | 45 .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 D | XmlReferenceLinker.cpp | 52 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 D | ResourceValues.cpp | 546 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 D | ResourceParser.cpp | 60 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 D | ResourceUtils.cpp | 601 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 D | ResourceUtils_test.cpp | 25 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 D | ResourceValues_test.cpp | 30 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 D | ResourceTable_test.cpp | 135 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 D | Debug.cpp | 135 constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS; in Visit()
|
H A D | ResourceTable.cpp | 286 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 D | ResourceParser_test.cpp | 34 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 D | BinaryResourceParser.cpp | 611 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 D | BinaryResourceParser.h | 92 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 D | TableFlattener.cpp | 98 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 D | TableFlattener_test.cpp | 221 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 D | JavaClassGenerator.cpp | 102 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 D | ResourceTable.cpp | 464 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 D | ResourceTable.h | 149 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 D | ResourceTypes.cpp | 4766 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 D | SymbolTable.cpp | 283 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 D | Link.cpp | 390 {"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 D | ResourceTypes.h | 1531 struct ResTable_map struct 1907 ResTable_map map; 2083 uint32_t attrType = ResTable_map::TYPE_ANY,
|