/frameworks/base/tools/aapt2/link/ |
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()
|
D | XmlCompatVersioner_test.cpp | 31 constexpr auto TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION; 32 constexpr auto TYPE_STRING = android::ResTable_map::TYPE_STRING;
|
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()
|
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()
|
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()
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues.cpp | 546 if ((type_mask & ~android::ResTable_map::TYPE_ANY) != 0 || in IsCompatibleWith() 547 (attr.type_mask & ~android::ResTable_map::TYPE_ANY) != 0) { in IsCompatibleWith() 552 uint32_t this_type_mask = type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith() 553 uint32_t that_type_mask = attr.type_mask | android::ResTable_map::TYPE_REFERENCE; in IsCompatibleWith() 558 if (type_mask == android::ResTable_map::TYPE_ANY) { in MaskString() 564 if ((type_mask & android::ResTable_map::TYPE_REFERENCE) != 0) { in MaskString() 573 if ((type_mask & android::ResTable_map::TYPE_STRING) != 0) { in MaskString() 582 if ((type_mask & android::ResTable_map::TYPE_INTEGER) != 0) { in MaskString() 591 if ((type_mask & android::ResTable_map::TYPE_BOOLEAN) != 0) { in MaskString() 600 if ((type_mask & android::ResTable_map::TYPE_COLOR) != 0) { in MaskString() [all …]
|
D | ResourceUtils.cpp | 593 return android::ResTable_map::TYPE_REFERENCE; in AndroidTypeToAttributeTypeMask() 596 return android::ResTable_map::TYPE_STRING; in AndroidTypeToAttributeTypeMask() 599 return android::ResTable_map::TYPE_FLOAT; in AndroidTypeToAttributeTypeMask() 602 return android::ResTable_map::TYPE_DIMENSION; in AndroidTypeToAttributeTypeMask() 605 return android::ResTable_map::TYPE_FRACTION; in AndroidTypeToAttributeTypeMask() 609 return android::ResTable_map::TYPE_INTEGER | in AndroidTypeToAttributeTypeMask() 610 android::ResTable_map::TYPE_ENUM | in AndroidTypeToAttributeTypeMask() 611 android::ResTable_map::TYPE_FLAGS; in AndroidTypeToAttributeTypeMask() 614 return android::ResTable_map::TYPE_BOOLEAN; in AndroidTypeToAttributeTypeMask() 620 return android::ResTable_map::TYPE_COLOR; in AndroidTypeToAttributeTypeMask() [all …]
|
D | ResourceParser.cpp | 59 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() 71 return android::ResTable_map::TYPE_DIMENSION; 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() [all …]
|
D | ResourceUtils_test.cpp | 25 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()
|
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;
|
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()
|
D | Debug.cpp | 137 constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS; in Visit() 700 (const ResTable_map*)((const uint8_t*)entry + util::DeviceToHost32(entry->size)); in PrintTableType()
|
D | ResourceTable.cpp | 287 if (existing_attr->IsWeak() && existing_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision() 292 if (incoming_attr->IsWeak() && incoming_attr->type_mask == android::ResTable_map::TYPE_ANY) { in ResolveValueCollision()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 613 for (const ResTable_map& map_entry : map) { in ParseStyle() 636 auto type_mask_iter = std::find_if(begin(map), end(map), [](const ResTable_map& entry) -> bool { in ParseAttr() 637 return util::DeviceToHost32(entry.name.ident) == ResTable_map::ATTR_TYPE; in ParseAttr() 644 for (const ResTable_map& map_entry : map) { in ParseAttr() 647 case ResTable_map::ATTR_MIN: in ParseAttr() 650 case ResTable_map::ATTR_MAX: in ParseAttr() 657 if (attr->type_mask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in ParseAttr() 674 for (const ResTable_map& map_entry : map) { in ParseArray() 684 for (const ResTable_map& map_entry : map) { in ParsePlural() 691 case ResTable_map::ATTR_ZERO: in ParsePlural() [all …]
|
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()
|
D | TableFlattener.cpp | 92 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() 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() [all …]
|
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()
|
/frameworks/base/tools/aapt2/java/ |
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()
|
/frameworks/base/tools/aapt/ |
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);
|
D | ResourceTable.cpp | 179 { 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/tools/aapt2/process/ |
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()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 4763 const ResTable_map* map; in getBagLocked() 4775 if (curOff > (dtohl(entry.type->header.size)-sizeof(ResTable_map))) { in getBagLocked() 4781 map = (const ResTable_map*)(((const uint8_t*)entry.type) + curOff); in getBagLocked() 4953 { ResTable_map::ATTR_TYPE, 5, { '^', 't', 'y', 'p', 'e' } }, 4954 { ResTable_map::ATTR_L10N, 5, { '^', 'l', '1', '0', 'n' } }, 4955 { ResTable_map::ATTR_MIN, 4, { '^', 'm', 'i', 'n' } }, 4956 { ResTable_map::ATTR_MAX, 4, { '^', 'm', 'a', 'x' } }, 4957 { ResTable_map::ATTR_OTHER, 6, { '^', 'o', 't', 'h', 'e', 'r' } }, 4958 { ResTable_map::ATTR_ZERO, 5, { '^', 'z', 'e', 'r', 'o' } }, 4959 { ResTable_map::ATTR_ONE, 4, { '^', 'o', 'n', 'e' } }, [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
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()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 1531 struct ResTable_map struct 1907 ResTable_map map; 2083 uint32_t attrType = ResTable_map::TYPE_ANY,
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 178 : attr_(util::make_unique<Attribute>(android::ResTable_map::TYPE_ANY)) { in AttributeBuilder()
|