Lines Matching defs:package

2334         : header(_header), package(_package), entryCount(count),
2337 const Package* const package;
2347 : owner(_owner), header(_header), package(_package) { }
2359 const ResTable_package* const package;
2370 // A group of objects describing a particular resource package.
2371 // The first in 'package' is always the root object (from the resource
2372 // table that defined the package); the ones after are skins on top of it.
2420 // This is for finding typeStrings and other common package stuff.
2515 ALOGE("Style contains key with bad package: 0x%08x\n", attrRes);
2597 // the system package (which is still wrong because it isn't
2633 TABLE_THEME(ALOGI("Found package: %p", pi));
2872 ALOGW("More package chunks were found than the %d declared in the header.",
2899 ALOGW("Fewer package chunks (%d) were found than the %d declared in the header.",
2952 ALOGW("No package identifier when getting name for resource number 0x%08x", resID);
2954 ALOGW("No known package when getting name for resource number 0x%08x", resID);
2969 const Package* const package = grp->packages[0];
2973 ssize_t offset = getEntry(package, t, e, NULL, &type, &entry, NULL);
2978 outName->package = grp->name.string();
3008 ALOGW("No package identifier when getting value for resource number 0x%08x", resID);
3010 ALOGW("No known package when getting value for resource number 0x%08x", resID);
3055 const Package* const package = grp->packages[ip];
3056 if (package->header->resourceIDMap) {
3058 status_t retval = idmapLookup(package->header->resourceIDMap,
3059 package->header->resourceIDMapSize,
3067 // resource not present in overlay package, continue with the next package
3075 ssize_t offset = getEntry(package, T, E, desiredConfig, &type, &entry, &typeClass);
3077 // No {entry, appropriate config} pair found in package. If this
3078 // package is an overlay package (ip != 0), this simply means the
3079 // overlay package did not specify a default.
3082 ALOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
3130 bestPackage = package;
3133 TABLE_NOISY(printf("Found result: package %p\n", bestPackage));
3248 ALOGW("Invalid package identifier when getting bag for resource number 0x%08x", resID);
3332 const Package* const package = grp->packages[ip];
3333 if (package->header->resourceIDMap) {
3335 status_t retval = idmapLookup(package->header->resourceIDMap,
3336 package->header->resourceIDMapSize,
3344 // resource not present in overlay package, continue with the next package
3352 ALOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, T, E);
3353 ssize_t offset = getEntry(package, T, E, &mParams, &type, &entry, &typeClass);
3356 // No {entry, appropriate config} pair found in package. If this
3357 // package is an overlay package (ip != 0), this simply means the
3358 // overlay package did not specify a default.
3368 ALOGW("Skipping entry %p in package table %d because it is not complex!\n",
3492 cur->stringBlock = package->header->index;
3563 const char16_t* package,
3617 // Figure out the package and type we are looking in...
3640 package = name;
3643 } else if (!package) {
3660 TABLE_NOISY(printf("Looking for identifier: type=%s, name=%s, package=%s\n",
3663 String8(package, packageLen).string()));
3669 if (strzcmp16(package, packageLen,
3671 TABLE_NOISY(printf("Skipping package group: %s\n", String8(group->name).string()));
3677 TABLE_NOISY(printf("Type not found in package %s\n", String8(group->name).string()));
3683 TABLE_NOISY(printf("Name not found in package %s\n", String8(group->name).string()));
3691 TABLE_NOISY(printf("Expected type structure not found in package %s for idnex %d\n",
3721 String8(package, packageLen).string(),
3792 *outErrorMsg = "No resource package specified";
3813 *outErrorMsg = "Resource package cannot be an empty string";
4171 String16 package, type, name;
4172 if (!expandResourceRef(resourceRefName,resourceNameLen, &package, &type, &name,
4182 type.size(), package.string(), package.size(), &specFlags);
4200 String8(package).string(), String8(type).string(),
4207 uint32_t rid = accessor->getCustomResourceWithCreation(package, type, name,
4211 String8(package).string(), String8(type).string(),
4321 String16 package, type, name;
4322 if (!expandResourceRef(s+1, len-1, &package, &type, &name,
4331 // String8(package).string(), String8(type).string(),
4337 package.string(), package.size(), &specFlags);
4355 // String8(package).string(), String8(type).string(),
4362 uint32_t rid = accessor->getCustomResource(package, type, name);
4365 // String8(package).string(), String8(type).string(),
4752 "Requested package index %d past package count %d",
4763 "Requested package index %d past package count %d",
4790 const Package* package = packageGroup->packages[j];
4791 const size_t K = package->types.size();
4793 const Type* type = package->types[k];
4841 const Package* package, int typeIndex, int entryIndex,
4846 ALOGV("Getting entry from package %p\n", package);
4847 const ResTable_package* const pkg = package->package;
4849 const Type* allTypes = package->getType(typeIndex);
4921 TABLE_NOISY(aout << "Looking in resource table " << package->header->header
4923 << (void*)(((const char*)type)-((const char*)package->header->header))
4985 Package* package = NULL;
4988 // If at this point id == 0, pkg is an overlay package without a
4991 // the package is temporarily loaded by itself.
4994 package = new Package(this, header, pkg);
4995 if (package == NULL) {
5007 delete package;
5011 err = package->typeStrings.setTo(base+dtohl(pkg->typeStrings),
5015 delete package;
5018 err = package->keyStrings.setTo(base+dtohl(pkg->keyStrings),
5022 delete package;
5026 //printf("Adding new package id %d at index %d\n", id, idx);
5031 group->basePackage = package;
5040 err = group->packages.add(package);
5095 while (package->types.size() < typeSpec->id) {
5096 package->types.add(NULL);
5098 Type* t = package->types[typeSpec->id-1];
5100 t = new Type(header, package, dtohl(typeSpec->entryCount));
5101 package->types.editItemAt(typeSpec->id-1) = t;
5145 while (package->types.size() < type->id) {
5146 package->types.add(NULL);
5148 Type* t = package->types[type->id-1];
5150 t = new Type(header, package, dtohl(type->entryCount));
5151 package->types.editItemAt(type->id-1) = t;
5176 group->typeCount = package->types.size();
5199 const String16 overlayPackage(overlay.mPackageGroups[0]->packages[0]->package->name);
5200 const uint32_t pkg_id = pkg->package->id << 24;
5262 // no entries of current type defined in overlay package
5467 pkg->package->id, String8(String16(pkg->package->name)).string(),
5480 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
5487 CHAR16_TO_CSTR(resName.package, resName.packageLen),
5528 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
5534 CHAR16_TO_CSTR(resName.package, resName.packageLen),