Home
last modified time | relevance | path

Searched refs:Symbol (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/tools/aapt2/process/
DSymbolTable.h56 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 …]
DSymbolTable.cpp73 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 …]
DSymbolTable_test.cpp44 std::unique_ptr<SymbolTable::Symbol> s = in TEST()
58 std::unique_ptr<SymbolTable::Symbol> s = in TEST()
/frameworks/base/tools/aapt/
DSymbol.h29 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/
DContext.h154 std::unique_ptr<SymbolTable::Symbol> symbol =
155 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), true);
164 std::unique_ptr<SymbolTable::Symbol> symbol =
165 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), false);
181 std::unique_ptr<SymbolTable::Symbol> FindByName(const ResourceName& name) override { in FindByName()
189 std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) override { in FindById()
197 std::list<std::unique_ptr<SymbolTable::Symbol>> symbols_;
198 std::map<ResourceName, SymbolTable::Symbol*> name_map_;
199 std::map<ResourceId, SymbolTable::Symbol*> id_map_;
202 std::unique_ptr<SymbolTable::Symbol> CloneSymbol(SymbolTable::Symbol* sym) { in CloneSymbol()
[all …]
/frameworks/base/errorprone/java/com/google/errorprone/matchers/
DFieldMatchers.java23 import com.sun.tools.javac.code.Symbol;
24 import com.sun.tools.javac.code.Symbol.ClassSymbol;
43 boolean fieldSymbolIsAppropriate(Symbol symbol) { in anyFieldInClass()
57 boolean fieldSymbolIsAppropriate(Symbol symbol) {
71 boolean fieldSymbolIsAppropriate(Symbol symbol) {
86 private boolean isSymbolFieldInAppropriateClass(@Nullable Symbol symbol) {
95 abstract boolean fieldSymbolIsAppropriate(Symbol symbol);
/frameworks/compile/mclinker/include/mcld/LD/
DArchive.h93 struct Symbol { struct
97 Symbol(const char* pName, uint32_t pOffset, enum Status pStatus) in Symbol() argument
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;
DELFReader.h41 typedef llvm::ELF::Elf32_Sym Symbol; typedef
126 typedef llvm::ELF::Elf64_Sym Symbol; typedef
DGNUArchiveReader.h72 enum Archive::Symbol::Status shouldIncludeSymbol(
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp85 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( in Visit()
180 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible()
206 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference, in ResolveSymbol()
214 const SymbolTable::Symbol* symbol = symbols->FindByName( in ResolveSymbol()
246 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbolCheckVisibility(const Reference& reference, in ResolveSymbolCheckVisibility()
251 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, callsite, context, symbols); in ResolveSymbolCheckVisibility()
264 const SymbolTable::Symbol* ReferenceLinker::ResolveAttributeCheckVisibility( in ResolveAttributeCheckVisibility()
267 const SymbolTable::Symbol* symbol = in ResolveAttributeCheckVisibility()
285 const SymbolTable::Symbol* symbol = in CompileXmlAttribute()
364 const SymbolTable::Symbol* s = in LinkReference()
DReferenceLinker.h41 static const SymbolTable::Symbol* ResolveSymbol(const Reference& reference,
49 static const SymbolTable::Symbol* ResolveSymbolCheckVisibility(const Reference& reference,
57 static const SymbolTable::Symbol* ResolveAttributeCheckVisibility(const Reference& reference,
DReferenceLinker_test.cpp274 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveSymbolCheckVisibility( in TEST()
322 const SymbolTable::Symbol* s = ReferenceLinker::ResolveSymbol(*test::BuildReference("string/foo"), in TEST()
353 const SymbolTable::Symbol* s = ReferenceLinker::ResolveSymbol(*test::BuildReference("string/bar"), in TEST()
/frameworks/compile/mclinker/lib/LD/
DGNUArchiveReader.cpp114 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()
DArchive.cpp171 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/
DELFDynamic.h53 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/
DResourceValues_test.cpp235 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()
DResourceValues.cpp528 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()
783 for (const Symbol& s : symbols) { in Matches()
800 for (const Symbol& s : symbols) { in Matches()
DResourcesInternal.proto29 message Symbol { message
51 repeated Symbol exported_symbol = 5;
DResourceValues.h292 struct Symbol { struct
297 friend std::ostream& operator<<(std::ostream& out, const Symbol& symbol);
303 std::vector<Symbol> symbols;
DResourceParser.h108 Maybe<Attribute::Symbol> ParseEnumOrFlagItem(xml::XmlPullParser* parser,
DResourceParser.cpp1265 bool operator()(const Attribute::Symbol& a, const Attribute::Symbol& b) const { in ParseAttrImpl()
1270 std::set<Attribute::Symbol, SymbolComparator> items; in ParseAttrImpl()
1307 if (Maybe<Attribute::Symbol> s = in ParseAttrImpl()
1309 Attribute::Symbol& symbol = s.value(); in ParseAttrImpl()
1324 const Attribute::Symbol& existing_symbol = *insert_result.first; in ParseAttrImpl()
1351 attr->symbols = std::vector<Attribute::Symbol>(items.begin(), items.end()); in ParseAttrImpl()
1358 Maybe<Attribute::Symbol> ResourceParser::ParseEnumOrFlagItem( in ParseEnumOrFlagItem()
1385 return Attribute::Symbol{ in ParseEnumOrFlagItem()
DValueVisitor.h111 for (Attribute::Symbol& symbol : attribute->symbols) { in VisitSubValues()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp177 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()
DJavaClassGenerator.h86 bool SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol);
/frameworks/base/tools/aapt2/cmd/
DLink.cpp182 virtual std::unique_ptr<SymbolTable::Symbol> FindByName( in FindByName()
185 std::unique_ptr<SymbolTable::Symbol> symbol = in FindByName()
370 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::paddingHorizontal)) { in ResourceFileFlattener()
379 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::paddingVertical)) { in ResourceFileFlattener()
388 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::layout_marginHorizontal)) { in ResourceFileFlattener()
399 if (const SymbolTable::Symbol* s = symm->FindById(R::attr::layout_marginVertical)) { in ResourceFileFlattener()
891 std::unique_ptr<SymbolTable::Symbol> symbol = asset_source->FindByName( in LoadSymbolsFromIncludePaths()

12