/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/include/androidfw/ |
H A D | ResourceTypes.h | 243 #define Res_MAKEID(package, type, entry) \ 244 (((package+1)<<24) | (((type+1)&0xFF)<<16) | (entry&0xFFFF)) 390 * where pp is the package index, tt is the type index in that 391 * package, and eeee is the entry index in that type. The package 852 * A collection of resource data types within a package. Followed by 860 // If this is a base package, its ID. Package IDs start 861 // at 1 (corresponding to the value of the package bits in a 862 // resource identifier). 0 means this is not a base package. 865 // Actual name of this package, \ 1591 const char16_t* package; member in struct:android::ResTable::resource_name [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 370 ALOGE("idmap: target package ID is invalid (%02x)", targetPackageId); 3145 const Package* package; member in struct:android::ResTable::Entry 3154 : header(_header), package(_package), entryCount(count), 3157 const Package* const package; member in struct:android::ResTable::Type 3168 : owner(_owner), header(_header), package(_package), typeIdOffset(0) { 3169 if (dtohs(package->header.headerSize) == sizeof(package)) { 3170 // The package structure is the same size as the definition. 3172 typeIdOffset = package->typeIdOffset; 3178 const ResTable_package* const package; member in struct:android::ResTable::Package 4506 identifierForName(const char16_t* name, size_t nameLen, const char16_t* type, size_t typeLen, const char16_t* package, size_t packageLen, uint32_t* outTypeSpecFlags) const argument 5156 String16 package, type, name; local 5325 String16 package, type, name; local 6183 Package* package = new Package(this, header, pkg); local [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.cpp | 727 char package[128]; local 731 if (!fgets(package, 128, file)) { 743 snprintf(path, 1024, "/data/data/%s/cache/rendertree_dump", package);
|
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.h | 274 * Note that sorting here is not enough to guarantee that the package 519 void setPackage(const String8& package) { argument 520 mPackage = package; 521 mSymbolsPrivatePackage = package;
|
H A D | Bundle.h | 132 void setPrivateSymbolsPackage(const android::String8& package) { argument 133 mPrivateSymbolsPackage = package;
|
H A D | Resource.cpp | 260 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); 262 fprintf(stderr, "%s:%d: <manifest> does not have package attribute.\n", 763 static void fullyQualifyClassName(const String8& package, sp<XMLNode> node, argument 770 // asdf --> package.asdf 771 // .asdf .a.b --> package.asdf package.a.b 777 className += package; 780 className += package; 881 // Deal with manifest package name overrides 884 // Update the actual package nam 2665 writeResourceSymbols(Bundle* bundle, const sp<AaptAssets>& assets, const String8& package, bool includePrivate, bool emitCallback) argument [all...] |
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);
|
H A D | ResourceTable.cpp | 172 "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n" 173 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."}, 275 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n" 277 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n" 1118 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package"); 1121 "A 'package' attribute is required for <private-symbols>\n"); 1131 "private symbol package already specified. Ignoring...\n"); 1777 sp<Package> package = new Package(mAssetsPackage, packageId); local 1778 mPackages.add(assetsPackage, package); 1779 mOrderedPackages.add(package); 1823 addPublic(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const uint32_t ident) argument 1847 addEntry(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& value, const Vector<StringPool::entry_style_span>* style, const ResTable_config* params, const bool doSetIndex, const int32_t format, const bool overwrite) argument 1880 startBag(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& bagParent, const ResTable_config* params, bool overlay, bool replace, bool ) argument 1940 addBag(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& bagParent, const String16& bagKey, const String16& value, const Vector<StringPool::entry_style_span>* style, const ResTable_config* params, bool replace, bool isId, const int32_t format) argument 1985 hasBagOrEntry(const String16& package, const String16& type, const String16& name) const argument 2010 hasBagOrEntry(const String16& package, const String16& type, const String16& name, const ResTable_config& config) const argument 2045 String16 package, type, name; local 2053 appendComment(const String16& package, const String16& type, const String16& name, const String16& comment, bool onlyIfEmpty) argument 2077 appendTypeComment(const String16& package, const String16& type, const String16& name, const String16& comment) argument 2100 makeAttribute(const String16& package, const String16& name, const SourcePos& source, int32_t format, const String16& comment, bool shouldAppendComment) argument 2155 canAddEntry(const SourcePos& pos, const String16& package, const String16& type, const String16& name) argument 2191 getResId(const String16& package, const String16& type, const String16& name, bool onlyPublic) const argument 2243 String16 package, type, name; local 2358 getCustomResource( const String16& package, const String16& type, const String16& name) const argument 2382 getCustomResourceWithCreation( const String16& package, const String16& type, const String16& name, const bool createIfNotFound) argument 3367 writePublicDefinitions(const String16& package, FILE* fp) argument 3383 writePublicDefinitions(const String16& package, FILE* fp, bool pub) argument 3591 generateAttributes(ResourceTable* table, const String16& package) argument 4264 getPackage(const String16& package) argument 4272 getType(const String16& package, const String16& type, const SourcePos& sourcePos, bool doSetIndex) argument 4284 getEntry(const String16& package, const String16& type, const String16& name, const SourcePos& sourcePos, bool overlay, const ResTable_config* config, bool doSetIndex) argument 4299 getConfigList(const String16& package, const String16& type, const String16& name) const argument 4881 buildNamespace(const String16& package) argument [all...] |
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);
|
/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.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 | 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 | 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 | ResourceParser.cpp | 496 // name.package can be empty here, as it will assume the package name of the table. 939 StringPiece16 package; local 943 package = StringPiece16(start, p - start); 950 ref.name = ResourceName(package.toString(), ResourceType::kAttr, 999 // Transform the namespace prefix to the actual package name, and mark the reference as 1212 // If this is a declaration, the package name may be in the name. Separate these out.
|
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 | 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 | 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/flatten/ |
H A D | TableFlattener.cpp | 217 PackageFlattener(IDiagnostics* diag, ResourceTablePackage* package) : argument 218 mDiag(diag), mPackage(package) { 229 "package name '" << mPackage->name << "' is too long"); 233 // Copy the package name in device endianness. 490 // Flatten each package. 491 for (auto& package : table->packages) { 492 PackageFlattener flattener(context->getDiagnostics(), package.get());
|
/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 | JavaClassGenerator.cpp | 48 u"long", u"native", u"new", u"package", u"private", u"protected", 90 // the package. 91 if (!attrName.package.empty() && packageNameToGenerate != attrName.package) { 92 output += "_" + transform(attrName.package); 103 "\"<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>\" or a theme\n" 105 "\"<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>\"."); 235 if (mangledReference.name.value().package.empty()) { 236 mangledReference.name.value().package = mContext->getCompilationPackage(); 298 << (!attrName.package 406 addMembersToTypeClass(const StringPiece16& packageNameToGenerate, const ResourceTablePackage* package, const ResourceTableType* type, ClassDefinition* outTypeClassDef) argument [all...] |
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/link/ |
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 | 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 | 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...] |