/dalvik/libdex/ |
D | DexFile.h | 557 void dexFileFree(DexFile* pDexFile); 562 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile); 573 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data); 576 DEX_INLINE const DexMapList* dexGetMap(const DexFile* pDexFile) { in dexGetMap() argument 577 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap() 582 return (const DexMapList*) (pDexFile->baseAddr + mapOff); in dexGetMap() 587 DEX_INLINE const char* dexGetStringData(const DexFile* pDexFile, in dexGetStringData() argument 589 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexGetStringData() 597 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument 598 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId() [all …]
|
D | DexFile.c | 285 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById() argument 287 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringAndSizeById() 288 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById() 357 static void classLookupAdd(DexFile* pDexFile, DexClassLookup* pLookup, in classLookupAdd() argument 361 (const char*) (pDexFile->baseAddr + stringOff); in classLookupAdd() 363 (const DexClassDef*) (pDexFile->baseAddr + classDefOff); in classLookupAdd() 409 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile) in dexCreateClassLookup() argument 418 assert(pDexFile != NULL); in dexCreateClassLookup() 427 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup() 437 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup() [all …]
|
D | DexProto.h | 82 const DexFile* pDexFile, const DexMethodId* pMethodId) in dexProtoSetFromMethodId() argument 84 pProto->dexFile = pDexFile; in dexProtoSetFromMethodId() 117 DEX_INLINE const char* dexGetDescriptorFromMethodId(const DexFile* pDexFile, in dexGetDescriptorFromMethodId() argument 122 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in dexGetDescriptorFromMethodId() 131 DEX_INLINE char* dexCopyDescriptorFromMethodId(const DexFile* pDexFile, in dexCopyDescriptorFromMethodId() argument 136 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in dexCopyDescriptorFromMethodId()
|
D | DexOptData.c | 49 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile) in dexParseOptData() argument 51 const void* pOptStart = data + pDexFile->pOptHeader->optOffset; in dexParseOptData() 109 pDexFile->pClassLookup = (const DexClassLookup*) pOptData; in dexParseOptData() 113 pDexFile->pRegisterMapPool = pOptData; in dexParseOptData()
|
D | DexOptData.h | 34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
|
D | DexSwapVerify.c | 76 const DexFile* pDexFile; // set after intraitem verification member 234 const DexFieldId* field = dexGetFieldId(state->pDexFile, fieldIdx); in verifyFieldDefiner() 241 const DexMethodId* meth = dexGetMethodId(state->pDexFile, methodIdx); in verifyMethodDefiner() 567 const char* s0 = dexGetStringData(state->pDexFile, item0); in crossVerifyStringIdItem() 568 const char* s1 = dexGetStringData(state->pDexFile, item); in crossVerifyStringIdItem() 592 dexStringById(state->pDexFile, item->descriptorIdx); in crossVerifyTypeIdItem() 673 dexStringById(state->pDexFile, item->shortyIdx); in crossVerifyProtoIdItem() 681 dexStringByTypeIdx(state->pDexFile, item->returnTypeIdx), in crossVerifyProtoIdItem() 686 u4 protoIdx = item - state->pDexFile->pProtoIds; in crossVerifyProtoIdItem() 687 DexProto proto = { state->pDexFile, protoIdx }; in crossVerifyProtoIdItem() [all …]
|
D | DexClass.h | 109 DEX_INLINE const DexCode* dexGetCode(const DexFile* pDexFile, in dexGetCode() argument 114 return (const DexCode*) (pDexFile->baseAddr + pDexMethod->codeOff); in dexGetCode()
|
/dalvik/dexlist/ |
D | DexList.c | 91 void dumpMethod(DexFile* pDexFile, const char* fileName, in dumpMethod() argument 104 pMethodId = dexGetMethodId(pDexFile, pDexMethod->methodIdx); in dumpMethod() 105 methodName = dexStringById(pDexFile, pMethodId->nameIdx); in dumpMethod() 107 classDescriptor = dexStringByTypeIdx(pDexFile, pMethodId->classIdx); in dumpMethod() 109 pCode = dexGetCode(pDexFile, pDexMethod); in dumpMethod() 125 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpMethod() 129 char* desc = dexCopyDescriptorFromMethodId(pDexFile, pMethodId); in dumpMethod() 152 void dumpClass(DexFile* pDexFile, int idx) in dumpClass() argument 160 pClassDef = dexGetClassDef(pDexFile, idx); in dumpClass() 161 pEncodedData = dexGetClassData(pDexFile, pClassDef); in dumpClass() [all …]
|
/dalvik/dexdump/ |
D | DexDump.c | 390 void dumpFileHeader(const DexFile* pDexFile) in dumpFileHeader() argument 392 const DexOptHeader* pOptHeader = pDexFile->pOptHeader; in dumpFileHeader() 393 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader() 454 void dumpOptDirectory(const DexFile* pDexFile) in dumpOptDirectory() argument 456 const DexOptHeader* pOptHeader = pDexFile->pOptHeader; in dumpOptDirectory() 503 void dumpClassDef(DexFile* pDexFile, int idx) in dumpClassDef() argument 509 pClassDef = dexGetClassDef(pDexFile, idx); in dumpClassDef() 510 pEncodedData = dexGetClassData(pDexFile, pClassDef); in dumpClassDef() 544 void dumpInterface(const DexFile* pDexFile, const DexTypeItem* pTypeItem, in dumpInterface() argument 548 dexStringByTypeIdx(pDexFile, pTypeItem->typeIdx); in dumpInterface() [all …]
|
/dalvik/vm/ |
D | DvmDex.c | 40 static DvmDex* allocateAuxStructures(DexFile* pDexFile) in allocateAuxStructures() argument 50 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures() 51 pDvmDex->pHeader = pDexFile->pHeader; in allocateAuxStructures() 106 DexFile* pDexFile; in dvmDexFileOpenFromFd() local 124 pDexFile = dexFileParse(memMap.addr, memMap.length, parseFlags); in dvmDexFileOpenFromFd() 125 if (pDexFile == NULL) { in dvmDexFileOpenFromFd() 131 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenFromFd() 133 dexFileFree(pDexFile); in dvmDexFileOpenFromFd() 158 DexFile* pDexFile; in dvmDexFileOpenPartial() local 167 pDexFile = dexFileParse(addr, len, parseFlags); in dvmDexFileOpenPartial() [all …]
|
D | DvmDex.h | 39 DexFile* pDexFile; member
|
D | Debugger.c | 1383 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile, in dvmDbgOutputLineTable() 1480 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile, in dvmDbgOutputVariableTable() 2987 const DexFile *pDexFile = method->clazz->pDvmDex->pDexFile; in dvmAddressSetForLine() local 2999 dexDecodeDebugInfo(pDexFile, dvmGetMethodCode(method), in dvmAddressSetForLine()
|
/dalvik/vm/reflect/ |
D | Annotation.c | 148 static const DexAnnotationsDirectoryItem* getAnnoDirectory(DexFile* pDexFile, in getAnnoDirectory() argument 157 pClassDef = dexFindClass(pDexFile, clazz->descriptor); in getAnnoDirectory() 159 return dexGetAnnotationsDirectoryItem(pDexFile, pClassDef); in getAnnoDirectory() 293 DexFile* pDexFile; in resolveAmbiguousMethod() local 304 pDexFile = referrer->pDvmDex->pDexFile; in resolveAmbiguousMethod() 305 pMethodId = dexGetMethodId(pDexFile, methodIdx); in resolveAmbiguousMethod() 319 name = dexStringById(pDexFile, pMethodId->nameIdx); in resolveAmbiguousMethod() 322 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in resolveAmbiguousMethod() 396 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in processAnnotationValue() 488 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationValue() local [all …]
|
/dalvik/vm/oo/ |
D | Resolve.c | 90 className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmResolveClass() 158 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmResolveClass() 188 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmResolveMethod() 204 const char* name = dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx); in dvmResolveMethod() 206 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmResolveMethod() 294 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmResolveInterfaceMethod() 334 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx); in dvmResolveInterfaceMethod() 337 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmResolveInterfaceMethod() 408 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ifieldIdx); in dvmResolveInstField() 420 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmResolveInstField() [all …]
|
D | Class.c | 675 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass() 691 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass() 722 dexFindClass(gDvm.bootClassPathOptExtra->pDexFile, descriptor); in searchBootPathForClass() 1382 pDvmDex->pDexFile); in findClassNoInit() 1419 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in findClassNoInit() 1652 const DexFile* pDexFile; in loadClassFromDex0() local 1656 pDexFile = pDvmDex->pDexFile; in loadClassFromDex0() 1657 descriptor = dexGetClassDescriptor(pDexFile, pClassDef); in loadClassFromDex0() 1721 pInterfacesList = dexGetInterfacesList(pDexFile, pClassDef); in loadClassFromDex0() 1785 u4 classDefIdx = dexGetIndexForClassDef(pDexFile, pClassDef); in loadClassFromDex0() [all …]
|
/dalvik/vm/analysis/ |
D | Optimize.c | 409 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmOptResolveClass() 420 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmOptResolveClass() 488 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ifieldIdx); in dvmOptResolveInstField() 502 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmOptResolveInstField() 503 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveInstField() 507 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField() 515 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField() 561 pFieldId = dexGetFieldId(pDvmDex->pDexFile, sfieldIdx); in dvmOptResolveStaticField() 575 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmOptResolveStaticField() 576 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveStaticField() [all …]
|
D | DexVerify.h | 42 bool dvmVerifyAllClasses(DexFile* pDexFile);
|
D | DexPrepare.c | 48 static void verifyAndOptimizeClasses(DexFile* pDexFile, bool doVerify, 50 static void verifyAndOptimizeClass(DexFile* pDexFile, ClassObject* clazz, 735 *ppClassLookup = dexCreateClassLookup(pDvmDex->pDexFile); in rewriteDex() 749 pDvmDex->pDexFile->pClassLookup = *ppClassLookup; in rewriteDex() 768 verifyAndOptimizeClasses(pDvmDex->pDexFile, doVerify, doOpt); in rewriteDex() 812 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses() 838 pClassDef = dexGetClassDef(pDvmDex->pDexFile, idx); in loadAllClasses() 840 dexStringByTypeIdx(pDvmDex->pDexFile, pClassDef->classIdx); in loadAllClasses() 872 static void verifyAndOptimizeClasses(DexFile* pDexFile, bool doVerify, in verifyAndOptimizeClasses() argument 875 u4 count = pDexFile->pHeader->classDefsSize; in verifyAndOptimizeClasses() [all …]
|
D | RegisterMap.c | 702 DexFile* pDexFile = pDvmDex->pDexFile; in writeMapsAllClasses() local 703 u4 count = pDexFile->pHeader->classDefsSize; in writeMapsAllClasses() 726 pClassDef = dexGetClassDef(pDexFile, idx); in writeMapsAllClasses() 727 classDescriptor = dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in writeMapsAllClasses() 839 const void* dvmRegisterMapGetClassData(const DexFile* pDexFile, u4 classIdx, in dvmRegisterMapGetClassData() argument 845 pClassPool = (const RegisterMapClassPool*) pDexFile->pRegisterMapPool; in dvmRegisterMapGetClassData() 2363 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; 2369 pMethodId = dexGetMethodId(pDexFile, pDecInsn->vB); 2370 methodName = dexStringById(pDexFile, pMethodId->nameIdx); 2371 methodDesc = dexCopyDescriptorFromMethodId(pDexFile, pMethodId); [all …]
|
D | RegisterMap.h | 193 const void* dvmRegisterMapGetClassData(const DexFile* pDexFile, u4 classIdx,
|
D | CodeVerify.c | 1064 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; in verifyInvocationArgs() local 1070 pMethodId = dexGetMethodId(pDexFile, pDecInsn->vB); in verifyInvocationArgs() 1071 methodName = dexStringById(pDexFile, pMethodId->nameIdx); in verifyInvocationArgs() 1072 methodDesc = dexCopyDescriptorFromMethodId(pDexFile, pMethodId); in verifyInvocationArgs() 1073 classDescriptor = dexStringByTypeIdx(pDexFile, pMethodId->classIdx); in verifyInvocationArgs() 2583 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; in getStaticField() local 2586 pFieldId = dexGetFieldId(pDexFile, fieldIdx); in getStaticField() 2589 dexStringById(pDexFile, pFieldId->nameIdx), in getStaticField() 2590 dexStringByTypeIdx(pDexFile, pFieldId->classIdx)); in getStaticField() 2731 DexFile* pDexFile; in getCaughtExceptionType() local [all …]
|
D | DexVerify.c | 313 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewInstance() 343 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewArray()
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.c | 336 DexFile* pDexFile; in Dalvik_dalvik_system_DexFile_getClassNameList() local 348 pDexFile = pDvmDex->pDexFile; in Dalvik_dalvik_system_DexFile_getClassNameList() 350 int count = pDexFile->pHeader->classDefsSize; in Dalvik_dalvik_system_DexFile_getClassNameList() 362 const DexClassDef* pClassDef = dexGetClassDef(pDexFile, i); in Dalvik_dalvik_system_DexFile_getClassNameList() 364 dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in Dalvik_dalvik_system_DexFile_getClassNameList()
|
D | java_lang_Class.c | 387 const DexFile* pDexFile = clazz->pDexFile; in Dalvik_java_lang_Class_getNameNative() 391 pDexFile = clazz->pDexFile; in Dalvik_java_lang_Class_getNameNative() 392 pClassDef = dvmDexFindClass(pDexFile, clazz->descriptor); in Dalvik_java_lang_Class_getNameNative() 393 pClassId = dvmDexGetClassId(pDexFile, pClassDef->classIdx); in Dalvik_java_lang_Class_getNameNative() 394 nameObj = dvmDexGetResolvedString(pDexFile, pClassId->nameIdx); in Dalvik_java_lang_Class_getNameNative()
|
/dalvik/vm/interp/ |
D | Interp.c | 685 DexFile* pDexFile = method->clazz->pDexFile; in dvmDumpRegs() 687 int localsSize = dexGetLocalsSize(pDexFile, pDexCode); in dvmDumpRegs() 688 const DexLocal* locals = dvmDexGetLocals(pDexFile, pDexCode); in dvmDumpRegs() 1046 const DexFieldId* pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in classNameFromIndex() 1050 const DexMethodId* pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in classNameFromIndex() 1054 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, ref); in classNameFromIndex() 1088 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in fieldNameFromIndex() 1089 className = dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->classIdx); in fieldNameFromIndex() 1090 fieldName = dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx); in fieldNameFromIndex() 1121 pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in methodNameFromIndex() [all …]
|