/dalvik/libdex/ |
D | DexFile.cpp | 229 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 …]
|
D | DexSwapVerify.cpp | 72 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 …]
|
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 | 505 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 …]
|
D | DexClass.cpp | 43 DexClassDataHeader *pHeader) { in dexReadAndVerifyClassDataHeader() argument 48 dexReadClassDataHeader(pData, pHeader); in dexReadAndVerifyClassDataHeader()
|
/dalvik/vm/ |
D | DvmDex.h | 42 const DexHeader* pHeader; member 110 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexGetResolvedString() 116 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexGetResolvedClass() 122 assert(methodIdx < pDvmDex->pHeader->methodIdsSize); in dvmDexGetResolvedMethod() 128 assert(fieldIdx < pDvmDex->pHeader->fieldIdsSize); in dvmDexGetResolvedField() 139 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexSetResolvedString() 145 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexSetResolvedClass() 151 assert(methodIdx < pDvmDex->pHeader->methodIdsSize); in dvmDexSetResolvedMethod() 157 assert(fieldIdx < pDvmDex->pHeader->fieldIdsSize); in dvmDexSetResolvedField()
|
D | DvmDex.cpp | 44 const DexHeader* pHeader; in allocateAuxStructures() local 47 pHeader = pDexFile->pHeader; in allocateAuxStructures() 49 stringSize = pHeader->stringIdsSize * sizeof(struct StringObject*); in allocateAuxStructures() 50 classSize = pHeader->typeIdsSize * sizeof(struct ClassObject*); in allocateAuxStructures() 51 methodSize = pHeader->methodIdsSize * sizeof(struct Method*); in allocateAuxStructures() 52 fieldSize = pHeader->fieldIdsSize * sizeof(struct Field*); in allocateAuxStructures() 66 pDvmDex->pHeader = pHeader; in allocateAuxStructures() 187 totalSize = pDvmDex->pHeader->stringIdsSize * sizeof(struct StringObject*); in dvmDexFileFree() 188 totalSize += pDvmDex->pHeader->typeIdsSize * sizeof(struct ClassObject*); in dvmDexFileFree() 189 totalSize += pDvmDex->pHeader->methodIdsSize * sizeof(struct Method*); in dvmDexFileFree() [all …]
|
/dalvik/dexdump/ |
D | DexDump.cpp | 395 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/vm/jdwp/ |
D | JdwpHandler.h | 41 void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader,
|
D | JdwpHandler.cpp | 1876 void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader, in dvmJdwpProcessRequest() argument 1882 if (pHeader->cmdSet != kJDWPDdmCmdSet) { in dvmJdwpProcessRequest() 1919 if (gHandlerMap[i].cmdSet == pHeader->cmdSet && in dvmJdwpProcessRequest() 1920 gHandlerMap[i].cmd == pHeader->cmd) in dvmJdwpProcessRequest() 1923 gHandlerMap[i].descr, pHeader->cmdSet, pHeader->cmd, in dvmJdwpProcessRequest() 1924 dataLen, pHeader->id); in dvmJdwpProcessRequest() 1931 pHeader->cmdSet, pHeader->cmd, dataLen, pHeader->id); in dvmJdwpProcessRequest() 1944 set4BE(replyBuf + 4, pHeader->id); in dvmJdwpProcessRequest() 1966 if (pHeader->cmdSet != kJDWPDdmCmdSet) { in dvmJdwpProcessRequest()
|
/dalvik/vm/analysis/ |
D | DexVerify.cpp | 404 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewInstance() 406 idx, pDvmDex->pHeader->typeIdsSize); in checkNewInstance() 429 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewArray() 431 idx, pDvmDex->pHeader->typeIdsSize); in checkNewArray() 463 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkTypeIndex() 465 idx, pDvmDex->pHeader->typeIdsSize); in checkTypeIndex() 477 if (idx >= pDvmDex->pHeader->fieldIdsSize) { in checkFieldIndex() 479 idx, pDvmDex->pHeader->fieldIdsSize); in checkFieldIndex() 491 if (idx >= pDvmDex->pHeader->methodIdsSize) { in checkMethodIndex() 493 idx, pDvmDex->pHeader->methodIdsSize); in checkMethodIndex() [all …]
|
D | DexPrepare.cpp | 56 static void updateChecksum(u1* addr, int len, DexHeader* pHeader); 626 DexHeader* pHeader = (DexHeader*)pDvmDex->pHeader; in dvmContinueOptimization() local 627 updateChecksum(dexAddr, dexLength, pHeader); in dvmContinueOptimization() 926 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses() 1003 u4 count = pDexFile->pHeader->classDefsSize; in verifyAndOptimizeClasses() 1138 return pDvmDex->pDexFile->pHeader->signature; in getSignature() 1553 static void updateChecksum(u1* addr, int len, DexHeader* pHeader) in updateChecksum() argument 1559 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum); in updateChecksum() 1562 pHeader->checksum = adler; in updateChecksum()
|
D | RegisterMap.cpp | 705 u4 count = pDexFile->pHeader->classDefsSize; in writeMapsAllClasses()
|
/dalvik/tools/dmtracedump/ |
D | TraceDump.c | 1069 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/vm/oo/ |
D | Class.cpp | 1728 const DexClassDef* pClassDef, const DexClassDataHeader* pHeader, in loadClassFromDex0() argument 1764 size_t size = classObjectSize(pHeader->staticFieldsSize); in loadClassFromDex0() 1825 if (pHeader->staticFieldsSize != 0) { in loadClassFromDex0() 1827 int count = (int) pHeader->staticFieldsSize; in loadClassFromDex0() 1838 if (pHeader->instanceFieldsSize != 0) { in loadClassFromDex0() 1839 int count = (int) pHeader->instanceFieldsSize; in loadClassFromDex0() 1875 pHeader->directMethodsSize + pHeader->virtualMethodsSize != numMethods) in loadClassFromDex0() 1878 newClass->descriptor, pHeader->directMethodsSize, in loadClassFromDex0() 1879 pHeader->virtualMethodsSize, numMethods); in loadClassFromDex0() 1887 if (pHeader->directMethodsSize != 0) { in loadClassFromDex0() [all …]
|
/dalvik/dexlist/ |
D | DexList.cpp | 229 for (i = 0; i < (int) pDexFile->pHeader->classDefsSize; i++) { in process()
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.cpp | 424 int count = pDexFile->pHeader->classDefsSize; in Dalvik_dalvik_system_DexFile_getClassNameList()
|
/dalvik/vm/reflect/ |
D | Annotation.cpp | 1598 u4 hi = pDexFile->pHeader->methodIdsSize -1; in getMethodIdx() 1908 u4 hi = pDexFile->pHeader->fieldIdsSize -1; in getFieldIdx()
|