/frameworks/base/tools/aapt2/ |
D | ResourceValues.cpp | 261 if (typeMask == android::ResTable_map::TYPE_ANY) { in printMask() 267 if ((typeMask & android::ResTable_map::TYPE_REFERENCE) != 0) { in printMask() 276 if ((typeMask & android::ResTable_map::TYPE_STRING) != 0) { in printMask() 285 if ((typeMask & android::ResTable_map::TYPE_INTEGER) != 0) { in printMask() 294 if ((typeMask & android::ResTable_map::TYPE_BOOLEAN) != 0) { in printMask() 303 if ((typeMask & android::ResTable_map::TYPE_COLOR) != 0) { in printMask() 312 if ((typeMask & android::ResTable_map::TYPE_FLOAT) != 0) { in printMask() 321 if ((typeMask & android::ResTable_map::TYPE_DIMENSION) != 0) { in printMask() 330 if ((typeMask & android::ResTable_map::TYPE_FRACTION) != 0) { in printMask() 339 if ((typeMask & android::ResTable_map::TYPE_ENUM) != 0) { in printMask() [all …]
|
D | ResourceUtils.cpp | 443 return android::ResTable_map::TYPE_REFERENCE; in androidTypeToAttributeTypeMask() 446 return android::ResTable_map::TYPE_STRING; in androidTypeToAttributeTypeMask() 449 return android::ResTable_map::TYPE_FLOAT; in androidTypeToAttributeTypeMask() 452 return android::ResTable_map::TYPE_DIMENSION; in androidTypeToAttributeTypeMask() 455 return android::ResTable_map::TYPE_FRACTION; in androidTypeToAttributeTypeMask() 459 return android::ResTable_map::TYPE_INTEGER | android::ResTable_map::TYPE_ENUM in androidTypeToAttributeTypeMask() 460 | android::ResTable_map::TYPE_FLAGS; in androidTypeToAttributeTypeMask() 463 return android::ResTable_map::TYPE_BOOLEAN; in androidTypeToAttributeTypeMask() 469 return android::ResTable_map::TYPE_COLOR; in androidTypeToAttributeTypeMask() 493 if (typeMask & android::ResTable_map::TYPE_COLOR) { in parseItemForAttribute() [all …]
|
D | ResourceParser.cpp | 41 if (piece == u"reference") return android::ResTable_map::TYPE_REFERENCE; in parseFormatType() 42 else if (piece == u"string") return android::ResTable_map::TYPE_STRING; in parseFormatType() 43 else if (piece == u"integer") return android::ResTable_map::TYPE_INTEGER; in parseFormatType() 44 else if (piece == u"boolean") return android::ResTable_map::TYPE_BOOLEAN; in parseFormatType() 45 else if (piece == u"color") return android::ResTable_map::TYPE_COLOR; in parseFormatType() 46 else if (piece == u"float") return android::ResTable_map::TYPE_FLOAT; in parseFormatType() 47 else if (piece == u"dimension") return android::ResTable_map::TYPE_DIMENSION; in parseFormatType() 48 else if (piece == u"fraction") return android::ResTable_map::TYPE_FRACTION; in parseFormatType() 49 else if (piece == u"enum") return android::ResTable_map::TYPE_ENUM; in parseFormatType() 50 else if (piece == u"flags") return android::ResTable_map::TYPE_FLAGS; in parseFormatType() [all …]
|
D | ResourceParser_test.cpp | 136 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask); in TEST_F() 140 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_ANY), attr->typeMask); in TEST_F() 169 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_INTEGER), attr->typeMask); in TEST_F() 188 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask); in TEST_F() 202 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_BOOLEAN), attr->typeMask); in TEST_F() 215 EXPECT_EQ(enumAttr->typeMask, android::ResTable_map::TYPE_ENUM); in TEST_F() 241 EXPECT_EQ(flagAttr->typeMask, android::ResTable_map::TYPE_FLAGS); in TEST_F()
|
D | Debug.cpp | 40 static constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | in visit() 41 android::ResTable_map::TYPE_FLAGS; in visit()
|
D | ResourceTable.cpp | 240 if (existingAttr->isWeak() && existingAttr->typeMask == android::ResTable_map::TYPE_ANY) { in resolveValueCollision() 245 if (incomingAttr->isWeak() && incomingAttr->typeMask == android::ResTable_map::TYPE_ANY) { in resolveValueCollision()
|
D | ResourceUtils_test.cpp | 197 .setTypeMask(android::ResTable_map::TYPE_FLAGS) in TEST()
|
/frameworks/base/tools/aapt2/unflatten/ |
D | BinaryResourceParser.cpp | 473 for (const ResTable_map& mapEntry : map) { in parseStyle() 496 auto typeMaskIter = std::find_if(begin(map), end(map), [](const ResTable_map& entry) -> bool { in parseAttr() 497 return util::deviceToHost32(entry.name.ident) == ResTable_map::ATTR_TYPE; in parseAttr() 504 for (const ResTable_map& mapEntry : map) { in parseAttr() 507 case ResTable_map::ATTR_MIN: in parseAttr() 510 case ResTable_map::ATTR_MAX: in parseAttr() 517 if (attr->typeMask & (ResTable_map::TYPE_ENUM | ResTable_map::TYPE_FLAGS)) { in parseAttr() 533 for (const ResTable_map& mapEntry : map) { in parseArray() 543 for (const ResTable_map& mapEntry : map) { in parsePlural() 550 case ResTable_map::ATTR_ZERO: in parsePlural() [all …]
|
D | BinaryResourceParser.h | 89 bool collectMetaData(const android::ResTable_map& mapEntry, Value* value); 123 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin() 124 return (const ResTable_map*)((const uint8_t*) map + aapt::util::deviceToHost32(map->size)); in begin() 127 inline const ResTable_map* end(const ResTable_map_entry* map) { in end()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener.cpp | 85 Reference key = Reference(ResTable_map::ATTR_TYPE); in visit() 91 Reference key = Reference(ResTable_map::ATTR_MIN); in visit() 97 Reference key = Reference(ResTable_map::ATTR_MAX); in visit() 133 ResTable_map* outEntry = mBuffer->nextBlock<ResTable_map>(); in visit() 150 q.id = android::ResTable_map::ATTR_ZERO; in visit() 154 q.id = android::ResTable_map::ATTR_ONE; in visit() 158 q.id = android::ResTable_map::ATTR_TWO; in visit() 162 q.id = android::ResTable_map::ATTR_FEW; in visit() 166 q.id = android::ResTable_map::ATTR_MANY; in visit() 170 q.id = android::ResTable_map::ATTR_OTHER; in visit() [all …]
|
D | TableFlattener_test.cpp | 211 attr.typeMask = android::ResTable_map::TYPE_INTEGER; in TEST_F()
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer_test.cpp | 36 .setTypeMask(android::ResTable_map::TYPE_STRING) in SetUp() 40 .setTypeMask(android::ResTable_map::TYPE_STRING | in SetUp() 41 android::ResTable_map::TYPE_INTEGER) in SetUp() 45 .setTypeMask(android::ResTable_map::TYPE_STRING | in SetUp() 46 android::ResTable_map::TYPE_INTEGER) in SetUp()
|
D | XmlReferenceLinker_test.cpp | 33 .setTypeMask(android::ResTable_map::TYPE_ENUM | in SetUp() 34 android::ResTable_map::TYPE_DIMENSION) in SetUp() 39 .setTypeMask(android::ResTable_map::TYPE_COLOR).build()) in SetUp() 44 .setTypeMask(android::ResTable_map::TYPE_STRING) in SetUp() 60 .setTypeMask(android::ResTable_map::TYPE_COLOR).build()) in SetUp() 63 .setTypeMask(android::ResTable_map::TYPE_COLOR).build()) in SetUp()
|
D | ReferenceLinker_test.cpp | 20 using android::ResTable_map; 94 .setTypeMask(ResTable_map::TYPE_COLOR) in TEST() 98 .setTypeMask(ResTable_map::TYPE_FLAGS) in TEST() 134 .setTypeMask(ResTable_map::TYPE_COLOR) in TEST() 218 android::ResTable_map::TYPE_COLOR) in TEST()
|
D | XmlReferenceLinker.cpp | 112 !(attribute->typeMask & android::ResTable_map::TYPE_STRING)) { in visit()
|
D | ReferenceLinker.cpp | 144 if (!transformed && (attr->typeMask & android::ResTable_map::TYPE_STRING)) { in parseValueWithAttribute()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 100 if (typeMask & android::ResTable_map::TYPE_REFERENCE) { in addAttributeFormatDoc() 108 if (typeMask & android::ResTable_map::TYPE_STRING) { in addAttributeFormatDoc() 114 if (typeMask & android::ResTable_map::TYPE_INTEGER) { in addAttributeFormatDoc() 118 if (typeMask & android::ResTable_map::TYPE_BOOLEAN) { in addAttributeFormatDoc() 124 if (typeMask & android::ResTable_map::TYPE_COLOR) { in addAttributeFormatDoc() 131 if (typeMask & android::ResTable_map::TYPE_FLOAT) { in addAttributeFormatDoc() 136 if (typeMask & android::ResTable_map::TYPE_DIMENSION) { in addAttributeFormatDoc() 145 if (typeMask & android::ResTable_map::TYPE_FRACTION) { in addAttributeFormatDoc() 153 if (typeMask & (android::ResTable_map::TYPE_FLAGS | android::ResTable_map::TYPE_ENUM)) { in addAttributeFormatDoc() 154 if (typeMask & android::ResTable_map::TYPE_FLAGS) { in addAttributeFormatDoc()
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 171 { referenceArray, sizeof(referenceArray)/2, ResTable_map::TYPE_REFERENCE, 174 { stringArray, sizeof(stringArray)/2, ResTable_map::TYPE_STRING, 176 { integerArray, sizeof(integerArray)/2, ResTable_map::TYPE_INTEGER, 178 { booleanArray, sizeof(booleanArray)/2, ResTable_map::TYPE_BOOLEAN, 180 { colorArray, sizeof(colorArray)/2, ResTable_map::TYPE_COLOR, 183 { floatArray, sizeof(floatArray)/2, ResTable_map::TYPE_FLOAT, 185 { dimensionArray, sizeof(dimensionArray)/2, ResTable_map::TYPE_DIMENSION, 189 { fractionArray, sizeof(fractionArray)/2, ResTable_map::TYPE_FRACTION, 193 { enumArray, sizeof(enumArray)/2, ResTable_map::TYPE_ENUM, NULL }, 194 { flagsArray, sizeof(flagsArray)/2, ResTable_map::TYPE_FLAGS, NULL }, [all …]
|
D | ResourceTable.h | 149 const int32_t format = ResTable_map::TYPE_ANY, 173 const int32_t format = ResTable_map::TYPE_ANY); 251 uint32_t attrType = ResTable_map::TYPE_ANY, 295 Item() : isId(false), format(ResTable_map::TYPE_ANY), bagKeyId(0), evaluating(false) in Item() 301 int32_t format = ResTable_map::TYPE_ANY); 334 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos) in Entry() 361 int32_t format = ResTable_map::TYPE_ANY, 368 int32_t format = ResTable_map::TYPE_ANY);
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 159 if (entry[i].map.name.ident == android::ResTable_map::ATTR_TYPE) { in lookupAttributeInTable() 168 const android::ResTable_map& mapEntry = entry[i].map; in lookupAttributeInTable() 171 case android::ResTable_map::ATTR_MIN: in lookupAttributeInTable() 174 case android::ResTable_map::ATTR_MAX: in lookupAttributeInTable()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 4308 const ResTable_map* map; in getBagLocked() 4320 if (curOff > (dtohl(entry.type->header.size)-sizeof(ResTable_map))) { in getBagLocked() 4325 map = (const ResTable_map*)(((const uint8_t*)entry.type) + curOff); in getBagLocked() 4494 { ResTable_map::ATTR_TYPE, 5, { '^', 't', 'y', 'p', 'e' } }, 4495 { ResTable_map::ATTR_L10N, 5, { '^', 'l', '1', '0', 'n' } }, 4496 { ResTable_map::ATTR_MIN, 4, { '^', 'm', 'i', 'n' } }, 4497 { ResTable_map::ATTR_MAX, 4, { '^', 'm', 'a', 'x' } }, 4498 { ResTable_map::ATTR_OTHER, 6, { '^', 'o', 't', 'h', 'e', 'r' } }, 4499 { ResTable_map::ATTR_ZERO, 5, { '^', 'z', 'e', 'r', 'o' } }, 4500 { ResTable_map::ATTR_ONE, 4, { '^', 'o', 'n', 'e' } }, [all …]
|
/frameworks/base/include/androidfw/ |
D | ResourceTypes.h | 1410 struct ResTable_map struct 1645 ResTable_map map; 1821 uint32_t attrType = ResTable_map::TYPE_ANY,
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 175 mAttr->typeMask = android::ResTable_map::TYPE_ANY; in mAttr()
|