Lines Matching defs:package

2474         : header(_header), package(_package), entryCount(count),
2477 const Package* const package;
2487 : owner(_owner), header(_header), package(_package) { }
2499 const ResTable_package* const package;
2510 // A group of objects describing a particular resource package.
2511 // The first in 'package' is always the root object (from the resource
2512 // table that defined the package); the ones after are skins on top of it.
2560 // This is for finding typeStrings and other common package stuff.
2655 ALOGE("Style contains key with bad package: 0x%08x\n", attrRes);
2737 // the system package (which is still wrong because it isn't
2773 TABLE_THEME(ALOGI("Found package: %p", pi));
3012 ALOGW("More package chunks were found than the %d declared in the header.",
3039 ALOGW("Fewer package chunks (%d) were found than the %d declared in the header.",
3092 ALOGW("No package identifier when getting name for resource number 0x%08x", resID);
3094 ALOGW("No known package when getting name for resource number 0x%08x", resID);
3109 const Package* const package = grp->packages[0];
3113 ssize_t offset = getEntry(package, t, e, NULL, &type, &entry, NULL);
3118 outName->package = grp->name.string();
3163 ALOGW("No package identifier when getting value for resource number 0x%08x", resID);
3165 ALOGW("No known package when getting value for resource number 0x%08x", resID);
3210 const Package* const package = grp->packages[ip];
3211 if (package->header->resourceIDMap) {
3213 status_t retval = idmapLookup(package->header->resourceIDMap,
3214 package->header->resourceIDMapSize,
3222 // resource not present in overlay package, continue with the next package
3230 ssize_t offset = getEntry(package, T, E, desiredConfig, &type, &entry, &typeClass);
3232 // No {entry, appropriate config} pair found in package. If this
3233 // package is an overlay package (ip != 0), this simply means the
3234 // overlay package did not specify a default.
3237 ALOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
3285 bestPackage = package;
3288 TABLE_NOISY(printf("Found result: package %p\n", bestPackage));
3403 ALOGW("Invalid package identifier when getting bag for resource number 0x%08x", resID);
3487 const Package* const package = grp->packages[ip];
3488 if (package->header->resourceIDMap) {
3490 status_t retval = idmapLookup(package->header->resourceIDMap,
3491 package->header->resourceIDMapSize,
3499 // resource not present in overlay package, continue with the next package
3507 ALOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, T, E);
3508 ssize_t offset = getEntry(package, T, E, &mParams, &type, &entry, &typeClass);
3511 // No {entry, appropriate config} pair found in package. If this
3512 // package is an overlay package (ip != 0), this simply means the
3513 // overlay package did not specify a default.
3523 ALOGW("Skipping entry %p in package table %d because it is not complex!\n",
3647 cur->stringBlock = package->header->index;
3718 const char16_t* package,
3772 // Figure out the package and type we are looking in...
3795 package = name;
3798 } else if (!package) {
3815 TABLE_NOISY(printf("Looking for identifier: type=%s, name=%s, package=%s\n",
3818 String8(package, packageLen).string()));
3824 if (strzcmp16(package, packageLen,
3826 TABLE_NOISY(printf("Skipping package group: %s\n", String8(group->name).string()));
3832 TABLE_NOISY(printf("Type not found in package %s\n", String8(group->name).string()));
3838 TABLE_NOISY(printf("Name not found in package %s\n", String8(group->name).string()));
3846 TABLE_NOISY(printf("Expected type structure not found in package %s for idnex %d\n",
3876 String8(package, packageLen).string(),
3947 *outErrorMsg = "No resource package specified";
3968 *outErrorMsg = "Resource package cannot be an empty string";
4326 String16 package, type, name;
4327 if (!expandResourceRef(resourceRefName,resourceNameLen, &package, &type, &name,
4337 type.size(), package.string(), package.size(), &specFlags);
4355 String8(package).string(), String8(type).string(),
4362 uint32_t rid = accessor->getCustomResourceWithCreation(package, type, name,
4366 String8(package).string(), String8(type).string(),
4476 String16 package, type, name;
4477 if (!expandResourceRef(s+1, len-1, &package, &type, &name,
4486 // String8(package).string(), String8(type).string(),
4492 package.string(), package.size(), &specFlags);
4510 // String8(package).string(), String8(type).string(),
4517 uint32_t rid = accessor->getCustomResource(package, type, name);
4520 // String8(package).string(), String8(type).string(),
4907 "Requested package index %d past package count %d",
4918 "Requested package index %d past package count %d",
4945 const Package* package = packageGroup->packages[j];
4946 const size_t K = package->types.size();
4948 const Type* type = package->types[k];
4996 const Package* package, int typeIndex, int entryIndex,
5001 ALOGV("Getting entry from package %p\n", package);
5002 const ResTable_package* const pkg = package->package;
5004 const Type* allTypes = package->getType(typeIndex);
5076 TABLE_NOISY(aout << "Looking in resource table " << package->header->header
5078 << (void*)(((const char*)type)-((const char*)package->header->header))
5140 Package* package = NULL;
5143 // If at this point id == 0, pkg is an overlay package without a
5146 // the package is temporarily loaded by itself.
5149 package = new Package(this, header, pkg);
5150 if (package == NULL) {
5162 delete package;
5166 err = package->typeStrings.setTo(base+dtohl(pkg->typeStrings),
5170 delete package;
5173 err = package->keyStrings.setTo(base+dtohl(pkg->keyStrings),
5177 delete package;
5181 //printf("Adding new package id %d at index %d\n", id, idx);
5186 group->basePackage = package;
5195 err = group->packages.add(package);
5250 while (package->types.size() < typeSpec->id) {
5251 package->types.add(NULL);
5253 Type* t = package->types[typeSpec->id-1];
5255 t = new Type(header, package, dtohl(typeSpec->entryCount));
5256 package->types.editItemAt(typeSpec->id-1) = t;
5300 while (package->types.size() < type->id) {
5301 package->types.add(NULL);
5303 Type* t = package->types[type->id-1];
5305 t = new Type(header, package, dtohl(type->entryCount));
5306 package->types.editItemAt(type->id-1) = t;
5331 group->typeCount = package->types.size();
5354 const String16 overlayPackage(overlay.mPackageGroups[0]->packages[0]->package->name);
5355 const uint32_t pkg_id = pkg->package->id << 24;
5417 // no entries of current type defined in overlay package
5621 pkg->package->id, String8(String16(pkg->package->name)).string(),
5634 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
5653 CHAR16_TO_CSTR(resName.package, resName.packageLen),
5693 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
5711 CHAR16_TO_CSTR(resName.package, resName.packageLen),