/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.h | 56 struct Symbol { struct 57 Symbol() = default; 59 explicit Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr = {}, 64 Symbol(const Symbol&) = default; argument 65 Symbol(Symbol&&) = default; 66 Symbol& operator=(const Symbol&) = default; argument 67 Symbol& operator=(Symbol&&) = default; argument 91 const Symbol* FindByName(const ResourceName& name); argument 95 const Symbol* FindById(const ResourceId& id); 101 const Symbol* FindByReference(const Reference& ref); [all …]
|
D | SymbolTable.cpp | 73 const SymbolTable::Symbol* SymbolTable::FindByName(const ResourceName& name) { in FindByName() 86 if (const std::shared_ptr<Symbol>& s = cache_.get(*name_with_package)) { in FindByName() 99 std::unique_ptr<Symbol> symbol = delegate_->FindByName(*mangled_name, sources_); in FindByName() 106 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindByName() 122 const SymbolTable::Symbol* SymbolTable::FindById(const ResourceId& id) { in FindById() 123 if (const std::shared_ptr<Symbol>& s = id_cache_.get(id)) { in FindById() 128 std::unique_ptr<Symbol> symbol = delegate_->FindById(id, sources_); in FindById() 135 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindById() 143 const SymbolTable::Symbol* SymbolTable::FindByReference(const Reference& ref) { in FindByReference() 151 const SymbolTable::Symbol* symbol = nullptr; in FindByReference() [all …]
|
D | SymbolTable_test.cpp | 44 std::unique_ptr<SymbolTable::Symbol> s = in TEST() 58 std::unique_ptr<SymbolTable::Symbol> s = in TEST()
|
/frameworks/base/tools/aapt/ |
D | Symbol.h | 29 struct Symbol { struct 30 inline Symbol(); 31 …inline Symbol(const android::String16& p, const android::String16& t, const android::String16& n, … 33 inline bool operator<(const Symbol& rhs) const; 47 inline SymbolDefinition(const Symbol& s, const ConfigDescription& c, const SourcePos& src); argument 50 Symbol symbol; 59 Symbol::Symbol() { in Symbol() function 62 Symbol::Symbol(const android::String16& p, const android::String16& t, const android::String16& n, … in Symbol() function 69 android::String8 Symbol::toString() const { in toString() 77 bool Symbol::operator<(const Symbol& rhs) const { [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Context.h | 140 std::unique_ptr<SymbolTable::Symbol> symbol = 141 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), true); 150 std::unique_ptr<SymbolTable::Symbol> symbol = 151 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), false); 167 std::unique_ptr<SymbolTable::Symbol> FindByName(const ResourceName& name) override { in FindByName() 175 std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) override { in FindById() 183 std::list<std::unique_ptr<SymbolTable::Symbol>> symbols_; 184 std::map<ResourceName, SymbolTable::Symbol*> name_map_; 185 std::map<ResourceId, SymbolTable::Symbol*> id_map_; 188 std::unique_ptr<SymbolTable::Symbol> CloneSymbol(SymbolTable::Symbol* sym) { in CloneSymbol() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | Archive.h | 93 struct Symbol { struct 97 Symbol(const char* pName, uint32_t pOffset, enum Status pStatus) in Symbol() function 100 ~Symbol() {} in ~Symbol() argument 108 typedef std::vector<Symbol*> SymTabType; argument 187 enum Symbol::Status pStatus = Archive::Symbol::Unknown); 196 enum Symbol::Status getSymbolStatus(size_t pSymIdx) const; 199 void setSymbolStatus(size_t pSymIdx, enum Symbol::Status pStatus); 223 typedef GCFactory<Symbol, 0> SymbolFactory;
|
D | ELFReader.h | 41 typedef llvm::ELF::Elf32_Sym Symbol; typedef 126 typedef llvm::ELF::Elf64_Sym Symbol; typedef
|
D | GNUArchiveReader.h | 72 enum Archive::Symbol::Status shouldIncludeSymbol(
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues_test.cpp | 235 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), in TEST() 245 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST() 247 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u}); in TEST() 249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u}); in TEST() 251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u}); in TEST() 264 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST() 299 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST() 301 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x07u}); in TEST() 305 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST() 307 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x07u}); in TEST() [all …]
|
D | ResourceValues.cpp | 528 std::ostream& operator<<(std::ostream& out, const Attribute::Symbol& s) { in operator <<() 556 std::vector<const Symbol*> sorted_a; in Equals() 558 add_pointer<const Symbol>); in Equals() 559 std::sort(sorted_a.begin(), sorted_a.end(), [](const Symbol* a, const Symbol* b) -> bool { in Equals() 563 std::vector<const Symbol*> sorted_b; in Equals() 565 add_pointer<const Symbol>); in Equals() 566 std::sort(sorted_b.begin(), sorted_b.end(), [](const Symbol* a, const Symbol* b) -> bool { in Equals() 571 [](const Symbol* a, const Symbol* b) -> bool { in Equals() 787 for (const Symbol& s : symbols) { in Matches() 804 for (const Symbol& s : symbols) { in Matches()
|
D | ResourcesInternal.proto | 30 message Symbol { message 52 repeated Symbol exported_symbol = 5;
|
D | ResourceValues.h | 292 struct Symbol { struct 296 friend std::ostream& operator<<(std::ostream& out, const Symbol& symbol); 302 std::vector<Symbol> symbols;
|
D | ResourceParser.cpp | 1272 bool operator()(const Attribute::Symbol& a, const Attribute::Symbol& b) const { in ParseAttrImpl() 1277 std::set<Attribute::Symbol, SymbolComparator> items; in ParseAttrImpl() 1314 if (Maybe<Attribute::Symbol> s = in ParseAttrImpl() 1316 Attribute::Symbol& symbol = s.value(); in ParseAttrImpl() 1331 const Attribute::Symbol& existing_symbol = *insert_result.first; in ParseAttrImpl() 1358 attr->symbols = std::vector<Attribute::Symbol>(items.begin(), items.end()); in ParseAttrImpl() 1365 Maybe<Attribute::Symbol> ResourceParser::ParseEnumOrFlagItem( in ParseEnumOrFlagItem() 1392 return Attribute::Symbol{ in ParseEnumOrFlagItem()
|
D | ResourceParser.h | 108 Maybe<Attribute::Symbol> ParseEnumOrFlagItem(xml::XmlPullParser* parser,
|
D | ValueVisitor.h | 111 for (Attribute::Symbol& symbol : attribute->symbols) { in VisitSubValues()
|
D | Resources.proto | 377 // A Symbol used to represent an enum or a flag. 378 message Symbol { message 425 repeated Symbol symbol = 4;
|
/frameworks/base/tools/aapt2/link/ |
D | ReferenceLinker.cpp | 83 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( in Visit() 178 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() 204 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference, in ResolveSymbol() 221 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbolCheckVisibility(const Reference& reference, in ResolveSymbolCheckVisibility() 225 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, callsite, symbols); in ResolveSymbolCheckVisibility() 238 const SymbolTable::Symbol* ReferenceLinker::ResolveAttributeCheckVisibility( in ResolveAttributeCheckVisibility() 241 const SymbolTable::Symbol* symbol = in ResolveAttributeCheckVisibility() 258 const SymbolTable::Symbol* symbol = in CompileXmlAttribute() 337 const SymbolTable::Symbol* s = in LinkReference()
|
D | ReferenceLinker.h | 41 static const SymbolTable::Symbol* ResolveSymbol(const Reference& reference, 47 static const SymbolTable::Symbol* ResolveSymbolCheckVisibility(const Reference& reference, 54 static const SymbolTable::Symbol* ResolveAttributeCheckVisibility(const Reference& reference,
|
D | ReferenceLinker_test.cpp | 269 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveSymbolCheckVisibility( in TEST() 306 const SymbolTable::Symbol* s = ReferenceLinker::ResolveSymbol(*test::BuildReference("string/foo"), in TEST()
|
/frameworks/compile/mclinker/lib/LD/ |
D | GNUArchiveReader.cpp | 114 if (Archive::Symbol::Unknown != pArchive.getSymbolStatus(idx)) in readArchive() 119 pArchive.setSymbolStatus(idx, Archive::Symbol::Include); in readArchive() 124 Archive::Symbol::Status status = in readArchive() 126 if (Archive::Symbol::Unknown != status) in readArchive() 129 if (Archive::Symbol::Include == status) { in readArchive() 330 enum Archive::Symbol::Status GNUArchiveReader::shouldIncludeSymbol( in shouldIncludeSymbol() 336 return Archive::Symbol::Exclude; in shouldIncludeSymbol() 338 return Archive::Symbol::Unknown; in shouldIncludeSymbol() 339 return Archive::Symbol::Include; in shouldIncludeSymbol() 341 return Archive::Symbol::Unknown; in shouldIncludeSymbol()
|
D | Archive.cpp | 171 enum Archive::Symbol::Status pStatus) { in addSymbol() 172 Symbol* entry = m_SymbolFactory.allocate(); in addSymbol() 173 new (entry) Symbol(pName, pFileOffset, pStatus); in addSymbol() 190 enum Archive::Symbol::Status Archive::getSymbolStatus(size_t pSymIdx) const { in getSymbolStatus() 197 enum Archive::Symbol::Status pStatus) { in setSymbolStatus()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | ELFDynamic.h | 53 typedef llvm::ELF::Elf32_Sym Symbol; typedef 66 size_t symbolSize() const { return sizeof(Symbol); } in symbolSize() 84 typedef llvm::ELF::Elf64_Sym Symbol; typedef 97 size_t symbolSize() const { return sizeof(Symbol); } in symbolSize()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 177 for (const Attribute::Symbol& symbol : attr->symbols) { in AddAttributeFormatDoc() 207 bool JavaClassGenerator::SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol) { in SkipSymbol() 215 Maybe<SymbolTable::Symbol> symbol; 271 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(ref); in ProcessStyleable()
|
D | JavaClassGenerator.h | 86 bool SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol);
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 173 virtual std::unique_ptr<SymbolTable::Symbol> FindByName( in FindByName() 176 std::unique_ptr<SymbolTable::Symbol> symbol = in FindByName() 343 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::paddingHorizontal)) { in ResourceFileFlattener() 352 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::paddingVertical)) { in ResourceFileFlattener() 361 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::layout_marginHorizontal)) { in ResourceFileFlattener() 372 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::layout_marginVertical)) { in ResourceFileFlattener() 883 std::unique_ptr<SymbolTable::Symbol> symbol = asset_source->FindByName( in LoadSymbolsFromIncludePaths()
|