/frameworks/av/drm/libmediadrm/ |
H A D | SharedLibrary.cpp | 42 void *SharedLibrary::lookup(const char *symbol) const { 46 return dlsym(mLibHandle, symbol);
|
/frameworks/av/include/media/ |
H A D | SharedLibrary.h | 31 void *lookup(const char *symbol) const;
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | NetworkMonitor.java | 628 private static String getSetting(Context context, String symbol, String defaultValue) { argument 629 final String value = Settings.Global.getString(context.getContentResolver(), symbol);
|
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 850 entry.sourcePos.error("Symbol '%s' declared with <java-symbol> not defined\n", name.string()); 854 //printf("**** setting symbol #%d/%d %s to isJavaSymbol=%d\n", 866 pos.error("Java symbol dir %s not defined\n", name.string()); 1499 pos.error("Java symbol dir %s not defined\n", name.string()); 1620 valid_symbol_name(const String8& symbol) argument 1635 const char*const s = symbol.string();
|
H A D | AaptAssets.h | 306 * 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...] |
H A D | Resource.cpp | 1691 const Symbol& symbol = densityVaryingResources.keyAt(k); local 1692 ssize_t block = resTable.getResource(symbol.id, &val, true); 1696 block = finalResTable.getResource(symbol.id, &val, true); 1702 symbol.toString().string(), config.toString().string()); 1710 symbol.toString().string(), def.config.toString().string()); 1890 "%s:%d: Permission name <%s> is not a valid Java symbol\n", 2055 static String8 flattenSymbol(const String8& symbol) { argument 2056 String8 result(symbol); 2058 if ((first = symbol.find(":", 0)) >= 0 2059 || (first = symbol 2072 getSymbolPackage(const String8& symbol, const sp<AaptAssets>& assets, bool pub) argument 2080 getSymbolName(const String8& symbol) argument [all...] |
H A D | ResourceTable.cpp | 805 const String16 java_symbol16("java-symbol"); 1131 "private symbol package already specified. Ignoring...\n"); 2746 // printf("Skip symbol [%08x] %s\n", rid, 2756 //printf("Type symbol [%08x] %s comment: %s\n", rid, 4069 p.sourcePos.error("Public symbol %s/%s declared here is not defined.", 4078 printf("Internal error: remaining private symbol count mismatch\n"); 4888 const Symbol symbol( 4896 AaptUtil::appendValue(resources, symbol, 4897 SymbolDefinition(symbol, config, entry->getPos()));
|
H A D | Symbol.h | 27 * 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/base/tools/aapt2/ |
H A D | Debug.cpp | 43 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 D | ResourceParser.cpp | 91 Symbol symbol; local 92 symbol.state = res->symbolState.value(); 93 symbol.source = res->source; 94 symbol.comment = res->comment; 95 if (!table->setSymbolState(res->name, res->id, symbol, diag)) { 333 { u"java-symbol", std::mem_fn(&ResourceParser::parseSymbol) }, 339 { u"symbol", std::mem_fn(&ResourceParser::parseSymbol) }, 806 return a.symbol.name.value() < b.symbol.name.value(); 848 Attribute::Symbol& symbol local [all...] |
H A D | ResourceParser_test.cpp | 218 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 D | ResourceTable.cpp | 430 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 D | ResourceTable.h | 242 const Symbol& symbol, 247 const Symbol& symbol, 307 const Symbol& symbol,
|
H A D | ResourceUtils.cpp | 275 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...] |
H A D | ResourceValues.cpp | 316 return a.symbol.equals(&b.symbol) && a.value == b.value;
|
H A D | ResourceValues.h | 266 Reference symbol; member in struct:aapt::Attribute::Symbol 348 if (s.symbol.name) { 349 out << s.symbol.name.value().entry;
|
H A D | ValueVisitor.h | 63 for (Attribute::Symbol& symbol : attribute->symbols) { 64 visit(&symbol.symbol);
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | TableFlattener.cpp | 104 flattenEntry(&s.symbol, &val);
|
/frameworks/base/tools/aapt2/java/ |
H A D | JavaClassGenerator.cpp | 55 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/base/tools/aapt2/link/ |
H A D | ReferenceLinker.cpp | 80 // 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 D | ReferenceLinker.h | 39 * 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 D | SymbolTable.cpp | 48 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/base/tools/aapt2/proto/ |
H A D | TableProtoDeserializer.cpp | 87 // 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. 240 Attribute::Symbol symbol; local 241 deserializeItemCommon(pbSymbol, &symbol.symbol); 242 if (!deserializeReferenceFromPb(pbSymbol.name(), &symbol.symbol)) { 245 symbol.value = pbSymbol.value(); 246 attr->symbols.push_back(std::move(symbol)); 427 diag->error(DiagMessage(source) << "invalid symbol poo [all...] |
H A D | TableProtoSerializer.cpp | 92 for (auto& symbol : attr->symbols) { 94 serializeItemCommonToPb(symbol.symbol, pbSymbol); 95 serializeReferenceToPb(symbol.symbol, pbSymbol->mutable_name()); 96 pbSymbol->set_value(symbol.value);
|
/frameworks/base/tools/aapt2/test/ |
H A D | Builders.h | 116 Symbol symbol; local 117 symbol.state = state; 118 bool result = mTable->setSymbolStateAllowMangled(resName, id, symbol, &mDiagnostics);
|