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

12

/frameworks/av/drm/libmediadrm/
H A DSharedLibrary.cpp42 void *SharedLibrary::lookup(const char *symbol) const {
46 return dlsym(mLibHandle, symbol);
/frameworks/base/tools/aapt2/link/
H A DReferenceLinker.cpp80 // Find the attribute in the symbol table and check if it is visible from this callsite.
81 const SymbolTable::Symbol* symbol = ReferenceLinker::resolveAttributeCheckVisibility( variable
83 if (symbol) {
86 entry.key.id = symbol->id;
91 symbol->attribute.get());
99 if (!symbol->attribute->matches(entry.value.get(), nullptr)) {
105 symbol->attribute->matches(entry.value.get(), &msg);
164 * The symbol is visible if it is public, or if the reference to it is requesting private access
167 bool ReferenceLinker::isSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, argument
169 if (!symbol
197 const SymbolTable::Symbol* symbol = resolveSymbol(reference, nameMangler, symbols); local
213 const SymbolTable::Symbol* symbol = resolveSymbolCheckVisibility(reference, nameMangler, local
232 const SymbolTable::Symbol* symbol = resolveSymbol(reference, nameMangler, symbols); local
[all...]
H A DReferenceLinker.h39 * Returns true if the symbol is visible by the reference and from the callsite.
41 static bool isSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref,
45 * Performs name mangling and looks up the resource in the symbol table. Returns nullptr
46 * if the symbol was not found.
52 * Performs name mangling and looks up the resource in the symbol table. If the symbol is
63 * Same as resolveSymbolCheckVisibility(), but also makes sure the symbol is an attribute.
91 * the xml::IPackageDeclStack, then mangles and looks up the symbol. If the symbol is visible
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp48 std::unique_ptr<Symbol> symbol = symbolSource->findByName(name); local
49 if (symbol) {
50 // Take ownership of the symbol into a shared_ptr. We do this because LruCache
52 std::shared_ptr<Symbol> sharedSymbol = std::shared_ptr<Symbol>(symbol.release());
56 // The symbol has an ID, so we can also cache this!
72 std::unique_ptr<Symbol> symbol = symbolSource->findById(id); local
73 if (symbol) {
74 // Take ownership of the symbol into a shared_ptr. We do this because LruCache
76 std::shared_ptr<Symbol> sharedSymbol = std::shared_ptr<Symbol>(symbol.release());
92 const SymbolTable::Symbol* symbol local
116 std::unique_ptr<SymbolTable::Symbol> symbol = util::make_unique<SymbolTable::Symbol>(); local
194 Attribute::Symbol symbol; local
[all...]
/frameworks/av/include/media/
H A DSharedLibrary.h31 void *lookup(const char *symbol) const;
/frameworks/base/tools/aapt2/test/
H A DContext.h108 std::unique_ptr<SymbolTable::Symbol> symbol = util::make_unique<SymbolTable::Symbol>( local
110 mSymbolSource->mNameMap[parseNameOrDie(name)] = symbol.get();
111 mSymbolSource->mIdMap[id] = symbol.get();
112 mSymbolSource->mSymbols.push_back(std::move(symbol));
118 std::unique_ptr<SymbolTable::Symbol> symbol = util::make_unique<SymbolTable::Symbol>( local
120 mSymbolSource->mNameMap[parseNameOrDie(name)] = symbol.get();
121 mSymbolSource->mIdMap[id] = symbol.get();
122 mSymbolSource->mSymbols.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/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.cpp55 static bool isValidSymbol(const StringPiece16& symbol) { argument
56 return sJavaIdentifiers.find(symbol) == sJavaIdentifiers.end();
63 static std::string transform(const StringPiece16& symbol) { argument
64 std::string output = util::utf16ToUtf8(symbol);
166 for (const Attribute::Symbol& symbol : attr->symbols) {
168 line << "<tr><td>" << symbol.symbol.name.value().entry << "</td>"
169 << "<td>" << std::hex << symbol.value << std::dec << "</td>"
170 << "<td>" << util::trimWhitespace(symbol.symbol
192 std::unique_ptr<SymbolTable::Symbol> symbol; member in struct:aapt::StyleableAttr
246 const SymbolTable::Symbol* symbol = mContext->getExternalSymbols()->findByReference( local
[all...]
/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 DDebug.cpp43 for (const auto& symbol : attr->symbols) {
44 std::cout << "\n " << symbol.symbol.name.value().entry;
45 if (symbol.symbol.id) {
46 std::cout << " (" << symbol.symbol.id.value() << ")";
48 std::cout << " = " << symbol.value;
H A DResourceTable.cpp430 const Symbol& symbol, IDiagnostics* diag) {
431 return setSymbolStateImpl(name, resId, symbol, kValidNameChars, diag);
436 const Symbol& symbol, IDiagnostics* diag) {
437 return setSymbolStateImpl(name, resId, symbol, kValidNameMangledChars, diag);
441 const Symbol& symbol, const char16_t* validChars,
447 diag->error(DiagMessage(symbol.source)
460 diag->error(DiagMessage(symbol.source)
474 diag->error(DiagMessage(symbol.source)
488 diag->error(DiagMessage(symbol.source)
505 if (symbol
429 setSymbolState(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, IDiagnostics* diag) argument
434 setSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, IDiagnostics* diag) argument
440 setSymbolStateImpl(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, const char16_t* validChars, IDiagnostics* diag) argument
[all...]
H A DValueVisitor.h63 for (Attribute::Symbol& symbol : attribute->symbols) {
64 visit(&symbol.symbol);
H A DResourceParser_test.cpp218 AAPT_ASSERT_TRUE(enumAttr->symbols[0].symbol.name);
219 EXPECT_EQ(enumAttr->symbols[0].symbol.name.value().entry, u"bar");
222 AAPT_ASSERT_TRUE(enumAttr->symbols[1].symbol.name);
223 EXPECT_EQ(enumAttr->symbols[1].symbol.name.value().entry, u"bat");
226 AAPT_ASSERT_TRUE(enumAttr->symbols[2].symbol.name);
227 EXPECT_EQ(enumAttr->symbols[2].symbol.name.value().entry, u"baz");
244 AAPT_ASSERT_TRUE(flagAttr->symbols[0].symbol.name);
245 EXPECT_EQ(flagAttr->symbols[0].symbol.name.value().entry, u"bar");
248 AAPT_ASSERT_TRUE(flagAttr->symbols[1].symbol.name);
249 EXPECT_EQ(flagAttr->symbols[1].symbol
[all...]
H A DResourceUtils.cpp275 for (const Attribute::Symbol& symbol : enumAttr->symbols) {
276 // Enum symbols are stored as @package:id/symbol resources,
278 const ResourceName& enumSymbolResourceName = symbol.symbol.name.value();
282 value.data = symbol.value;
304 for (const Attribute::Symbol& symbol : flagAttr->symbols) {
305 // Flag symbols are stored as @package:id/symbol resources,
307 const ResourceName& flagSymbolResourceName = symbol.symbol.name.value();
309 flags.data |= 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/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp361 Symbol symbol; local
362 symbol.state = SymbolState::kPublic;
363 symbol.source = mSource.withLine(0);
364 if (!mTable->setSymbolStateAllowMangled(name, resId, symbol,
518 Attribute::Symbol symbol; local
519 symbol.value = util::deviceToHost32(mapEntry.value.data);
520 symbol.symbol = Reference(util::deviceToHost32(mapEntry.name.ident));
521 attr->symbols.push_back(std::move(symbol));
/frameworks/base/tools/aapt2/proto/
H A DTableProtoSerializer.cpp92 for (auto& symbol : attr->symbols) {
94 serializeItemCommonToPb(symbol.symbol, pbSymbol);
95 serializeReferenceToPb(symbol.symbol, pbSymbol->mutable_name());
96 pbSymbol->set_value(symbol.value);
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp218 // name can be presented as C symbol
383 // symbol section index for _DYNAMIC. Now it will be ABS.
648 // ignore if symbol has no fragRef
652 // the value of a TLS symbol is the offset to the TLS segment
715 // number of entries in symbol tables starts from 1 to hold the special entry
727 // number of local symbol in the .symtab and .dynsym
732 Module::const_sym_iterator symbol, symEnd; local
737 2. check whether the symbol is used
746 for (symbol = symbols.begin(); symbol !
960 Module::const_sym_iterator symbol, symEnd; local
1035 Module::const_sym_iterator symbol, symEnd = symbols.dynamicEnd(); local
1126 Module::const_sym_iterator symbol, symEnd = pSymtab.dynamicEnd(); local
1161 Module::const_sym_iterator symbol, symEnd = pSymtab.dynamicEnd(); local
[all...]

Completed in 443 milliseconds

12