Home | History | Annotate | Download | only in androidfw

Lines Matching defs:typeSpec

3047           typeSpec(NULL), typeSpecFlags(NULL) { }
3051 const ResTable_typeSpec* typeSpec;
5676 type->typeSpec->id - 1) == "mipmap") {
5814 const Type* const typeSpec = typeList[i];
5822 if (typeSpec->idmapEntries.hasEntries()) {
5824 if (typeSpec->idmapEntries.lookup(entryIndex, &overlayEntryIndex) != NO_ERROR) {
5829 realTypeIndex = typeSpec->idmapEntries.overlayTypeId() - 1;
5833 if (static_cast<size_t>(realEntryIndex) >= typeSpec->entryCount) {
5836 entryIndex, static_cast<int>(typeSpec->entryCount));
5843 if (typeSpec->typeSpecFlags != NULL) {
5844 specFlags |= dtohl(typeSpec->typeSpecFlags[realEntryIndex]);
5849 const size_t numConfigs = typeSpec->configs.size();
5851 const ResTable_type* const thisType = typeSpec->configs[c];
5888 bestPackage = typeSpec->package;
6061 const ResTable_typeSpec* typeSpec = (const ResTable_typeSpec*)(chunk);
6062 err = validate_chunk(&typeSpec->header, sizeof(*typeSpec),
6068 const size_t typeSpecSize = dtohl(typeSpec->header.size);
6069 const size_t newEntryCount = dtohl(typeSpec->entryCount);
6072 ALOGI("TypeSpec off %p: type=0x%x, headerSize=0x%x, size=%p\n",
6074 dtohs(typeSpec->header.type),
6075 dtohs(typeSpec->header.headerSize),
6079 if ((dtohl(typeSpec->entryCount) > (INT32_MAX/sizeof(uint32_t))
6080 || dtohs(typeSpec->header.headerSize)+(sizeof(uint32_t)*newEntryCount)
6083 (void*)(dtohs(typeSpec->header.headerSize) + (sizeof(uint32_t)*newEntryCount)),
6088 if (typeSpec->id == 0) {
6094 uint8_t typeIndex = typeSpec->id - 1;
6095 ssize_t idmapIndex = idmapEntries.indexOfKey(typeSpec->id);
6112 t->typeSpec = typeSpec;
6114 ((const uint8_t*)typeSpec) + dtohs(typeSpec->header.headerSize));
6119 group->largestTypeId = max(group->largestTypeId, typeSpec->id);
6121 ALOGV("Skipping empty ResTable_typeSpec for type %d", typeSpec->id);
6170 ALOGE("No TypeSpec for type %d", type->id);
6182 ALOGE("No TypeSpec for type %d", type->id);