Home
last modified time | relevance | path

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

1234

/frameworks/base/errorprone/java/com/google/errorprone/matchers/android/
DFieldMatchers.java45 boolean fieldSymbolIsAppropriate(Symbol symbol) { in anyFieldInClass() argument
60 boolean fieldSymbolIsAppropriate(Symbol symbol) {
61 return symbol != null
62 && symbol.isStatic() && symbol.getSimpleName().contentEquals(fieldName);
76 boolean fieldSymbolIsAppropriate(Symbol symbol) {
77 return symbol != null
78 && !symbol.isStatic() && symbol.getSimpleName().contentEquals(fieldName);
92 private boolean isSymbolFieldInAppropriateClass(@Nullable Symbol symbol) {
93 if (symbol == null) {
96 return symbol.getKind().isField()
[all …]
/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()
/frameworks/libs/native_bridge_support/android_api/
Dgen_known_trampolines.py122 def _get_default_trampoline(symbol, guest_api): argument
125 if 'type' in guest_api['symbols'][symbol]:
126 if 'signature' in guest_api['symbols'][symbol]:
128 ' a symbol with defined type: %s') % symbol)
130 type_name = guest_api['symbols'][symbol]['type']
133 custom_signature = guest_api['symbols'][symbol].get('signature', None)
154 for symbol, descr in guest_api['symbols'].items():
158 trampoline = _get_default_trampoline(symbol, guest_api)
161 (symbol, err))
167 trampoline = 'DoCustomTrampoline_' + symbol
[all …]
Dapi_analysis.py355 for symbol, descr in guest_symbols.items():
356 if (symbol not in host_symbols):
358 comparator.compare_types(descr['type'], host_symbols[symbol]['type'])
373 for symbol, descr in guest_symbols.items():
374 if (symbol not in host_symbols):
376 print("Symbol '%s' doesn't present on host" % symbol)
382 descr['type'], host_symbols[symbol]['type'])
401 for symbol, descr in guest_api['symbols'].items():
413 for symbol, descr in guest_api['symbols'].items():
419 for symbol, descr in guest_api['symbols'].items():
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp99 std::unique_ptr<Symbol> symbol = delegate_->FindByName(*mangled_name, sources_); in FindByName() local
100 if (symbol == nullptr) { in FindByName()
106 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindByName()
128 std::unique_ptr<Symbol> symbol = delegate_->FindById(id, sources_); in FindById() local
129 if (symbol == nullptr) { in FindById()
135 std::shared_ptr<Symbol> shared_symbol(std::move(symbol)); in FindById()
151 const SymbolTable::Symbol* symbol = nullptr; in FindByReference() local
153 symbol = FindById(ref.id.value()); in FindByReference()
156 if (ref.name && !symbol) { in FindByReference()
157 symbol = FindByName(ref.name.value()); in FindByReference()
[all …]
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp114 const SymbolTable::Symbol* symbol = ReferenceLinker::ResolveAttributeCheckVisibility( in TransformDerived() local
116 if (symbol) { in TransformDerived()
118 entry.key.id = symbol->id; in TransformDerived()
125 entry.value = ParseValueWithAttribute(std::move(entry.value), symbol->attribute.get()); in TransformDerived()
130 if (!symbol->attribute->Matches(*entry.value, nullptr)) { in TransformDerived()
136 symbol->attribute->Matches(*entry.value, &msg); in TransformDerived()
226 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() argument
228 if (symbol.is_public || ref.private_reference) { in IsSymbolVisible()
244 if (ref.id && symbol.id) { in IsSymbolVisible()
245 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
[all …]
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DBluetoothPermissionChecker.java122 final MethodSymbol symbol = ASTHelpers.getSymbol(tree); in matchMethod() local
123 if (isCallbackOrWrapper(symbol)) return Description.NO_MATCH; in matchMethod()
126 if (isSuppressed(symbol)) return Description.NO_MATCH; in matchMethod()
138 .setMessage("Method " + symbol.name.toString() in matchMethod()
149 .setMessage("Method " + symbol.name.toString() in matchMethod()
156 .setMessage("Method " + symbol.name.toString() in matchMethod()
163 .setMessage("Method " + symbol.name.toString() in matchMethod()
177 private static boolean isCallbackOrWrapper(Symbol symbol) { in isCallbackOrWrapper() argument
178 if (symbol == null) return false; in isCallbackOrWrapper()
179 final String name = symbol.name.toString(); in isCallbackOrWrapper()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp60 static bool IsValidSymbol(StringPiece symbol) { in IsValidSymbol() argument
61 return sJavaIdentifiers.find(symbol) == sJavaIdentifiers.end(); in IsValidSymbol()
66 std::string JavaClassGenerator::TransformToFieldName(StringPiece symbol) { in TransformToFieldName() argument
67 std::string output(symbol); in TransformToFieldName()
177 for (const Attribute::Symbol& symbol : attr->symbols) { in AddAttributeFormatDoc() local
179 line << "<tr><td>" << symbol.symbol.name.value().entry << "</td>" in AddAttributeFormatDoc()
180 << "<td>" << std::hex << symbol.value << std::dec << "</td>" in AddAttributeFormatDoc()
181 << "<td>" << util::TrimWhitespace(symbol.symbol.GetComment()) in AddAttributeFormatDoc()
210 bool JavaClassGenerator::SkipSymbol(const std::optional<SymbolTable::Symbol>& symbol) { in SkipSymbol() argument
211 return !symbol || (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic && in SkipSymbol()
[all …]
/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
DImmutabilityProcessor.kt156 symbol = field, in <lambda>()
322 symbol: Symbol, in <lambda>()
328 if (isIgnored(symbol)) return false in <lambda>()
338 printError(parentChain, symbol, MessageUtils.voidReturnFailure()) in <lambda>()
342 val policyAnnotation = symbol.getAnnotation(Immutable.Policy::class.java) in <lambda>()
352 printError(parentChain, symbol, nonInterfaceClassFailure()) in <lambda>()
356 parentChain, seenTypesByPolicy, symbol, in <lambda>()
369 visitType(parentChain, seenTypesByPolicy, symbol, typeArg, newPolicyExceptions) { in <lambda>()
402 private fun isIgnored(symbol: Symbol) = when { in <lambda>()
404 symbol.getAnnotation(Immutable.Ignore::class.java) != null -> true in <lambda>()
[all …]
/frameworks/libs/binary_translation/kernel_api/tools/
Dapi_analysis.py353 for symbol, descr in guest_symbols.items():
354 if (symbol not in host_symbols):
356 comparator.compare_types(descr['type'], host_symbols[symbol]['type'])
371 for symbol, descr in guest_symbols.items():
372 if (symbol not in host_symbols):
374 print("Symbol '%s' doesn't present on host" % symbol)
380 descr['type'], host_symbols[symbol]['type'])
399 for symbol, descr in guest_api['symbols'].items():
411 for symbol, descr in guest_api['symbols'].items():
417 for symbol, descr in guest_api['symbols'].items():
[all …]
/frameworks/base/tools/aapt2/test/
DContext.h154 std::unique_ptr<SymbolTable::Symbol> symbol = variable
156 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
157 symbol_source_->id_map_[id] = symbol.get();
158 symbol_source_->symbols_.push_back(std::move(symbol));
164 std::unique_ptr<SymbolTable::Symbol> symbol = variable
166 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
167 symbol_source_->id_map_[id] = symbol.get();
168 symbol_source_->symbols_.push_back(std::move(symbol));
/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);
/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/libs/hwui/platform/darwin/utils/
DSharedLib.cpp28 void* SharedLib::getSymbol(void* library, const char* symbol) { in getSymbol() argument
29 return dlsym(library, symbol); in getSymbol()
/frameworks/base/libs/hwui/platform/linux/utils/
DSharedLib.cpp28 void* SharedLib::getSymbol(void* library, const char* symbol) { in getSymbol() argument
29 return dlsym(library, symbol); in getSymbol()
/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/av/drm/libmediadrm/
DSharedLibrary.cpp42 void *SharedLibrary::lookup(const char *symbol) const { in lookup()
49 return dlsym(mLibHandle, symbol); in lookup()
/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/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/base/core/java/com/android/internal/widget/
DPeopleHelper.java111 public Icon createAvatarSymbol(@NonNull CharSequence name, @NonNull String symbol, in createAvatarSymbol() argument
113 if (symbol.isEmpty() || TextUtils.isDigitsOnly(symbol) in createAvatarSymbol()
114 || SPECIAL_CHAR_PATTERN.matcher(symbol).find()) { in createAvatarSymbol()
127 mTextPaint.setTextSize(symbol.length() == 1 ? mAvatarSize * 0.5f : mAvatarSize * 0.3f); in createAvatarSymbol()
129 canvas.drawText(symbol, radius, yPos, mTextPaint); in createAvatarSymbol()
/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

1234