Searched defs:symbol (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/base/tools/aapt2/link/
H A DReferenceLinker_test.cpp267 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveSymbolCheckVisibility( local
269 ASSERT_THAT(symbol, NotNull());
H A DReferenceLinker.cpp95 // Find the attribute in the symbol table and check if it is visible from
97 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( variable
99 if (symbol) {
102 entry.key.id = symbol->id;
106 entry.value = ParseValueWithAttribute(std::move(entry.value), symbol->attribute.get());
114 if (!symbol->attribute->Matches(*entry.value, nullptr)) {
120 symbol->attribute->Matches(*entry.value, &msg);
197 * The symbol is visible if it is public, or if the reference to it is
201 bool ReferenceLinker::IsSymbolVisible(const SymbolTable::Symbol& symbol, argument
204 if (!symbol
231 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, symbols); local
247 const SymbolTable::Symbol* symbol = local
264 const SymbolTable::Symbol* symbol = local
[all...]
/frameworks/compile/mclinker/lib/Script/
H A DRpnEvaluator.cpp84 // we set up symbol operand here.
87 const LDSymbol* symbol = local
89 if (symbol == NULL) {
93 sym_opd->setValue(symbol->value());
/frameworks/base/tools/aapt/
H A DSymbol.h27 * A resource symbol, not attached to any configuration or context.
43 * A specific defintion of a symbol, defined with a configuration and a definition site.
50 Symbol symbol; member in struct:SymbolDefinition
85 : symbol(s)
91 return (symbol < rhs.symbol) || (config < rhs.config) || (source < rhs.source);
/frameworks/compile/mclinker/lib/Fragment/
H A DStub.cpp35 // build a name for stub symbol
44 LDSymbol* symbol = local
54 setSymInfo(symbol->resolveInfo());
/frameworks/base/cmds/bootanimation/iot/
H A DBootAction.cpp109 bool BootAction::loadSymbol(const char* symbol, void** loaded) { argument
110 *loaded = dlsym(mLibHandle, symbol);
112 ALOGE("Unable to load symbol : %s :: %s", symbol, dlerror());
/frameworks/compile/mclinker/include/mcld/Script/
H A DAssignment.h46 const SymOperand& symbol() const { return m_Symbol; } function in class:mcld::Assignment
47 SymOperand& symbol() { return m_Symbol; } function in class:mcld::Assignment
/frameworks/base/tools/aapt2/test/
H A DContext.h140 std::unique_ptr<SymbolTable::Symbol> symbol = local
142 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
143 symbol_source_->id_map_[id] = symbol.get();
144 symbol_source_->symbols_.push_back(std::move(symbol));
150 std::unique_ptr<SymbolTable::Symbol> symbol = local
152 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
153 symbol_source_->id_map_[id] = symbol.get();
154 symbol_source_->symbols_.push_back(std::move(symbol));
H A DBuilders.cpp119 Symbol symbol; local
120 symbol.state = state;
121 symbol.allow_new = allow_new;
122 CHECK(table_->SetSymbolStateAllowMangled(res_name, id, symbol, GetDiagnostics()));
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64LongBranchStub.cpp106 LDSymbol* symbol = pSrcReloc.symInfo()->outSymbol(); local
107 uint64_t dest = symbol->fragRef()->frag()->getParent()->getSection().addr() +
108 symbol->fragRef()->getOutputOffset();
H A DAArch64LDBackend.cpp127 // Define the symbol _GLOBAL_OFFSET_TABLE_ if there is a symbol with the
161 // define symbol _GLOBAL_OFFSET_TABLE_ when .got create
332 // A stub symbol should be local
390 // calculate the possible symbol value
392 LDSymbol* symbol = relocation->symInfo()->outSymbol(); local
393 if (symbol->hasFragRef()) {
394 uint64_t value = symbol->fragRef()->getOutputOffset();
396 symbol->fragRef()->frag()->getParent()->getSection().addr();
407 sym_value, // symbol valu
[all...]
/frameworks/base/tools/aapt2/
H A DResourceTable.cpp445 const Symbol& symbol, IDiagnostics* diag) {
446 return SetSymbolStateImpl(name, res_id, symbol, ValidateName, diag);
451 const Symbol& symbol,
453 return SetSymbolStateImpl(name, res_id, symbol, SkipValidateName, diag);
457 const Symbol& symbol, NameValidator name_validator,
463 diag->Error(DiagMessage(symbol.source) << "resource '" << name << "' has invalid entry name '"
471 diag->Error(DiagMessage(symbol.source)
480 diag->Error(DiagMessage(symbol.source)
489 diag->Error(DiagMessage(symbol.source)
503 if (symbol
444 SetSymbolState(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
449 SetSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
456 SetSymbolStateImpl(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, NameValidator name_validator, IDiagnostics* diag) argument
[all...]
H A DResourceValues.h249 Reference symbol; member in struct:aapt::Attribute::Symbol
252 friend std::ostream& operator<<(std::ostream& out, const Symbol& symbol);
H A DResourceParser.cpp110 Symbol symbol; local
111 symbol.state = res->symbol_state.value();
112 symbol.source = res->source;
113 symbol.comment = res->comment;
114 symbol.allow_new = res->allow_new;
115 if (!table->SetSymbolState(res->name, res->id, symbol, diag)) {
394 {"java-symbol", std::mem_fn(&ResourceParser::ParseSymbol)},
401 {"symbol", std::mem_fn(&ResourceParser::ParseSymbol)},
941 return a.symbol.name.value() < b.symbol
985 Attribute::Symbol& symbol = s.value(); local
[all...]
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp93 std::unique_ptr<Symbol> symbol = delegate_->FindByName(*mangled_name, sources_); local
94 if (symbol == nullptr) {
98 // Take ownership of the symbol into a shared_ptr. We do this because
100 std::shared_ptr<Symbol> shared_symbol(std::move(symbol));
107 // The symbol has an ID, so we can also cache this!
122 std::unique_ptr<Symbol> symbol = delegate_->FindById(id, sources_); local
123 if (symbol == nullptr) {
127 // Take ownership of the symbol into a shared_ptr. We do this because LruCache
129 std::shared_ptr<Symbol> shared_symbol(std::move(symbol));
145 const SymbolTable::Symbol* symbol local
159 std::unique_ptr<SymbolTable::Symbol> symbol = source->FindByName(name); local
170 std::unique_ptr<SymbolTable::Symbol> symbol = source->FindById(id); local
191 std::unique_ptr<SymbolTable::Symbol> symbol = util::make_unique<SymbolTable::Symbol>(); local
276 Attribute::Symbol symbol; local
[all...]
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp393 Symbol symbol; local
394 symbol.state = SymbolState::kPublic;
395 symbol.source = source_.WithLine(0);
396 if (!table_->SetSymbolStateAllowMangled(name, res_id, symbol, context_->GetDiagnostics())) {
531 Attribute::Symbol symbol; local
532 symbol.value = util::DeviceToHost32(map_entry.value.data);
533 symbol.symbol = Reference(util::DeviceToHost32(map_entry.name.ident));
534 attr->symbols.push_back(std::move(symbol));
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIsland.h115 const LDSymbol* symbol() const { return m_pSymbol; } function in class:mcld::BranchIsland::Key
121 llvm::StringRef sym_name(KEY.symbol()->name());
133 if (KEY1.symbol() == KEY2.symbol()) {
137 if (KEY1.symbol()->hasFragRef() && KEY2.symbol()->hasFragRef()) {
138 const FragmentRef* ref1 = KEY1.symbol()->fragRef();
139 const FragmentRef* ref2 = KEY2.symbol()->fragRef();
/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator.cpp58 static bool IsValidSymbol(const StringPiece& symbol) { argument
59 return sJavaIdentifiers.find(symbol) == sJavaIdentifiers.end();
64 static std::string TransformToFieldName(const StringPiece& symbol) { argument
65 std::string output = symbol.to_string();
175 for (const Attribute::Symbol& symbol : attr->symbols) {
177 line << "<tr><td>" << symbol.symbol.name.value().entry << "</td>"
178 << "<td>" << std::hex << symbol.value << std::dec << "</td>"
179 << "<td>" << util::TrimWhitespace(symbol.symbol
205 SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol) argument
213 Maybe<SymbolTable::Symbol> symbol; member in struct:aapt::StyleableAttr
259 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(attr); local
[all...]
/frameworks/base/tools/aapt2/proto/
H A DTableProtoDeserializer.cpp85 // Deserialize the symbol status (public/private with source and comments).
103 // This is a public symbol, we must encode the ID now if there is one.
221 for (const pb::Attribute_Symbol& pb_symbol : pb_attr.symbol()) {
222 Attribute::Symbol symbol; local
223 DeserializeItemCommon(pb_symbol, &symbol.symbol);
224 if (!DeserializeReferenceFromPb(pb_symbol.name(), &symbol.symbol)) {
227 symbol.value = pb_symbol.value();
228 attr->symbols.push_back(std::move(symbol));
[all...]
/frameworks/compile/mclinker/tools/mcld/
H A DMain.cpp526 // Setup symbol stripping mode.
622 // -u symbol
631 // --wrap=symbol
634 const char* symbol = arg->getValue(); local
635 // symbol -> __wrap_symbol
637 script_.renameMap().insert(symbol, exist);
641 .append(symbol);
645 mcld::warning(mcld::diag::rewrap) << symbol << to_wrap_str;
647 // __real_symbol -> symbol
650 .append(symbol);
662 const char* symbol = arg->getValue(); local
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DELFReader.cpp81 // skip the first NULL symbol
135 // Section symbol's st_name is the section index.
167 // 2. easy to know if a symbol is from .so
170 // sort symbols by symbol value and then weak before strong
173 // for each weak symbol, find out all its aliases, and
222 LDSymbol* symbol = pInput.context()->getSymbol(r_sym); local
223 if (symbol == NULL) {
227 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset, r_addend);
249 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
250 if (symbol
717 LDSymbol* symbol = pInput.context()->getSymbol(r_sym); local
[all...]
/frameworks/compile/mclinker/lib/Object/
H A DObjectLinker.cpp119 // Add the symbol set by -u as an undefind global symbol into symbol pool
137 // create the output symbol if it dose not have one
452 // symbol table. Since these symbols has fragRef to input fragments, which
487 // Traverse all the resolveInfo and add the output symbol to output
523 // go through the entire symbol assignments
525 LDSymbol* symbol = NULL; local
526 assert((*it).second.symbol().type() == Operand::SYMBOL);
527 const llvm::StringRef symName = (*it).second.symbol()
714 Module::sym_iterator symbol, symEnd = m_pModule->sym_end(); local
748 LDSymbol* symbol = (*assign).first; local
[all...]
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMLDBackend.cpp62 /// Helper function to create a local symbol at the end of the fragment.
65 // Create and add symbol to the name pool.
78 // Create input symbol.
87 // The output symbol is simply an alias to the input symbol.
198 // Define the symbol _GLOBAL_OFFSET_TABLE_ if there is a symbol with the
365 // define symbol _GLOBAL_OFFSET_TABLE_ when .got create
461 /// finalizeSymbol - finalize the symbol value
843 // calculate the possible symbol valu
845 LDSymbol* symbol = relocation->symInfo()->outSymbol(); local
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonLDBackend.cpp324 // define symbol _GLOBAL_OFFSET_TABLE_
478 // Define the symbol _GLOBAL_OFFSET_TABLE_ if there is a symbol with the
568 LDSymbol* symbol = relocation->symInfo()->outSymbol(); local
569 if (symbol->hasFragRef()) {
570 uint64_t value = symbol->fragRef()->getOutputOffset();
572 symbol->fragRef()->frag()->getParent()->getSection().addr();
576 sym_value, // symbol value
661 /// finalizeSymbol - finalize the symbol value
785 // We have to reset the description of the symbol her
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DExprModel.java180 public SymbolExpr symbol(String text, Class type) { method in class:ExprModel
260 return register(new TernaryExpr(left, right, symbol("false", boolean.class)));
264 return register(new TernaryExpr(left, symbol("true", boolean.class), right));

Completed in 8179 milliseconds

12