Lines Matching defs:pkg

1301             Package* pkg = packages[i];
1302 if (pkg->owner == owner) {
1303 delete pkg;
1311 Package* pkg = packages[0];
1315 const Type* type = pkg->getType(i);
1994 printf("Found value: pkg=%d, type=%d, str=%s, int=%d\n",
2178 LOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, t, e);
2534 LOGW("ResTable_entry at %d (pkg=%d type=%d ent=%d) is not on an integer boundary when looking for %s:%s/%s",
3630 const ResTable_package* const pkg = package->package;
3761 status_t ResTable::parsePackage(const ResTable_package* const pkg,
3764 const uint8_t* base = (const uint8_t*)pkg;
3765 status_t err = validate_chunk(&pkg->header, sizeof(*pkg),
3771 const size_t pkgSize = dtohl(pkg->header.size);
3773 if (dtohl(pkg->typeStrings) >= pkgSize) {
3775 (void*)dtohl(pkg->typeStrings), (void*)pkgSize);
3778 if ((dtohl(pkg->typeStrings)&0x3) != 0) {
3780 (void*)dtohl(pkg->typeStrings));
3783 if (dtohl(pkg->keyStrings) >= pkgSize) {
3785 (void*)dtohl(pkg->keyStrings), (void*)pkgSize);
3788 if ((dtohl(pkg->keyStrings)&0x3) != 0) {
3790 (void*)dtohl(pkg->keyStrings));
3796 uint32_t id = dtohl(pkg->id);
3799 package = new Package(this, header, pkg);
3808 char16_t tmpName[sizeof(pkg->name)/sizeof(char16_t)];
3809 strcpy16_dtoh(tmpName, pkg->name, sizeof(pkg->name)/sizeof(char16_t));
3816 err = package->typeStrings.setTo(base+dtohl(pkg->typeStrings),
3817 header->dataEnd-(base+dtohl(pkg->typeStrings)));
3823 err = package->keyStrings.setTo(base+dtohl(pkg->keyStrings),
3824 header->dataEnd-(base+dtohl(pkg->keyStrings)));
3859 (const ResChunk_header*)(((const uint8_t*)pkg)
3860 + dtohs(pkg->header.headerSize));
3861 const uint8_t* endPos = ((const uint8_t*)pkg) + dtohs(pkg->header.size);
4041 void ResTable::print_value(const Package* pkg, const Res_value& value) const
4051 const char* str8 = pkg->header->values.string8At(
4056 const char16_t* str16 = pkg->header->values.stringAt(
4110 const Package* pkg = pg->packages[pkgIndex];
4111 size_t typeCount = pkg->types.size();
4113 pkg->package->id, String8(String16(pkg->package->name)).string(),
4116 const Type* typeConfigs = pkg->getType(typeIndex);
4126 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
4339 uint32_t resID = (0xff000000 & ((pkg->package->id)<<24))
4402 print_value(pkg, value);
4413 print_value(pkg, value);