/frameworks/base/tools/aapt2/ |
H A D | AppInfo.h | 30 * App's package name. 32 std::u16string package; member in struct:aapt::AppInfo
|
H A D | NameMangler_test.cpp | 25 std::u16string package = u"android.appcompat"; local 28 NameMangler::mangle(package, &name); 38 std::u16string package; local 41 EXPECT_FALSE(NameMangler::unmangle(&name, &package));
|
H A D | NameMangler.h | 31 * Represents the package we are trying to build. References pointing 32 * to this package are not mangled, and mangled references inherit this package name. 51 if (mPolicy.targetPackageName == name.package || 52 mPolicy.packagesToMangle.count(name.package) == 0) { 59 mangleEntry(name.package, name.entry) 63 bool shouldMangle(const std::u16string& package) const { 64 if (package.empty() || mPolicy.targetPackageName == package) { 67 return mPolicy.packagesToMangle.count(package) ! 75 mangleEntry(const std::u16string& package, const std::u16string& name) argument [all...] |
H A D | ResourceTable.h | 247 ResourceTablePackage* package; member in struct:aapt::ResourceTable::SearchResult 266 * The list of packages in this table, sorted alphabetically by package name. 271 * Returns the package struct with the given name, or nullptr if such a package does not 272 * exist. The empty string is a valid package and typically is used to represent the 273 * 'current' package before it is known to the ResourceTable.
|
H A D | ResourceTable.cpp | 53 for (auto& package : packages) { 54 if (package->id && package->id.value() == id) { 55 return package.get(); 62 ResourceTablePackage* package = findOrCreatePackage(name); local 63 if (id && !package->id) { 64 package->id = id; 65 return package; 68 if (id && package->id && package 350 ResourceTablePackage* package = findOrCreatePackage(name.package); local 447 ResourceTablePackage* package = findOrCreatePackage(name.package); local 516 ResourceTablePackage* package = findPackage(name.package); local [all...] |
H A D | Resource.h | 35 * to the 'type' in package:type/entry. 76 std::u16string package; member in struct:aapt::ResourceName 94 StringPiece16 package; member in struct:aapt::ResourceNameRef 117 * PP: 8 bit package identifier. 0x01 is reserved for system 256 package(p.toString()), type(t), entry(e.toString()) { 260 return !package.empty() && !entry.empty(); 264 return std::tie(lhs.package, lhs.type, lhs.entry) 265 < std::tie(rhs.package, rhs.type, rhs.entry); 269 return std::tie(lhs.package, lhs.type, lhs.entry) 270 == std::tie(rhs.package, rh [all...] |
H A D | ResourceUtils.cpp | 65 StringPiece16 package; local 68 if (!extractResourceName(str.substr(offset, str.size() - offset), &package, &type, &entry)) { 82 outRef->package = package; 150 StringPiece16 package; local 154 &package, &type, &entry)) { 167 outRef->package = package; 183 * @[[*]package:][style/]<entry> 184 * ?[[*]package [all...] |
/frameworks/base/tools/aapt2/link/ |
H A D | PrivateAttributeMover_test.cpp | 40 ResourceTablePackage* package = table->findPackage(u"android"); local 41 ASSERT_NE(package, nullptr); 43 ResourceTableType* type = package->findType(ResourceType::kAttr); 49 type = package->findType(ResourceType::kAttrPrivate); 67 ResourceTablePackage* package = table->findPackage(u"android"); local 68 ASSERT_NE(package, nullptr); 70 ResourceTableType* type = package->findType(ResourceType::kAttr); 74 type = package->findType(ResourceType::kAttrPrivate);
|
H A D | XmlReferenceLinker.cpp | 33 * links their symbolic name to their Resource ID, performing mangling and package aliasing 83 // There is a valid package name for this attribute. We will look this up. 84 StringPiece16 package = maybePackage.value().package; variable 85 if (package.empty()) { 86 // Empty package means the 'current' or 'local' package. 87 package = mContext->getCompilationPackage(); 90 Reference attrRef(ResourceNameRef(package, ResourceType::kAttr, attr.name)); 117 << package << " [all...] |
H A D | ManifestFixer.cpp | 38 // Since we don't know the package name, we can just make a fake one here and 39 // the test will be identical as long as the real package name is valid too. 71 xml::Attribute* attr = el->findAttribute({}, u"package"); 73 diag->error(DiagMessage(el->lineNumber) << "<manifest> tag is missing 'package' attribute"); 77 << "attribute 'package' in <manifest> tag must not be a reference"); 81 << "attribute 'package' in <manifest> tag is not a valid Java package name: '" 92 diag->error(DiagMessage() << "invalid manifest package override '" 100 diag->error(DiagMessage() << "invalid instrumentation target package override '" 174 manifestAction[u"original-package"]; 223 FullyQualifiedClassNameVisitor(const StringPiece16& package) argument [all...] |
H A D | TableMerger.cpp | 31 // Create the desired package that all tables will be merged into. 34 assert(mMasterPackage && "package name or ID already taken"); 48 * This will merge packages with the same package name (or no package name). 56 for (auto& package : table->packages) { 58 if (package->id && package->id.value() != 0x0 && package->id.value() != desiredPackageId) { 60 << "ignoring package " << package 278 cloneAndMangleFile(const std::u16string& package, const FileReference& fileRef) argument [all...] |
/frameworks/base/tools/aapt2/java/ |
H A D | ClassDefinition.cpp | 67 const StringPiece& package, 70 *out << sWarningHeader << "package " << package << ";\n\n"; local 66 writeJavaFile(const ClassDefinition* def, const StringPiece& package, bool final, std::ostream* out) argument
|
H A D | ProguardRules.cpp | 46 std::u16string package = maybePackage.value().package + u"." + node->name; variable 47 if (util::isJavaClassName(package)) { 48 addClass(node->lineNumber, package); 150 xml::Attribute* attr = node->findAttribute({}, u"package");
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlUtil.cpp | 29 StringPiece16 package = namespaceUri; local 30 package = package.substr(schemaPrefix.size(), package.size() - schemaPrefix.size()); 31 if (package.empty()) { 34 return ExtractedPackage{ package.toString(), false /* isPrivate */ }; 38 StringPiece16 package = namespaceUri; local 39 package = package.substr(schemaPrefix.size(), package [all...] |
H A D | XmlUtil.h | 34 * Result of extracting a package name from a namespace URI declaration. 38 * The name of the package. This can be the empty string, which means that the package 39 * should be assumed to be the package being compiled. 41 std::u16string package; member in struct:aapt::xml::ExtractedPackage 44 * True if the package's private namespace was declared. This means that private resources 52 * http://schemas.android.com/apk/res/<package> or 53 * http://schemas.android.com/apk/prv/res/<package> 56 * returns an empty package name. 61 * Interface representing a stack of XML namespace declarations. When looking up the package [all...] |
H A D | XmlDom.h | 173 * An XML DOM visitor that will record the package name for a namespace prefix. 179 ExtractedPackage package; member in struct:aapt::xml::PackageAwareVisitor::PackageDecl
|
H A D | XmlPullParser.h | 107 * Uses the current stack of namespaces to resolve the package. Eg: 115 * 'package' will be set to 'defaultPackage'. 174 ExtractedPackage package; member in struct:aapt::xml::XmlPullParser::PackageDecl
|
/frameworks/base/tools/aapt/ |
H A D | Symbol.h | 35 android::String16 package; member in struct:Symbol 63 : package(p) 71 android::String8(package).string(), 78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
|
H A D | ResourceIdCache.cpp | 47 static inline String16 makeHashableName(const android::String16& package, argument 53 hashable += package; 58 uint32_t ResourceIdCache::lookup(const android::String16& package, argument 62 const String16 hashedName = makeHashableName(package, type, name, onlyPublic); 84 uint32_t ResourceIdCache::store(const android::String16& package, argument 90 const String16 hashedName = makeHashableName(package, type, name, onlyPublic);
|
/frameworks/base/tools/aapt2/test/ |
H A D | Context.h | 44 assert(mCompilationPackage && "package name not set"); 49 assert(mPackageId && "package ID not set"); 79 ContextBuilder& setCompilationPackage(const StringPiece16& package) { argument 80 mContext->mCompilationPackage = package.toString();
|
H A D | Builders.h | 44 ResourceTablePackage* package = mTable->createPackage(packageName, id); local 45 assert(package); 249 doc->file.name.package = context->getCompilationPackage();
|
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 148 String8 *package, String8 *type, String8 *name) { 155 if (package != NULL) { 156 *package = String8(String16(data.package, data.packageLen)); 147 resource_metadata(const AssetManager& am, uint32_t res_id, String8 *package, String8 *type, String8 *name) argument
|
/frameworks/base/tools/aapt2/unflatten/ |
H A D | BinaryResourceParser.cpp | 170 << "package ID is too big (" << packageId << ")"); 174 // Extract the package name. 182 ResourceTablePackage* package = mTable->createPackage(packageName, (uint8_t) packageId); local 183 if (!package) { 185 << "incompatible package '" << packageName 191 // clear the type and key pool in case they were set from a previous package. 232 if (!parseType(package, parser.getChunk())) { 282 bool BinaryResourceParser::parseType(const ResourceTablePackage* package, argument 329 const ResourceName name(package->name, *parsedType, 333 const ResourceId resId(package [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | Files.cpp | 158 std::string packageToPath(const StringPiece& package) { argument 160 for (StringPiece part : util::tokenize<char>(package, '.')) {
|
H A D | Util.cpp | 164 Maybe<std::u16string> getFullyQualifiedClassName(const StringPiece16& package, argument 174 if (package.empty()) { 182 std::u16string result(package.data(), package.size());
|