Home | History | Annotate | Download | only in androidfw

Lines Matching defs:Package

365         ALOGE("idmap: target package ID is invalid (%02x)", targetPackageId);
2859 const Package* package;
2867 Type(const Header* _header, const Package* _package, size_t count)
2868 : header(_header), package(_package), entryCount(count),
2871 const Package* const package;
2879 struct ResTable::Package
2881 Package(ResTable* _owner, const Header* _header, const ResTable_package* _package)
2882 : owner(_owner), header(_header), package(_package), typeIdOffset(0) {
2883 if (dtohs(package->header.headerSize) == sizeof(package)) {
2884 // The package structure is the same size as the definition.
2886 typeIdOffset = package->typeIdOffset;
2892 const ResTable_package* const package;
2900 // A group of objects describing a particular resource package.
2901 // The first in 'package' is always the root object (from the resource
2902 // table that defined the package); the ones after are skins on top of it.
2921 if (typeList[j]->package->owner == owner) {
2929 Package* pkg = packages[i];
2979 Vector<Package*> packages;
2990 // this package group.
2992 // by having these tables in a per-package scope rather than
2993 // per-package-group.
3079 ALOGE("Style contains key with bad package: 0x%08x\n", attrRes);
3158 // the system package (which is still wrong because it isn't
3194 TABLE_THEME(ALOGI("Found package: %p", pi));
3259 ALOGI(" Package #0x%02x:\n", (int)(i + 1));
3487 ALOGW("More package chunks were found than the %d declared in the header.",
3506 ALOGW("Fewer package chunks (%d) were found than the %d declared in the header.",
3559 ALOGW("No package identifier when getting name for resource number 0x%08x", resID);
3561 ALOGW("No known package when getting name for resource number 0x%08x", resID);
3582 outName->package = grp->name.string();
3622 ALOGW("No package identifier when getting value for resource number 0x%08x", resID);
3624 ALOGW("No known package when getting value for resource number 0x%08x", resID);
3669 // references have build-time generated package IDs. These ids may not match
3670 // the actual package IDs of the corresponding packages in this ResTable.
3671 // We need to fix the package ID based on a mapping.
3673 ALOGW("Failed to resolve referenced package: 0x%08x", outValue->data);
3679 entry.package->header->index,
3682 ? String8(entry.package->header->values.stringAt(
3695 return entry.package->header->index;
3782 ALOGW("Invalid package identifier when getting bag for resource number 0x%08x", resID);
3989 cur->stringBlock = entry.package->header->index;
4066 const char16_t* package,
4120 // Figure out the package and type we are looking in...
4143 package = name;
4146 } else if (!package) {
4163 TABLE_NOISY(printf("Looking for identifier: type=%s, name=%s, package=%s\n",
4166 String8(package, packageLen).string()));
4172 if (strzcmp16(package, packageLen,
4174 TABLE_NOISY(printf("Skipping package group: %s\n", String8(group->name).string()));
4189 TABLE_NOISY(printf("Expected type structure not found in package %s for index %d\n",
4197 const ssize_t ei = t->package->keyStrings.indexOfString(name, nameLen);
4282 *outErrorMsg = "No resource package specified";
4303 *outErrorMsg = "Resource package cannot be an empty string";
4661 String16 package, type, name;
4662 if (!expandResourceRef(resourceRefName,resourceNameLen, &package, &type, &name,
4672 type.size(), package.string(), package.size(), &specFlags);
4675 if (accessor == NULL || accessor->getAssetsPackage() != package) {
4690 String8(package).string(), String8(type).string(),
4703 uint32_t rid = accessor->getCustomResourceWithCreation(package, type, name,
4707 String8(package).string(), String8(type).string(),
4826 String16 package, type, name;
4827 if (!expandResourceRef(s+1, len-1, &package, &type, &name,
4836 // String8(package).string(), String8(type).string(),
4842 package.string(), package.size(), &specFlags);
4860 // String8(package).string(), String8(type).string(),
4867 uint32_t rid = accessor->getCustomResource(package, type, name);
4870 // String8(package).string(), String8(type).string(),
5257 "Requested package index %d past package count %d",
5268 "Requested package index %d past package count %d",
5279 "Requested package index %d past package count %d",
5411 ALOGW("No package identifier when getting flags for resource number 0x%08x", resID);
5413 ALOGW("No known package when getting flags for resource number 0x%08x", resID);
5451 const Package* bestPackage = NULL;
5457 // Iterate over the Types of each package.
5467 // ID to package resource ID.
5484 // resources in the 'android' package (old bug in AAPT).
5488 // Aggregate all the flags for each package that defines this entry.
5536 bestPackage = typeSpec->package;
5574 outEntry->package = bestPackage;
5628 LOG_ALWAYS_FATAL("Package id out of range");
5636 Package* package = new Package(this, header, pkg);
5637 if (package == NULL) {
5641 err = package->typeStrings.setTo(base+dtohl(pkg->typeStrings),
5645 delete package;
5649 err = package->keyStrings.setTo(base+dtohl(pkg->keyStrings),
5653 delete package;
5665 delete package;
5676 // Find all packages that reference this package
5689 err = group->packages.add(package);
5751 // resources in the 'android' package (old bug in AAPT).
5755 Type* t = new Type(header, package, newEntryCount);
5824 if (t->package != package) {
5874 // Reserved package ids
5899 ALOGE("Bad package id 0x%08x", packageId);
5954 // No lookup needs to be done, app package IDs are absolute.
5959 // The package ID is 0x00. That means that a shared library is accessing
5961 // package ID.
5969 ALOGE("DynamicRefTable(0x%02x): No mapping for build-time package ID 0x%02x.",
6010 ALOGW("idmap: target package has no package groups, cannot create idmap\n");
6015 ALOGW("idmap: target package has no packages in its first package group, "
6022 // overlaid packages are assumed to contain only one package group
6028 // target package id and number of types in map
6031 // overlay packages are assumed to contain only one package group
6032 const String16 overlayPackage(overlay.mPackageGroups[0]->packages[0]->package->name);
6102 ALOGW("idmap: no resources in overlay package present in base package");
6251 void ResTable::print_value(const Package* pkg, const Res_value& value) const
6308 printf("Package Groups (%d)\n", (int)pgCount);
6311 printf("Package Group %d id=0x%02x packageCount=%d name=%s\n",
6330 const Package* pkg = pg->packages[pkgIndex];
6331 // Use a package's real ID, since the ID may have been assigned
6332 // if this package is a shared library.
6333 packageId = pkg->package->id;
6334 printf(" Package %d id=0x%02x name=%s\n", (int)pkgIndex,
6335 pkg->package->id, String8(String16(pkg->package->name)).string());
6375 CHAR16_TO_CSTR(resName.package, resName.packageLen),
6436 CHAR16_TO_CSTR(resName.package, resName.packageLen),
6493 print_value(typeConfigs->package, value);
6513 print_value(typeConfigs->package, value);