Home
last modified time | relevance | path

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

/dalvik/libdex/
DDexFile.cpp229 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup()
239 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup()
257 pDexFile->pHeader->classDefsSize, numEntries, in dexCreateClassLookup()
258 (100 * pDexFile->pHeader->classDefsSize) / numEntries, in dexCreateClassLookup()
270 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers() local
273 pDexFile->pHeader = pHeader; in dexFileSetupBasicPointers()
274 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
275 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
276 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
277 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
[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()
DDexSwapVerify.cpp72 const DexHeader* pHeader; member
253 return (state->pHeader->typeIdsSize + 0x1f) >> 5; in calcDefinedClassBitsSize()
273 static bool swapDexHeader(const CheckState* state, DexHeader* pHeader) in swapDexHeader() argument
275 CHECK_PTR_RANGE(pHeader, pHeader + 1); in swapDexHeader()
278 SWAP_FIELD4(pHeader->checksum); in swapDexHeader()
280 SWAP_FIELD4(pHeader->fileSize); in swapDexHeader()
281 SWAP_FIELD4(pHeader->headerSize); in swapDexHeader()
282 SWAP_FIELD4(pHeader->endianTag); in swapDexHeader()
283 SWAP_FIELD4(pHeader->linkSize); in swapDexHeader()
284 SWAP_OFFSET4(pHeader->linkOff); in swapDexHeader()
[all …]
DDexFile.h505 const DexHeader* pHeader; member
574 bool dexHasValidMagic(const DexHeader* pHeader);
579 u4 dexComputeChecksum(const DexHeader* pHeader);
604 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap()
625 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId()
641 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId()
656 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId()
662 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId()
668 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId()
687 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef()
[all …]
DDexClass.cpp43 DexClassDataHeader *pHeader) { in dexReadAndVerifyClassDataHeader() argument
48 dexReadClassDataHeader(pData, pHeader); in dexReadAndVerifyClassDataHeader()
/dalvik/dexdump/
DDexDump.cpp395 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader() local
396 char sanitized[sizeof(pHeader->magic)*2 +1]; in dumpFileHeader()
398 assert(sizeof(pHeader->magic) == sizeof(pOptHeader->magic)); in dumpFileHeader()
420 asciify(sanitized, pHeader->magic, sizeof(pHeader->magic)); in dumpFileHeader()
422 printf("checksum : %08x\n", pHeader->checksum); in dumpFileHeader()
424 pHeader->signature[0], pHeader->signature[1], in dumpFileHeader()
425 pHeader->signature[kSHA1DigestLen-2], in dumpFileHeader()
426 pHeader->signature[kSHA1DigestLen-1]); in dumpFileHeader()
427 printf("file_size : %d\n", pHeader->fileSize); in dumpFileHeader()
428 printf("header_size : %d\n", pHeader->headerSize); in dumpFileHeader()
[all …]
/dalvik/tools/dmtracedump/
DTraceDump.c1069 int parseDataHeader(FILE *fp, DataHeader* pHeader) in parseDataHeader() argument
1073 pHeader->magic = read4LE(fp); in parseDataHeader()
1074 pHeader->version = read2LE(fp); in parseDataHeader()
1075 pHeader->offsetToData = read2LE(fp); in parseDataHeader()
1076 pHeader->startWhen = read8LE(fp); in parseDataHeader()
1077 bytesToRead = pHeader->offsetToData - 16; in parseDataHeader()
1078 if (pHeader->version == 1) { in parseDataHeader()
1079 pHeader->recordSize = 9; in parseDataHeader()
1080 } else if (pHeader->version == 2) { in parseDataHeader()
1081 pHeader->recordSize = 10; in parseDataHeader()
[all …]
/dalvik/dexlist/
DDexList.cpp229 for (i = 0; i < (int) pDexFile->pHeader->classDefsSize; i++) { in process()