Lines Matching refs:pHeader
425 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup()
435 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup()
453 pDexFile->pHeader->classDefsSize, numEntries, in dexCreateClassLookup()
454 (100 * pDexFile->pHeader->classDefsSize) / numEntries, in dexCreateClassLookup()
466 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers() local
469 pDexFile->pHeader = pHeader; in dexFileSetupBasicPointers()
470 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
471 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
472 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
473 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
474 pDexFile->pProtoIds = (const DexProtoId*) (data + pHeader->protoIdsOff); in dexFileSetupBasicPointers()
475 pDexFile->pClassDefs = (const DexClassDef*) (data + pHeader->classDefsOff); in dexFileSetupBasicPointers()
476 pDexFile->pLinkData = (const DexLink*) (data + pHeader->linkOff); in dexFileSetupBasicPointers()
574 pDexFile->pHeader->typeIdsSize; in parseIndexMap()
576 pDexFile->pHeader->methodIdsSize; in parseIndexMap()
578 pDexFile->pHeader->fieldIdsSize; in parseIndexMap()
580 pDexFile->pHeader->stringIdsSize; in parseIndexMap()
695 const DexHeader* pHeader; in dexFileParse() local
740 pHeader = pDexFile->pHeader; in dexFileParse()
742 magic = pHeader->magic; in dexFileParse()
761 u4 adler = dexComputeChecksum(pHeader); in dexFileParse()
762 if (adler != pHeader->checksum) { in dexFileParse()
764 adler, pHeader->checksum); in dexFileParse()
781 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum) + in dexFileParse()
785 if (memcmp(sha1Digest, pHeader->signature, kSHA1DigestLen) != 0) { in dexFileParse()
790 dexSHA1DigestToStr(pHeader->signature, tmpBuf2)); in dexFileParse()
798 if (pHeader->fileSize != length) { in dexFileParse()
800 (int) pHeader->fileSize, (int) length); in dexFileParse()
805 if (pHeader->classDefsSize == 0) { in dexFileParse()
880 u4 dexComputeChecksum(const DexHeader* pHeader) in dexComputeChecksum() argument
882 const u1* start = (const u1*) pHeader; in dexComputeChecksum()
885 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum); in dexComputeChecksum()
887 return (u4) adler32(adler, start + nonSum, pHeader->fileSize - nonSum); in dexComputeChecksum()