Lines Matching defs:package

1396         : header(_header), package(_package), entryCount(count),
1399 const Package* const package;
1409 : owner(_owner), header(_header), package(_package) { }
1421 const ResTable_package* const package;
1432 // A group of objects describing a particular resource package.
1433 // The first in 'package' is always the root object (from the resource
1434 // table that defined the package); the ones after are skins on top of it.
1482 // This is for finding typeStrings and other common package stuff.
1577 LOGE("Style contains key with bad package: 0x%08x\n", attrRes);
1659 // the system package (which is still wrong because it isn't
1695 TABLE_THEME(LOGI("Found package: %p", pi));
1934 LOGW("More package chunks were found than the %d declared in the header.",
1961 LOGW("Fewer package chunks (%d) were found than the %d declared in the header.",
2014 LOGW("No package identifier when getting name for resource number 0x%08x", resID);
2016 LOGW("No known package when getting name for resource number 0x%08x", resID);
2031 const Package* const package = grp->packages[0];
2035 ssize_t offset = getEntry(package, t, e, NULL, &type, &entry, NULL);
2040 outName->package = grp->name.string();
2070 LOGW("No package identifier when getting value for resource number 0x%08x", resID);
2072 LOGW("No known package when getting value for resource number 0x%08x", resID);
2117 const Package* const package = grp->packages[ip];
2118 if (package->header->resourceIDMap) {
2120 status_t retval = idmapLookup(package->header->resourceIDMap,
2121 package->header->resourceIDMapSize,
2129 // resource not present in overlay package, continue with the next package
2137 ssize_t offset = getEntry(package, T, E, desiredConfig, &type, &entry, &typeClass);
2139 // No {entry, appropriate config} pair found in package. If this
2140 // package is an overlay package (ip != 0), this simply means the
2141 // overlay package did not specify a default.
2144 LOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
2192 bestPackage = package;
2195 TABLE_NOISY(printf("Found result: package %p\n", bestPackage));
2310 LOGW("Invalid package identifier when getting bag for resource number 0x%08x", resID);
2396 const Package* const package = grp->packages[ip];
2397 if (package->header->resourceIDMap) {
2399 status_t retval = idmapLookup(package->header->resourceIDMap,
2400 package->header->resourceIDMapSize,
2408 // resource not present in overlay package, continue with the next package
2416 LOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, T, E);
2417 ssize_t offset = getEntry(package, T, E, &mParams, &type, &entry, &typeClass);
2420 // No {entry, appropriate config} pair found in package. If this
2421 // package is an overlay package (ip != 0), this simply means the
2422 // overlay package did not specify a default.
2432 LOGW("Skipping entry %p in package table %d because it is not complex!\n",
2556 cur->stringBlock = package->header->index;
2644 const char16_t* package,
2698 // Figure out the package and type we are looking in...
2721 package = name;
2724 } else if (!package) {
2741 TABLE_NOISY(printf("Looking for identifier: type=%s, name=%s, package=%s\n",
2744 String8(package, packageLen).string()));
2750 if (strzcmp16(package, packageLen,
2752 TABLE_NOISY(printf("Skipping package group: %s\n", String8(group->name).string()));
2758 TABLE_NOISY(printf("Type not found in package %s\n", String8(group->name).string()));
2764 TABLE_NOISY(printf("Name not found in package %s\n", String8(group->name).string()));
2772 TABLE_NOISY(printf("Expected type structure not found in package %s for idnex %d\n",
2802 String8(package, packageLen).string(),
2873 *outErrorMsg = "No resource package specified";
2894 *outErrorMsg = "Resource package cannot be an empty string";
3252 String16 package, type, name;
3253 if (!expandResourceRef(resourceRefName,resourceNameLen, &package, &type, &name,
3263 type.size(), package.string(), package.size(), &specFlags);
3281 String8(package).string(), String8(type).string(),
3288 uint32_t rid = accessor->getCustomResourceWithCreation(package, type, name,
3292 String8(package).string(), String8(type).string(),
3402 String16 package, type, name;
3403 if (!expandResourceRef(s+1, len-1, &package, &type, &name,
3412 // String8(package).string(), String8(type).string(),
3418 package.string(), package.size(), &specFlags);
3436 // String8(package).string(), String8(type).string(),
3443 uint32_t rid = accessor->getCustomResource(package, type, name);
3446 // String8(package).string(), String8(type).string(),
3833 "Requested package index %d past package count %d",
3844 "Requested package index %d past package count %d",
3871 const Package* package = packageGroup->packages[j];
3872 const size_t K = package->types.size();
3874 const Type* type = package->types[k];
3922 const Package* package, int typeIndex, int entryIndex,
3927 LOGV("Getting entry from package %p\n", package);
3928 const ResTable_package* const pkg = package->package;
3930 const Type* allTypes = package->getType(typeIndex);
4036 TABLE_NOISY(aout << "Looking in resource table " << package->header->header
4038 << (void*)(((const char*)type)-((const char*)package->header->header))
4100 Package* package = NULL;
4103 // If at this point id == 0, pkg is an overlay package without a
4106 // the package is temporarily loaded by itself.
4109 package = new Package(this, header, pkg);
4110 if (package == NULL) {
4122 delete package;
4126 err = package->typeStrings.setTo(base+dtohl(pkg->typeStrings),
4130 delete package;
4133 err = package->keyStrings.setTo(base+dtohl(pkg->keyStrings),
4137 delete package;
4141 //printf("Adding new package id %d at index %d\n", id, idx);
4146 group->basePackage = package;
4155 err = group->packages.add(package);
4210 while (package->types.size() < typeSpec->id) {
4211 package->types.add(NULL);
4213 Type* t = package->types[typeSpec->id-1];
4215 t = new Type(header, package, dtohl(typeSpec->entryCount));
4216 package->types.editItemAt(typeSpec->id-1) = t;
4260 while (package->types.size() < type->id) {
4261 package->types.add(NULL);
4263 Type* t = package->types[type->id-1];
4265 t = new Type(header, package, dtohl(type->entryCount));
4266 package->types.editItemAt(type->id-1) = t;
4309 group->typeCount = package->types.size();
4332 const String16 overlayPackage(overlay.mPackageGroups[0]->packages[0]->package->name);
4333 const uint32_t pkg_id = pkg->package->id << 24;
4344 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
4362 // overlay package has package ID == 0, use original package's ID instead
4389 // no entries of current type defined in overlay package
4590 pkg->package->id, String8(String16(pkg->package->name)).string(),
4603 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
4610 CHAR16_TO_CSTR(resName.package, resName.packageLen),
4828 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
4834 CHAR16_TO_CSTR(resName.package, resName.packageLen),