Home
last modified time | relevance | path

Searched refs:symbol (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/core/res/
DMakeJavaSymbols.sed2 # to generate the set of <java-symbol> commands to have aapt generate
3 # the symbol for them.
7 s|.*R.id.\([a-zA-Z0-9_]*\).*| <java-symbol type="id" name="\1" />|gp
8 s|.*R.attr.\([a-zA-Z0-9_]*\).*| <java-symbol type="attr" name="\1" />|gp
9 s|.*R.bool.\([a-zA-Z0-9_]*\).*| <java-symbol type="bool" name="\1" />|gp
10 s|.*R.integer.\([a-zA-Z0-9_]*\).*| <java-symbol type="integer" name="\1" />|gp
11 s|.*R.color.\([a-zA-Z0-9_]*\).*| <java-symbol type="color" name="\1" />|gp
12 s|.*R.dimen.\([a-zA-Z0-9_]*\).*| <java-symbol type="dimen" name="\1" />|gp
13 s|.*R.fraction.\([a-zA-Z0-9_]*\).*| <java-symbol type="fraction" name="\1" />|gp
14 s|.*R.string.\([a-zA-Z0-9_]*\).*| <java-symbol type="string" name="\1" />|gp
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagSymbolResolutions.inc3 "input file `%0' has no symbol table `%2'\n path of input file: %1",
4 "input file `%0' has no symbol table `%2'\n path of input file: %1")
15 "refer to dynamic symbol %0",
19 "common symbol %0 is overridden by previous definition",
20 "common symbol %0 is overridden by previous definition")
23 "common symbol %0 is overridden by definition",
24 "common symbol %0 is overriden by definition")
27 "indirect symbol %0 points to a common symbol",
28 "indirect symbol %0 points to a common symbol")
31 "indirect symbol %0 points to a undefined symbol",
[all …]
DDiagRelocations.inc19 "attempt to generate unsupported relocation `%0' for symbol `%1', "
21 "attempt to generate unsupported relocation `%0' for symbol `%1, "
25 "relocation type `%0' is not supported for symbol `%1'\nPlease report to "
27 "relocation type `%0' is not supported for symbol `%1'\nPlease report to "
39 "encounter unknown relocation type `%0' for symbol `%1'",
40 "encounter unknown relocation type `%0' for symbol `%1'")
43 "relocation type `%0' is invalid for global symbol `%1'",
44 "relocation type `%0' is invalid for global symbol `%1'")
47 "applying relocation `%0' causes overflow on symbol `%1'",
48 "applying relocation `%0' causes overflow on symbol `%1'")
[all …]
DBranchIsland.h115 const LDSymbol* symbol() const { return m_pSymbol; } in symbol() function
121 llvm::StringRef sym_name(KEY.symbol()->name()); in operator()
133 if (KEY1.symbol() == KEY2.symbol()) { in operator()
137 if (KEY1.symbol()->hasFragRef() && KEY2.symbol()->hasFragRef()) { in operator()
138 const FragmentRef* ref1 = KEY1.symbol()->fragRef(); in operator()
139 const FragmentRef* ref2 = KEY2.symbol()->fragRef(); in operator()
DDiagGOTPLT.inc3 "%0 is not a dynamic symbol, do not put it in global got",
4 "%0 is not a dynamic symbol, do not put it in global got")
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp97 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( in Visit() local
99 if (symbol) { in Visit()
102 entry.key.id = symbol->id; in Visit()
106 entry.value = ParseValueWithAttribute(std::move(entry.value), symbol->attribute.get()); in Visit()
114 if (!symbol->attribute->Matches(*entry.value, nullptr)) { in Visit()
120 symbol->attribute->Matches(*entry.value, &msg); in Visit()
201 bool ReferenceLinker::IsSymbolVisible(const SymbolTable::Symbol& symbol, in IsSymbolVisible() argument
204 if (!symbol.is_public && !ref.private_reference) { in IsSymbolVisible()
207 } else if (ref.id && symbol.id) { in IsSymbolVisible()
208 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp93 std::unique_ptr<Symbol> symbol = delegate_->FindByName(*mangled_name, sources_); in FindByName() local
94 if (symbol == nullptr) { in FindByName()
100 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindByName()
122 std::unique_ptr<Symbol> symbol = delegate_->FindById(id, sources_); in FindById() local
123 if (symbol == nullptr) { in FindById()
129 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindById()
145 const SymbolTable::Symbol* symbol = nullptr; in FindByReference() local
147 symbol = FindById(ref.id.value()); in FindByReference()
150 if (ref.name && !symbol) { in FindByReference()
151 symbol = FindByName(ref.name.value()); in FindByReference()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp58 static bool IsValidSymbol(const StringPiece& symbol) { in IsValidSymbol() argument
59 return sJavaIdentifiers.find(symbol) == sJavaIdentifiers.end(); in IsValidSymbol()
64 static std::string TransformToFieldName(const StringPiece& symbol) { in TransformToFieldName() argument
65 std::string output = symbol.to_string(); in TransformToFieldName()
175 for (const Attribute::Symbol& symbol : attr->symbols) { in AddAttributeFormatDoc() local
177 line << "<tr><td>" << symbol.symbol.name.value().entry << "</td>" in AddAttributeFormatDoc()
178 << "<td>" << std::hex << symbol.value << std::dec << "</td>" in AddAttributeFormatDoc()
179 << "<td>" << util::TrimWhitespace(symbol.symbol.GetComment()) in AddAttributeFormatDoc()
205 bool JavaClassGenerator::SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol) { in SkipSymbol() argument
206 return !symbol || (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic && in SkipSymbol()
[all …]
/frameworks/base/tools/aapt2/test/
DContext.h140 std::unique_ptr<SymbolTable::Symbol> symbol = variable
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 = variable
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/support/room/compiler/src/main/kotlin/android/arch/persistence/room/parser/
DParsedQuery.kt61 val inputsByLine = inputs.groupBy { it.symbol.line } in text()
66 if (charInLine < bindVar.symbol.charPositionInLine) { in text()
68 bindVar.symbol.charPositionInLine))) in text()
71 charInLine = bindVar.symbol.charPositionInLine + bindVar.symbol.text.length in text()
94 ParserErrors.cannotUseVariableIndices(it.text, it.symbol.charPositionInLine) in text()
/frameworks/base/tools/aapt2/
DResourceTable.cpp445 const Symbol& symbol, IDiagnostics* diag) { in SetSymbolState() argument
446 return SetSymbolStateImpl(name, res_id, symbol, ValidateName, diag); in SetSymbolState()
451 const Symbol& symbol, in SetSymbolStateAllowMangled() argument
453 return SetSymbolStateImpl(name, res_id, symbol, SkipValidateName, diag); in SetSymbolStateAllowMangled()
457 const Symbol& symbol, NameValidator name_validator, in SetSymbolStateImpl() argument
463 diag->Error(DiagMessage(symbol.source) << "resource '" << name << "' has invalid entry name '" in SetSymbolStateImpl()
471 diag->Error(DiagMessage(symbol.source) in SetSymbolStateImpl()
480 diag->Error(DiagMessage(symbol.source) in SetSymbolStateImpl()
489 diag->Error(DiagMessage(symbol.source) in SetSymbolStateImpl()
503 if (symbol.state == SymbolState::kPublic) { in SetSymbolStateImpl()
[all …]
DDebug.cpp48 for (const auto& symbol : attr->symbols) { in Visit() local
49 std::cout << "\n " << symbol.symbol.name.value().entry; in Visit()
50 if (symbol.symbol.id) { in Visit()
51 std::cout << " (" << symbol.symbol.id.value() << ")"; in Visit()
53 std::cout << " = " << symbol.value; in Visit()
DResourceParser_test.cpp328 ASSERT_TRUE(enum_attr->symbols[0].symbol.name); in TEST_F()
329 EXPECT_THAT(enum_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
332 ASSERT_TRUE(enum_attr->symbols[1].symbol.name); in TEST_F()
333 EXPECT_THAT(enum_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()
336 ASSERT_TRUE(enum_attr->symbols[2].symbol.name); in TEST_F()
337 EXPECT_THAT(enum_attr->symbols[2].symbol.name.value().entry, Eq("baz")); in TEST_F()
355 ASSERT_TRUE(flag_attr->symbols[0].symbol.name); in TEST_F()
356 EXPECT_THAT(flag_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
359 ASSERT_TRUE(flag_attr->symbols[1].symbol.name); in TEST_F()
360 EXPECT_THAT(flag_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()
[all …]
/frameworks/compile/mclinker/lib/Object/
DObjectLinker.cpp525 LDSymbol* symbol = NULL; in addScriptSymbols() local
526 assert((*it).second.symbol().type() == Operand::SYMBOL); in addScriptSymbols()
527 const llvm::StringRef symName = (*it).second.symbol().name(); in addScriptSymbols()
549 symbol = m_pBuilder->AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in addScriptSymbols()
563 symbol = in addScriptSymbols()
576 (*it).first = symbol; in addScriptSymbols()
714 Module::sym_iterator symbol, symEnd = m_pModule->sym_end(); in finalizeSymbolValue() local
715 for (symbol = m_pModule->sym_begin(); symbol != symEnd; ++symbol) { in finalizeSymbolValue()
716 if ((*symbol)->resolveInfo()->isAbsolute() || in finalizeSymbolValue()
717 (*symbol)->resolveInfo()->type() == ResolveInfo::File) { in finalizeSymbolValue()
[all …]
/frameworks/base/tools/aapt/
DSymbol.h50 Symbol symbol; member
85 : symbol(s) in SymbolDefinition()
91 return (symbol < rhs.symbol) || (config < rhs.config) || (source < rhs.source);
DAaptAssets.h462 bool check_valid_symbol_name(const String8& symbol, const SourcePos& pos, const char* label) { in check_valid_symbol_name() argument
463 if (valid_symbol_name(symbol)) { in check_valid_symbol_name()
466 pos.error("invalid %s: '%s'\n", label, symbol.string()); in check_valid_symbol_name()
469 AaptSymbolEntry& edit_symbol(const String8& symbol, const SourcePos* pos) { in edit_symbol() argument
470 ssize_t i = mSymbols.indexOfKey(symbol); in edit_symbol()
472 i = mSymbols.add(symbol, AaptSymbolEntry(symbol)); in edit_symbol()
480 const AaptSymbolEntry& get_symbol(const String8& symbol) const { in get_symbol() argument
481 ssize_t i = mSymbols.indexOfKey(symbol); in get_symbol()
/frameworks/compile/mclinker/lib/Script/
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_ASSIGN exp ';'
[all …]
DRpnEvaluator.cpp87 const LDSymbol* symbol = in eval() local
89 if (symbol == NULL) { in eval()
93 sym_opd->setValue(symbol->value()); in eval()
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp732 Module::const_sym_iterator symbol, symEnd; in sizeNamePools() local
746 for (symbol = symbols.begin(); symbol != symEnd; ++symbol) { in sizeNamePools()
748 if (hasEntryInStrTab(**symbol)) in sizeNamePools()
749 strtab += (*symbol)->nameSize() + 1; in sizeNamePools()
770 for (symbol = symbols.localDynBegin(); symbol != symEnd; ++symbol) { in sizeNamePools()
772 if (hasEntryInStrTab(**symbol)) in sizeNamePools()
773 dynstr += (*symbol)->nameSize() + 1; in sizeNamePools()
782 for (symbol = symbols.dynamicBegin(); symbol != symEnd; ++symbol) { in sizeNamePools()
783 if (DynsymCompare().needGNUHash(**symbol)) in sizeNamePools()
960 Module::const_sym_iterator symbol, symEnd; in emitRegNamePools() local
[all …]
/frameworks/av/drm/libmediadrm/
DSharedLibrary.cpp42 void *SharedLibrary::lookup(const char *symbol) const { in lookup()
49 return dlsym(mLibHandle, symbol); in lookup()
/frameworks/base/cmds/bootanimation/iot/
DBootAction.cpp109 bool BootAction::loadSymbol(const char* symbol, void** loaded) { in loadSymbol() argument
110 *loaded = dlsym(mLibHandle, symbol); in loadSymbol()
112 ALOGE("Unable to load symbol : %s :: %s", symbol, dlerror()); in loadSymbol()
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LongBranchStub.cpp106 LDSymbol* symbol = pSrcReloc.symInfo()->outSymbol(); in applyFixup() local
107 uint64_t dest = symbol->fragRef()->frag()->getParent()->getSection().addr() + in applyFixup()
108 symbol->fragRef()->getOutputOffset(); in applyFixup()
/frameworks/compile/mclinker/include/mcld/Script/
DAssignment.h46 const SymOperand& symbol() const { return m_Symbol; } in symbol() function
47 SymOperand& symbol() { return m_Symbol; } in symbol() function
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp393 Symbol symbol; in ParseType() local
394 symbol.state = SymbolState::kPublic; in ParseType()
395 symbol.source = source_.WithLine(0); in ParseType()
396 if (!table_->SetSymbolStateAllowMangled(name, res_id, symbol, context_->GetDiagnostics())) { in ParseType()
531 Attribute::Symbol symbol; in ParseAttr() local
532 symbol.value = util::DeviceToHost32(map_entry.value.data); in ParseAttr()
533 symbol.symbol = Reference(util::DeviceToHost32(map_entry.name.ident)); in ParseAttr()
534 attr->symbols.push_back(std::move(symbol)); in ParseAttr()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp221 for (const pb::Attribute_Symbol& pb_symbol : pb_attr.symbol()) { in DeserializeValueFromPb()
222 Attribute::Symbol symbol; in DeserializeValueFromPb() local
223 DeserializeItemCommon(pb_symbol, &symbol.symbol); in DeserializeValueFromPb()
224 if (!DeserializeReferenceFromPb(pb_symbol.name(), &symbol.symbol)) { in DeserializeValueFromPb()
227 symbol.value = pb_symbol.value(); in DeserializeValueFromPb()
228 attr->symbols.push_back(std::move(symbol)); in DeserializeValueFromPb()

1234