Home
last modified time | relevance | path

Searched refs:pHeader (Results 1 – 6 of 6) sorted by relevance

/dalvik/libdex/
DDexFile.cpp226 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup()
236 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup()
254 pDexFile->pHeader->classDefsSize, numEntries, in dexCreateClassLookup()
255 (100 * pDexFile->pHeader->classDefsSize) / numEntries, in dexCreateClassLookup()
267 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers() local
270 pDexFile->pHeader = pHeader; in dexFileSetupBasicPointers()
271 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
272 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
273 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
274 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
[all …]
DDexSwapVerify.cpp45 const DexHeader* pHeader; member
229 return (state->pHeader->typeIdsSize + 0x1f) >> 5; in calcDefinedClassBitsSize()
249 static bool swapDexHeader(const CheckState* state, DexHeader* pHeader) in swapDexHeader() argument
251 CHECK_PTR_RANGE(pHeader, pHeader + 1); in swapDexHeader()
254 SWAP_FIELD4(pHeader->checksum); in swapDexHeader()
256 SWAP_FIELD4(pHeader->fileSize); in swapDexHeader()
257 SWAP_FIELD4(pHeader->headerSize); in swapDexHeader()
258 SWAP_FIELD4(pHeader->endianTag); in swapDexHeader()
259 SWAP_FIELD4(pHeader->linkSize); in swapDexHeader()
260 SWAP_OFFSET4(pHeader->linkOff); in swapDexHeader()
[all …]
DDexClass.h63 DexClassDataHeader *pHeader);
122 DexClassDataHeader *pHeader) { in dexReadClassDataHeader() argument
123 pHeader->staticFieldsSize = readUnsignedLeb128(pData); in dexReadClassDataHeader()
124 pHeader->instanceFieldsSize = readUnsignedLeb128(pData); in dexReadClassDataHeader()
125 pHeader->directMethodsSize = readUnsignedLeb128(pData); in dexReadClassDataHeader()
126 pHeader->virtualMethodsSize = readUnsignedLeb128(pData); in dexReadClassDataHeader()
DDexFile.h599 const DexHeader* pHeader; member
668 bool dexHasValidMagic(const DexHeader* pHeader);
673 u4 dexComputeChecksum(const DexHeader* pHeader);
698 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap()
719 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId()
735 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId()
750 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId()
756 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId()
762 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId()
781 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef()
[all …]
DDexClass.cpp42 DexClassDataHeader *pHeader) { in dexReadAndVerifyClassDataHeader() argument
47 dexReadClassDataHeader(pData, pHeader); in dexReadAndVerifyClassDataHeader()
/dalvik/dexdump/
DDexDump.cpp396 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader() local
397 char sanitized[sizeof(pHeader->magic)*2 +1]; in dumpFileHeader()
399 assert(sizeof(pHeader->magic) == sizeof(pOptHeader->magic)); in dumpFileHeader()
421 asciify(sanitized, pHeader->magic, sizeof(pHeader->magic)); in dumpFileHeader()
423 printf("checksum : %08x\n", pHeader->checksum); in dumpFileHeader()
425 pHeader->signature[0], pHeader->signature[1], in dumpFileHeader()
426 pHeader->signature[kSHA1DigestLen-2], in dumpFileHeader()
427 pHeader->signature[kSHA1DigestLen-1]); in dumpFileHeader()
428 printf("file_size : %d\n", pHeader->fileSize); in dumpFileHeader()
429 printf("header_size : %d\n", pHeader->headerSize); in dumpFileHeader()
[all …]