/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.h | 56 struct Symbol { struct 57 Symbol() = default; 59 explicit Symbol(const std::optional<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 | 154 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/android/ |
D | FieldMatchers.java | 24 import com.sun.tools.javac.code.Symbol; 25 import com.sun.tools.javac.code.Symbol.ClassSymbol; 45 boolean fieldSymbolIsAppropriate(Symbol symbol) { in anyFieldInClass() 60 boolean fieldSymbolIsAppropriate(Symbol symbol) { 76 boolean fieldSymbolIsAppropriate(Symbol symbol) { 92 private boolean isSymbolFieldInAppropriateClass(@Nullable Symbol symbol) { 101 abstract boolean fieldSymbolIsAppropriate(Symbol symbol);
|
/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() 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;
|
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/processors/immutability/src/android/processor/immutability/ |
D | ImmutabilityProcessor.kt | 21 import com.sun.tools.javac.code.Symbol in <lambda>() 108 classType = it as Symbol.TypeSymbol, in <lambda>() 122 classType: Symbol.TypeSymbol, in <lambda>() 178 .map { it as Symbol.ClassSymbol } in <lambda>() 195 .map { it as Symbol.MethodSymbol } in <lambda>() 227 (classType as? Symbol.ClassSymbol)?.run { in <lambda>() 250 method: Symbol.MethodSymbol, in <lambda>() 322 symbol: Symbol, in <lambda>() 357 processingEnv.typeUtils.asElement(type) as Symbol.TypeSymbol, in <lambda>() 402 private fun isIgnored(symbol: Symbol) = when { in <lambda>()
|
/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/link/ |
D | ReferenceLinker.cpp | 114 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( in TransformDerived() 226 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() 252 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference, in ResolveSymbol() 260 const SymbolTable::Symbol* symbol = symbols->FindByName( in ResolveSymbol() 290 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbolCheckVisibility(const Reference& reference, in ResolveSymbolCheckVisibility() 295 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, callsite, context, symbols); in ResolveSymbolCheckVisibility() 308 const SymbolTable::Symbol* ReferenceLinker::ResolveAttributeCheckVisibility( in ResolveAttributeCheckVisibility() 311 const SymbolTable::Symbol* symbol = in ResolveAttributeCheckVisibility() 329 const SymbolTable::Symbol* symbol = in CompileXmlAttribute() 438 const SymbolTable::Symbol* s = in LinkReference()
|
D | ReferenceLinker.h | 76 static const SymbolTable::Symbol* ResolveSymbol(const Reference& reference, 84 static const SymbolTable::Symbol* ResolveSymbolCheckVisibility(const Reference& reference, 92 static const SymbolTable::Symbol* ResolveAttributeCheckVisibility(const Reference& reference,
|
D | ReferenceLinker_test.cpp | 268 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveSymbolCheckVisibility( in TEST() 316 const SymbolTable::Symbol* s = ReferenceLinker::ResolveSymbol(*test::BuildReference("string/foo"), in TEST() 347 const SymbolTable::Symbol* s = ReferenceLinker::ResolveSymbol(*test::BuildReference("string/bar"), in TEST()
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues.cpp | 513 std::ostream& operator<<(std::ostream& out, const Attribute::Symbol& s) { in operator <<() 541 std::vector<const Symbol*> sorted_a; in Equals() 543 add_pointer<const Symbol>); in Equals() 544 std::sort(sorted_a.begin(), sorted_a.end(), [](const Symbol* a, const Symbol* b) -> bool { in Equals() 548 std::vector<const Symbol*> sorted_b; in Equals() 550 add_pointer<const Symbol>); in Equals() 551 std::sort(sorted_b.begin(), sorted_b.end(), [](const Symbol* a, const Symbol* b) -> bool { in Equals() 556 [](const Symbol* a, const Symbol* b) -> bool { in Equals() 768 for (const Symbol& s : symbols) { in Matches() 785 for (const Symbol& s : symbols) { in Matches() [all …]
|
D | ResourceValues_test.cpp | 239 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), in TEST() 249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST() 251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u}); in TEST() 253 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u}); in TEST() 255 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u}); in TEST() 268 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
|
D | ResourcesInternal.proto | 29 message Symbol { message 51 repeated Symbol exported_symbol = 5;
|
D | ResourceValues.h | 292 struct Symbol { struct 297 friend std::ostream& operator<<(std::ostream& out, const Symbol& symbol); 303 std::vector<Symbol> symbols;
|
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | BluetoothPermissionChecker.java | 50 import com.sun.tools.javac.code.Symbol; 51 import com.sun.tools.javac.code.Symbol.MethodSymbol; 177 private static boolean isCallbackOrWrapper(Symbol symbol) { in isCallbackOrWrapper() 185 public boolean isSuppressed(Symbol symbol) { in isSuppressed()
|
D | RequiresPermissionChecker.java | 55 import com.sun.tools.javac.code.Symbol; 56 import com.sun.tools.javac.code.Symbol.ClassSymbol; 57 import com.sun.tools.javac.code.Symbol.MethodSymbol; 58 import com.sun.tools.javac.code.Symbol.VarSymbol; 482 public boolean isSuppressed(Symbol symbol) { in isSuppressed()
|
D | ContextUserIdChecker.java | 41 import com.sun.tools.javac.code.Symbol.VarSymbol;
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 177 for (const Attribute::Symbol& symbol : attr->symbols) { in AddAttributeFormatDoc() 210 bool JavaClassGenerator::SkipSymbol(const std::optional<SymbolTable::Symbol>& symbol) { in SkipSymbol() 218 std::optional<SymbolTable::Symbol> symbol; 279 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(ref); in ProcessStyleable()
|
D | JavaClassGenerator.h | 85 bool SkipSymbol(const std::optional<SymbolTable::Symbol>& symbol);
|