/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 | 423 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup() 433 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup() 451 pDexFile->pHeader->classDefsSize, numEntries, in dexCreateClassLookup() 452 (100 * pDexFile->pHeader->classDefsSize) / numEntries, in dexCreateClassLookup() 464 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers() local 467 pDexFile->pHeader = pHeader; in dexFileSetupBasicPointers() 468 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers() 469 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers() 470 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers() 471 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 | 508 const DexHeader* pHeader; member 563 u4 dexComputeChecksum(const DexHeader* pHeader); 588 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap() 609 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId() 625 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId() 640 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId() 646 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId() 652 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId() 671 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef()
|
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 | 61 u4 count = pDexFile->pHeader->classDefsSize; in dvmVerifyAllClasses() 341 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewInstance() 343 idx, pDvmDex->pHeader->typeIdsSize); in checkNewInstance() 371 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewArray() 373 idx, pDvmDex->pHeader->typeIdsSize); in checkNewArray() 414 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkTypeIndex() 416 idx, pDvmDex->pHeader->typeIdsSize); in checkTypeIndex() 438 if (idx >= pDvmDex->pHeader->fieldIdsSize) { in checkFieldIndex() 441 idx, pDvmDex->pHeader->fieldIdsSize, insnIdx); in checkFieldIndex() 458 if (decInsn.vB >= pDvmDex->pHeader->methodIdsSize) { in checkMethodIndex() [all …]
|
D | DexOptimize.c | 59 static void updateChecksum(u1* addr, int len, DexHeader* pHeader); 590 (DexHeader*) pDvmDex->pHeader); in dvmContinueOptimization() 740 return pDvmDex->pDexFile->pHeader->signature; in getSignature() 1234 static void updateChecksum(u1* addr, int len, DexHeader* pHeader) in updateChecksum() argument 1240 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum); in updateChecksum() 1243 pHeader->checksum = adler; in updateChecksum() 1266 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses() 1404 u4 count = pDexFile->pHeader->classDefsSize; in optimizeLoadedClasses()
|
/dalvik/dexdump/ |
D | DexDump.c | 354 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader() local 357 printf("magic : '%.8s'\n", pHeader->magic); in dumpFileHeader() 358 printf("checksum : %08x\n", pHeader->checksum); in dumpFileHeader() 360 pHeader->signature[0], pHeader->signature[1], in dumpFileHeader() 361 pHeader->signature[kSHA1DigestLen-2], in dumpFileHeader() 362 pHeader->signature[kSHA1DigestLen-1]); in dumpFileHeader() 363 printf("file_size : %d\n", pHeader->fileSize); in dumpFileHeader() 364 printf("header_size : %d\n", pHeader->headerSize); in dumpFileHeader() 365 printf("link_size : %d\n", pHeader->linkSize); in dumpFileHeader() 367 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/native/ |
D | dalvik_system_DexFile.c | 343 int count = pDexFile->pHeader->classDefsSize; in Dalvik_dalvik_system_DexFile_getClassNameList()
|
/dalvik/vm/oo/ |
D | Class.c | 1642 const DexClassDef* pClassDef, const DexClassDataHeader* pHeader, in loadClassFromDex0() argument 1733 if (pHeader->staticFieldsSize != 0) { in loadClassFromDex0() 1735 int count = (int) pHeader->staticFieldsSize; in loadClassFromDex0() 1748 if (pHeader->instanceFieldsSize != 0) { in loadClassFromDex0() 1749 int count = (int) pHeader->instanceFieldsSize; in loadClassFromDex0() 1765 if (pHeader->directMethodsSize != 0) { in loadClassFromDex0() 1766 int count = (int) pHeader->directMethodsSize; in loadClassFromDex0() 1780 if (pHeader->virtualMethodsSize != 0) { in loadClassFromDex0() 1781 int count = (int) pHeader->virtualMethodsSize; in loadClassFromDex0()
|
/dalvik/tools/dmtracedump/ |
D | TraceDump.c | 1066 int parseDataHeader(FILE *fp, DataHeader* pHeader) in parseDataHeader() argument 1068 pHeader->magic = read4LE(fp); in parseDataHeader() 1069 pHeader->version = read2LE(fp); in parseDataHeader() 1070 pHeader->offsetToData = read2LE(fp); in parseDataHeader() 1071 pHeader->startWhen = read8LE(fp); in parseDataHeader() 1073 if (fseek(fp, pHeader->offsetToData - 16, SEEK_CUR) != 0) { in parseDataHeader()
|
/dalvik/vm/reflect/ |
D | Annotation.c | 1564 u4 hi = pDexFile->pHeader->methodIdsSize -1; in getMethodIdx() 1845 u4 hi = pDexFile->pHeader->fieldIdsSize -1; in getFieldIdx()
|