Searched refs:symbol (Results 1 - 25 of 59) sorted by relevance

123

/frameworks/av/drm/libmediadrm/
H A DSharedLibrary.cpp42 void *SharedLibrary::lookup(const char *symbol) const {
46 // Clear last error before we load the symbol again,
49 return dlsym(mLibHandle, symbol);
/frameworks/base/tools/aapt2/link/
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());
117 if (!symbol->attribute->Matches(entry.value.get(), nullptr)) {
123 symbol->attribute->Matches(entry.value.get(), &msg);
200 * The symbol is visible if it is public, or if the reference to it is
204 bool ReferenceLinker::IsSymbolVisible(const SymbolTable::Symbol& symbol, argument
207 if (!symbol
234 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, symbols); local
250 const SymbolTable::Symbol* symbol = local
267 const SymbolTable::Symbol* symbol = local
[all...]
H A DReferenceLinker.h44 * Returns true if the symbol is visible by the reference and from the
47 static bool IsSymbolVisible(const SymbolTable::Symbol& symbol,
51 * Performs name mangling and looks up the resource in the symbol table.
52 * Returns nullptr if the symbol was not found.
57 * Performs name mangling and looks up the resource in the symbol table. If
58 * the symbol is not visible by the reference at the callsite, nullptr is
67 * Same as resolveSymbolCheckVisibility(), but also makes sure the symbol is
97 * the xml::IPackageDeclStack, then mangles and looks up the symbol. If the
98 * symbol is visible
/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/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/av/include/media/
H A DSharedLibrary.h31 void *lookup(const char *symbol) const;
/frameworks/av/media/libmedia/include/media/
H A DSharedLibrary.h31 void *lookup(const char *symbol) const;
/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);
H A DAaptAssets.h306 * All information we know about a particular symbol.
371 if (!check_valid_symbol_name(name, pos, "symbol")) {
382 if (!check_valid_symbol_name(name, pos, "symbol")) {
392 if (!check_valid_symbol_name(name, pos, "symbol")) {
401 if (!check_valid_symbol_name(name, pos, "symbol")) {
436 if (!check_valid_symbol_name(name, pos, "nested symbol")) {
462 bool check_valid_symbol_name(const String8& symbol, const SourcePos& pos, const char* label) { argument
463 if (valid_symbol_name(symbol)) {
466 pos.error("invalid %s: '%s'\n", label, symbol.string());
469 AaptSymbolEntry& edit_symbol(const String8& symbol, cons argument
[all...]
/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/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));
/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/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());
H A DScriptParser.yy195 %type <string> string symbol opt_region opt_lma_region wildcard_pattern
321 a symbol assignment (see Assignments)
480 a symbol assignment (see Assignments)
594 symbol_assignment : symbol '=' script_exp ';'
596 | symbol ADD_ASSIGN exp ';'
597 | symbol SUB_ASSIGN exp ';'
598 | symbol MUL_ASSIGN exp ';'
599 | symbol DIV_ASSIGN exp ';'
600 | symbol AND_ASSIGN exp ';'
601 | symbol OR_ASSIG
[all...]
H A DAssignment.cpp115 *it = &(prevDotAssign.symbol());
152 *it = &(prevDotAssign.symbol());
/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();
/frameworks/base/tools/aapt2/
H A DResourceTable.cpp444 const Symbol& symbol, IDiagnostics* diag) {
445 return SetSymbolStateImpl(name, res_id, symbol, ValidateName, diag);
450 const Symbol& symbol,
452 return SetSymbolStateImpl(name, res_id, symbol, SkipValidateName, diag);
456 const Symbol& symbol, NameValidator name_validator,
462 diag->Error(DiagMessage(symbol.source) << "resource '" << name << "' has invalid entry name '"
470 diag->Error(DiagMessage(symbol.source)
479 diag->Error(DiagMessage(symbol.source)
488 diag->Error(DiagMessage(symbol.source)
502 if (symbol
443 SetSymbolState(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
448 SetSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
455 SetSymbolStateImpl(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, NameValidator name_validator, IDiagnostics* diag) argument
[all...]
H A DValueVisitor.h66 for (Attribute::Symbol& symbol : attribute->symbols) {
67 Visit(&symbol.symbol);
H A DDebug.cpp46 for (const auto& symbol : attr->symbols) {
47 std::cout << "\n " << symbol.symbol.name.value().entry;
48 if (symbol.symbol.id) {
49 std::cout << " (" << symbol.symbol.id.value() << ")";
51 std::cout << " = " << symbol.value;
H A DResourceParser_test.cpp324 AAPT_ASSERT_TRUE(enum_attr->symbols[0].symbol.name);
325 EXPECT_EQ(enum_attr->symbols[0].symbol.name.value().entry, "bar");
328 AAPT_ASSERT_TRUE(enum_attr->symbols[1].symbol.name);
329 EXPECT_EQ(enum_attr->symbols[1].symbol.name.value().entry, "bat");
332 AAPT_ASSERT_TRUE(enum_attr->symbols[2].symbol.name);
333 EXPECT_EQ(enum_attr->symbols[2].symbol.name.value().entry, "baz");
351 AAPT_ASSERT_TRUE(flag_attr->symbols[0].symbol.name);
352 EXPECT_EQ(flag_attr->symbols[0].symbol.name.value().entry, "bar");
355 AAPT_ASSERT_TRUE(flag_attr->symbols[1].symbol.name);
356 EXPECT_EQ(flag_attr->symbols[1].symbol
[all...]
/frameworks/compile/mclinker/lib/Fragment/
H A DStub.cpp35 // build a name for stub symbol
44 LDSymbol* symbol = local
54 setSymInfo(symbol->resolveInfo());
/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/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DSymbolExpr.java63 return model.symbol(mText, mType);
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp399 Symbol symbol; local
400 symbol.state = SymbolState::kPublic;
401 symbol.source = source_.WithLine(0);
402 if (!table_->SetSymbolStateAllowMangled(name, res_id, symbol, context_->GetDiagnostics())) {
537 Attribute::Symbol symbol; local
538 symbol.value = util::DeviceToHost32(map_entry.value.data);
539 symbol.symbol = Reference(util::DeviceToHost32(map_entry.name.ident));
540 attr->symbols.push_back(std::move(symbol));
/frameworks/base/tools/aapt2/proto/
H A DTableProtoSerializer.cpp98 for (auto& symbol : attr->symbols) {
100 SerializeItemCommonToPb(symbol.symbol, pb_symbol);
101 SerializeReferenceToPb(symbol.symbol, pb_symbol->mutable_name());
102 pb_symbol->set_value(symbol.value);

Completed in 1550 milliseconds

123