/frameworks/base/tools/aapt2/ |
D | Resource.h | 122 struct ResourceId { struct 125 ResourceId(); argument 126 ResourceId(const ResourceId& rhs); 127 ResourceId(uint32_t resId); 128 ResourceId(uint8_t p, uint8_t t, uint16_t e); 189 inline ResourceId::ResourceId() : id(0) { in ResourceId() function 192 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id) { in ResourceId() function 195 inline ResourceId::ResourceId(uint32_t resId) : id(resId) { in ResourceId() function 198 inline ResourceId::ResourceId(uint8_t p, uint8_t t, uint16_t e) : id((p << 24) | (t << 16) | e) { in ResourceId() function 201 inline bool ResourceId::isValid() const { in isValid() [all …]
|
D | SdkConstants_test.cpp | 24 EXPECT_EQ(1u, findAttributeSdkLevel(ResourceId(0x01010000))); in TEST() 28 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010103f7))); in TEST() 29 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010104ce))); in TEST() 31 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104cf))); in TEST() 32 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d8))); in TEST() 34 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d9))); in TEST() 35 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x0101ffff))); in TEST()
|
D | ResourceTable.h | 199 const ResourceId resId, 230 const ResourceId id, 237 const ResourceId resId, 242 const ResourceId resId, 293 ResourceId resId, 302 ResourceId resId,
|
D | ResourceTable.cpp | 266 const ResourceId resId, in addResource() 303 return addResourceImpl(name, ResourceId{}, config, StringPiece{}, std::move(fileRef), in addFileReferenceImpl() 312 return addResourceImpl(name, ResourceId{}, config, product, std::move(value), in addResourceAllowMangled() 317 const ResourceId id, in addResourceAllowMangled() 327 const ResourceId resId, in addResourceImpl() 386 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in addResourceImpl() 418 bool ResourceTable::setSymbolState(const ResourceNameRef& name, const ResourceId resId, in setSymbolState() 424 const ResourceId resId, in setSymbolStateAllowMangled() 429 bool ResourceTable::setSymbolStateImpl(const ResourceNameRef& name, const ResourceId resId, in setSymbolStateImpl() 483 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in setSymbolStateImpl()
|
D | SdkConstants.h | 48 size_t findAttributeSdkLevel(ResourceId id);
|
/frameworks/base/tools/aapt2/link/ |
D | XmlReferenceLinker_test.cpp | 31 .addPublicSymbol(u"@android:attr/layout_width", ResourceId(0x01010000), in SetUp() 37 .addPublicSymbol(u"@android:attr/background", ResourceId(0x01010001), in SetUp() 40 .addPublicSymbol(u"@android:attr/attr", ResourceId(0x01010002), in SetUp() 42 .addPublicSymbol(u"@android:attr/text", ResourceId(0x01010003), in SetUp() 48 .addPublicSymbol(u"@android:attr/colorAccent", ResourceId(0x01010435), in SetUp() 52 .addSymbol(u"@android:color/hidden", ResourceId(0x01020001)) in SetUp() 54 .addPublicSymbol(u"@android:id/id", ResourceId(0x01030000)) in SetUp() 55 .addSymbol(u"@com.app.test:id/id", ResourceId(0x7f030000)) in SetUp() 56 .addSymbol(u"@com.app.test:color/green", ResourceId(0x7f020000)) in SetUp() 57 .addSymbol(u"@com.app.test:color/red", ResourceId(0x7f020001)) in SetUp() [all …]
|
D | ReferenceLinker_test.cpp | 27 .addReference(u"@com.app.test:string/foo", ResourceId(0x7f020000), in TEST() 31 .addReference(u"@com.app.test:string/bar", ResourceId(0x7f020001), u"@string/baz") in TEST() 33 .addReference(u"@com.app.test:string/baz", ResourceId(0x7f020002), in TEST() 43 .addPublicSymbol(u"@android:string/ok", ResourceId(0x01040034)) in TEST() 53 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020001)); in TEST() 58 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020002)); in TEST() 63 EXPECT_EQ(ref->id.value(), ResourceId(0x01040034)); in TEST() 91 ResourceId(0x01060000)) in TEST() 92 .addPublicSymbol(u"@android:attr/foo", ResourceId(0x01010001), in TEST() 96 .addPublicSymbol(u"@android:attr/bar", ResourceId(0x01010002), in TEST() [all …]
|
D | AutoVersioner_test.cpp | 57 .addValue(u"@app:style/Foo", ResourceId(0x7f020000), test::parseConfigOrDie("v4"), in TEST() 59 .addItem(u"@android:attr/onClick", ResourceId(0x0101026f), in TEST() 61 .addItem(u"@android:attr/paddingStart", ResourceId(0x010103b3), in TEST() 64 ResourceId(0x01010364), util::make_unique<Id>()) in TEST() 65 .addItem(u"@android:attr/colorAccent", ResourceId(0x01010435), in TEST() 68 .addValue(u"@app:style/Foo", ResourceId(0x7f020000), test::parseConfigOrDie("v21"), in TEST() 70 .addItem(u"@android:attr/paddingEnd", ResourceId(0x010103b4), in TEST()
|
D | ManifestFixer_test.cpp | 34 .addSymbol(u"@android:attr/package", ResourceId(0x01010000), in SetUp() 38 .addSymbol(u"@android:attr/minSdkVersion", ResourceId(0x01010001), in SetUp() 43 .addSymbol(u"@android:attr/targetSdkVersion", ResourceId(0x01010002), in SetUp() 48 .addSymbol(u"@android:string/str", ResourceId(0x01060000)) in SetUp()
|
D | PrivateAttributeMover_test.cpp | 33 .setSymbolState(u"@android:attr/publicA", ResourceId(0x01010000), SymbolState::kPublic) in TEST() 34 .setSymbolState(u"@android:attr/publicB", ResourceId(0x01010000), SymbolState::kPublic) in TEST()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener_test.cpp | 70 const ResourceId expectedId, in exists() 147 .addSimple(u"@com.app.test:id/one", ResourceId(0x7f020000)) in TEST_F() 148 .addSimple(u"@com.app.test:id/two", ResourceId(0x7f020001)) in TEST_F() 149 .addValue(u"@com.app.test:id/three", ResourceId(0x7f020002), in TEST_F() 150 test::buildReference(u"@com.app.test:id/one", ResourceId(0x7f020000))) in TEST_F() 151 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000), in TEST_F() 153 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000), in TEST_F() 156 .addString(u"@com.app.test:string/test", ResourceId(0x7f040000), u"foo") in TEST_F() 157 .addString(u"@com.app.test:layout/bar", ResourceId(0x7f050000), u"res/layout/bar.xml") in TEST_F() 163 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/one", ResourceId(0x7f020000), {}, in TEST_F() [all …]
|
D | XmlFlattener_test.cpp | 36 .addSymbol(u"@android:attr/id", ResourceId(0x010100d0), in SetUp() 38 .addSymbol(u"@com.app.test:id/id", ResourceId(0x7f020000)) in SetUp() 39 .addSymbol(u"@android:attr/paddingStart", ResourceId(0x010103b3), in SetUp() 41 .addSymbol(u"@android:attr/colorAccent", ResourceId(0x01010435), in SetUp()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.h | 45 inline android::hash_t hash_type(const ResourceId& id) { in hash_type() 54 Symbol() : Symbol(Maybe<ResourceId>{}) { in Symbol() 57 Symbol(const Maybe<ResourceId>& i) : Symbol(i, nullptr) { in Symbol() 60 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr) : in Symbol() 64 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr, bool pub) : in Symbol() 73 Maybe<ResourceId> id; 89 const Symbol* findById(ResourceId id); 103 android::LruCache<ResourceId, std::shared_ptr<Symbol>> mIdCache; 117 virtual std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) = 0; 144 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override { in findById() [all …]
|
D | SymbolTable_test.cpp | 24 .addSimple(u"@android:id/foo", ResourceId(0x01020000)) in TEST() 26 .addValue(u"@android:attr/foo", ResourceId(0x01010000), in TEST() 42 .addValue(u"@android:^attr-private/foo", ResourceId(0x01010000), in TEST()
|
D | SymbolTable.cpp | 65 const SymbolTable::Symbol* SymbolTable::findById(ResourceId id) { in findById() 120 symbol->id = ResourceId(sr.package->id.value(), sr.type->id.value(), sr.entry->id.value()); in findByName() 144 ResourceId id) { in lookupAttributeInTable() 199 symbol.symbol.id = ResourceId(mapEntry.name.ident); in lookupAttributeInTable() 213 ResourceId resId = table.identifierForName(name.entry.data(), name.entry.size(), in findByName() 236 static Maybe<ResourceName> getResourceName(const android::ResTable& table, ResourceId id) { in getResourceName() 274 std::unique_ptr<SymbolTable::Symbol> AssetManagerSymbolSource::findById(ResourceId id) { in findById()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator_test.cpp | 29 .addSimple(u"@android:id/class", ResourceId(0x01020000)) in TEST() 45 .addSimple(u"@android:id/hey-man", ResourceId(0x01020000)) in TEST() 46 .addValue(u"@android:attr/cool.attr", ResourceId(0x01010000), in TEST() 48 .addValue(u"@android:styleable/hey.dude", ResourceId(0x01030000), in TEST() 50 .addItem(u"@android:attr/cool.attr", ResourceId(0x01010000)) in TEST() 78 .addSimple(u"@android:id/one", ResourceId(0x01020000)) in TEST() 79 .addSimple(u"@android:id/com.foo$two", ResourceId(0x01020001)) in TEST() 100 .addSimple(u"@android:attr/two", ResourceId(0x01010001)) in TEST() 101 .addSimple(u"@android:^attr-private/one", ResourceId(0x01010000)) in TEST() 121 .addSimple(u"@android:id/one", ResourceId(0x01020000)) in TEST() [all …]
|
D | JavaClassGenerator.cpp | 196 const ResourceId lhsId = lhs.attrRef->id ? lhs.attrRef->id.value() : ResourceId(0); in lessStyleableAttr() 197 const ResourceId rhsId = rhs.attrRef->id ? rhs.attrRef->id.value() : ResourceId(0); in lessStyleableAttr() 337 styleableAttr.attrRef->id ? styleableAttr.attrRef->id.value() : ResourceId(0)); in addMembersToStyleableClass() 416 ResourceId id; in addMembersToTypeClass() 418 id = ResourceId(package->id.value(), type->id.value(), entry->id.value()); in addMembersToTypeClass()
|
D | ClassDefinition.h | 107 using ResourceMember = PrimitiveMember<ResourceId>; 152 using ResourceArrayMember = PrimitiveArrayMember<ResourceId>;
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 49 ResourceTableBuilder& addSimple(const StringPiece16& name, const ResourceId id = {}) { 57 ResourceTableBuilder& addReference(const StringPiece16& name, const ResourceId id, in addReference() 66 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id, in addString() 71 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id, in addString() 81 ResourceTableBuilder& addFileReference(const StringPiece16& name, const ResourceId id, in addFileReference() 98 ResourceTableBuilder& addValue(const StringPiece16& name, const ResourceId id, in addValue() 103 ResourceTableBuilder& addValue(const StringPiece16& name, const ResourceId id, in addValue() 113 ResourceTableBuilder& setSymbolState(const StringPiece16& name, ResourceId id, in setSymbolState() 129 Maybe<ResourceId> id = {}) { 210 StyleBuilder& addItem(const StringPiece16& str, ResourceId id, std::unique_ptr<Item> value) { in addItem() [all …]
|
D | Context.h | 106 StaticSymbolSourceBuilder& addPublicSymbol(const StringPiece16& name, ResourceId id, 116 StaticSymbolSourceBuilder& addSymbol(const StringPiece16& name, ResourceId id, 143 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override { in findById() 153 std::map<ResourceId, SymbolTable::Symbol*> mIdMap;
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner_test.cpp | 45 .addSimple(u"@android:attr/foo", ResourceId(0x01040006)) in TEST() 62 .addSimple(u"@android:attr/foo", ResourceId(0x01040006)) in TEST() 63 .addSimple(u"@android:attr/bar", ResourceId(0x01040006)) in TEST()
|
D | PseudolocaleGenerator_test.cpp | 78 .addString(u"@android:string/two", ResourceId{}, test::parseConfigOrDie("en"), u"two") in TEST() 80 .addString(u"@android:string/three", ResourceId{}, test::parseConfigOrDie("en-rXA"), in TEST()
|
/frameworks/base/tools/aapt2/proto/ |
D | TableProtoSerializer_test.cpp | 31 .addFileReference(u"@com.app.a:layout/main", ResourceId(0x7f020000), in TEST() 33 .addReference(u"@com.app.a:layout/other", ResourceId(0x7f020001), in TEST() 42 ResourceId(0x7f020000), in TEST() 70 expectedRef.id = ResourceId(0x01020000); in TEST()
|
D | TableProtoDeserializer.cpp | 33 ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceNameRef>* mapping) : in ReferenceIdToNameVisitor() argument 43 ResourceId id = reference->id.value(); in visit() 51 const std::map<ResourceId, ResourceNameRef>* mMapping; 71 std::map<ResourceId, ResourceNameRef> idIndex; in deserializeFromPb() 122 ResourceId resId(pbPackage.package_id(), pbType.id(), pbEntry.id()); in deserializeFromPb() 348 outRef->id = ResourceId(pbRef.id()); in deserializeReferenceFromPb()
|
/frameworks/base/tools/aapt2/unflatten/ |
D | BinaryResourceParser.cpp | 45 const std::map<ResourceId, ResourceName>* mMapping; 50 ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceName>* mapping) : in ReferenceIdToNameVisitor() argument 60 ResourceId id = reference->id.value(); in visit() 333 const ResourceId resId(package->id.value(), type->id, static_cast<uint16_t>(it.index())); in parseType()
|