/dalvik/libdex/ |
D | DexSwapVerify.c | 71 const DexHeader* pHeader; member 240 static bool swapDexHeader(const CheckState* state, DexHeader* pHeader) in swapDexHeader() argument 242 CHECK_PTR_RANGE(pHeader, pHeader + 1); in swapDexHeader() 245 SWAP_FIELD4(pHeader->checksum); in swapDexHeader() 247 SWAP_FIELD4(pHeader->fileSize); in swapDexHeader() 248 SWAP_FIELD4(pHeader->headerSize); in swapDexHeader() 249 SWAP_FIELD4(pHeader->endianTag); in swapDexHeader() 250 SWAP_FIELD4(pHeader->linkSize); in swapDexHeader() 251 SWAP_OFFSET4(pHeader->linkOff); in swapDexHeader() 252 SWAP_OFFSET4(pHeader->mapOff); in swapDexHeader() [all …]
|
D | DexFile.c | 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() [all …]
|
D | DexClass.h | 63 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()
|
D | DexFile.h | 509 const DexHeader* pHeader; member 566 u4 dexComputeChecksum(const DexHeader* pHeader); 591 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap() 612 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId() 628 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId() 643 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId() 649 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId() 655 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId() 674 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef() 683 pClassDef < pDexFile->pClassDefs + pDexFile->pHeader->classDefsSize); in dexGetIndexForClassDef()
|
D | DexClass.c | 43 DexClassDataHeader *pHeader) { in dexReadAndVerifyClassDataHeader() argument 48 dexReadClassDataHeader(pData, pHeader); in dexReadAndVerifyClassDataHeader()
|
/dalvik/vm/ |
D | DvmDex.h | 41 const DexHeader* pHeader; member 93 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexGetResolvedString() 99 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexGetResolvedClass() 105 assert(methodIdx < pDvmDex->pHeader->methodIdsSize); in dvmDexGetResolvedMethod() 111 assert(fieldIdx < pDvmDex->pHeader->fieldIdsSize); in dvmDexGetResolvedField() 122 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexSetResolvedString() 128 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexSetResolvedClass() 134 assert(methodIdx < pDvmDex->pHeader->methodIdsSize); in dvmDexSetResolvedMethod() 140 assert(fieldIdx < pDvmDex->pHeader->fieldIdsSize); in dvmDexSetResolvedField() 164 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexGetResolvedString() [all …]
|
D | DvmDex.c | 41 const DexHeader* pHeader; in allocateAuxStructures() local 49 pDvmDex->pHeader = pDexFile->pHeader; in allocateAuxStructures() 51 pHeader = pDvmDex->pHeader; in allocateAuxStructures() 53 stringCount = pHeader->stringIdsSize; in allocateAuxStructures() 54 classCount = pHeader->typeIdsSize; in allocateAuxStructures() 55 methodCount = pHeader->methodIdsSize; in allocateAuxStructures() 56 fieldCount = pHeader->fieldIdsSize; in allocateAuxStructures()
|
/dalvik/vm/analysis/ |
D | ReduceConstants.c | 275 const DexHeader* pHeader = pDexFile->pHeader; in allocScanResults() local 281 pResults->usedClasses = dvmAllocBitVector(pHeader->typeIdsSize, false); in allocScanResults() 282 pResults->usedMethods = dvmAllocBitVector(pHeader->methodIdsSize, false); in allocScanResults() 283 pResults->usedFields = dvmAllocBitVector(pHeader->fieldIdsSize, false); in allocScanResults() 284 pResults->usedStrings = dvmAllocBitVector(pHeader->stringIdsSize, false); in allocScanResults() 307 const DexClassDataHeader* pHeader, const char* classDescriptor, in forAllMethodsInClass() argument 315 if (pHeader->staticFieldsSize != 0) { in forAllMethodsInClass() 316 int count = (int) pHeader->staticFieldsSize; in forAllMethodsInClass() 323 if (pHeader->instanceFieldsSize != 0) { in forAllMethodsInClass() 324 int count = (int) pHeader->instanceFieldsSize; in forAllMethodsInClass() [all …]
|
D | DexVerify.c | 68 u4 count = pDexFile->pHeader->classDefsSize; in dvmVerifyAllClasses() 348 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewInstance() 350 idx, pDvmDex->pHeader->typeIdsSize); in checkNewInstance() 378 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewArray() 380 idx, pDvmDex->pHeader->typeIdsSize); in checkNewArray() 421 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkTypeIndex() 423 idx, pDvmDex->pHeader->typeIdsSize); in checkTypeIndex() 445 if (idx >= pDvmDex->pHeader->fieldIdsSize) { in checkFieldIndex() 448 idx, pDvmDex->pHeader->fieldIdsSize, insnIdx); in checkFieldIndex() 465 if (decInsn.vB >= pDvmDex->pHeader->methodIdsSize) { in checkMethodIndex() [all …]
|
D | DexOptimize.c | 60 static void updateChecksum(u1* addr, int len, DexHeader* pHeader); 614 DexHeader* pHeader = (DexHeader*)pDvmDex->pHeader; in dvmContinueOptimization() local 615 updateChecksum(dexAddr, dexLength, pHeader); in dvmContinueOptimization() 767 return pDvmDex->pDexFile->pHeader->signature; in getSignature() 1271 static void updateChecksum(u1* addr, int len, DexHeader* pHeader) in updateChecksum() argument 1277 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum); in updateChecksum() 1280 pHeader->checksum = adler; in updateChecksum() 1303 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses() 1441 u4 count = pDexFile->pHeader->classDefsSize; in optimizeLoadedClasses()
|
D | RegisterMap.c | 704 u4 count = pDexFile->pHeader->classDefsSize; in writeMapsAllClasses()
|
/dalvik/dexdump/ |
D | DexDump.c | 364 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader() local 367 printf("magic : '%.8s'\n", pHeader->magic); in dumpFileHeader() 368 printf("checksum : %08x\n", pHeader->checksum); in dumpFileHeader() 370 pHeader->signature[0], pHeader->signature[1], in dumpFileHeader() 371 pHeader->signature[kSHA1DigestLen-2], in dumpFileHeader() 372 pHeader->signature[kSHA1DigestLen-1]); in dumpFileHeader() 373 printf("file_size : %d\n", pHeader->fileSize); in dumpFileHeader() 374 printf("header_size : %d\n", pHeader->headerSize); in dumpFileHeader() 375 printf("link_size : %d\n", pHeader->linkSize); in dumpFileHeader() 377 pHeader->linkOff, pHeader->linkOff); in dumpFileHeader() [all …]
|
/dalvik/vm/jdwp/ |
D | JdwpHandler.h | 41 void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader,
|
D | JdwpHandler.c | 2049 void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader, in dvmJdwpProcessRequest() argument 2059 if (pHeader->cmdSet != kJDWPDdmCmdSet) { in dvmJdwpProcessRequest() 2093 if (gHandlerMap[i].cmdSet == pHeader->cmdSet && in dvmJdwpProcessRequest() 2094 gHandlerMap[i].cmd == pHeader->cmd) in dvmJdwpProcessRequest() 2097 gHandlerMap[i].descr, pHeader->cmdSet, pHeader->cmd, in dvmJdwpProcessRequest() 2098 dataLen, pHeader->id); in dvmJdwpProcessRequest() 2105 pHeader->cmdSet, pHeader->cmd, dataLen, pHeader->id); in dvmJdwpProcessRequest() 2118 set4BE(replyBuf + 4, pHeader->id); in dvmJdwpProcessRequest() 2140 if (pHeader->cmdSet != kJDWPDdmCmdSet) { in dvmJdwpProcessRequest()
|
/dalvik/dexlist/ |
D | DexList.c | 209 for (i = 0; i < (int) pDexFile->pHeader->classDefsSize; i++) { in process()
|
/dalvik/vm/oo/ |
D | Class.c | 1647 const DexClassDef* pClassDef, const DexClassDataHeader* pHeader, in loadClassFromDex0() argument 1738 if (pHeader->staticFieldsSize != 0) { in loadClassFromDex0() 1740 int count = (int) pHeader->staticFieldsSize; in loadClassFromDex0() 1753 if (pHeader->instanceFieldsSize != 0) { in loadClassFromDex0() 1754 int count = (int) pHeader->instanceFieldsSize; in loadClassFromDex0() 1790 pHeader->directMethodsSize + pHeader->virtualMethodsSize != numMethods) in loadClassFromDex0() 1793 newClass->descriptor, pHeader->directMethodsSize, in loadClassFromDex0() 1794 pHeader->virtualMethodsSize, numMethods); in loadClassFromDex0() 1802 if (pHeader->directMethodsSize != 0) { in loadClassFromDex0() 1803 int count = (int) pHeader->directMethodsSize; in loadClassFromDex0() [all …]
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.c | 350 int count = pDexFile->pHeader->classDefsSize; in Dalvik_dalvik_system_DexFile_getClassNameList()
|
/dalvik/tools/dmtracedump/ |
D | TraceDump.c | 1099 int parseDataHeader(FILE *fp, DataHeader* pHeader) in parseDataHeader() argument 1101 pHeader->magic = read4LE(fp); in parseDataHeader() 1102 pHeader->version = read2LE(fp); in parseDataHeader() 1103 pHeader->offsetToData = read2LE(fp); in parseDataHeader() 1104 pHeader->startWhen = read8LE(fp); in parseDataHeader() 1106 if (fseek(fp, pHeader->offsetToData - 16, SEEK_CUR) != 0) { in parseDataHeader()
|
/dalvik/vm/reflect/ |
D | Annotation.c | 1565 u4 hi = pDexFile->pHeader->methodIdsSize -1; in getMethodIdx() 1846 u4 hi = pDexFile->pHeader->fieldIdsSize -1; in getFieldIdx()
|