Home
last modified time | relevance | path

Searched refs:pDexFile (Results 1 – 25 of 29) sorted by relevance

12

/dalvik/libdex/
DDexFile.h584 void dexFileFree(DexFile* pDexFile);
589 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile);
600 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data);
603 DEX_INLINE const DexMapList* dexGetMap(const DexFile* pDexFile) { in dexGetMap() argument
604 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap()
609 return (const DexMapList*) (pDexFile->baseAddr + mapOff); in dexGetMap()
614 DEX_INLINE const char* dexGetStringData(const DexFile* pDexFile, in dexGetStringData() argument
616 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexGetStringData()
624 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument
625 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId()
[all …]
DDexFile.cpp105 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById() argument
107 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringAndSizeById()
108 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById()
177 static void classLookupAdd(DexFile* pDexFile, DexClassLookup* pLookup, in classLookupAdd() argument
181 (const char*) (pDexFile->baseAddr + stringOff); in classLookupAdd()
183 (const DexClassDef*) (pDexFile->baseAddr + classDefOff); in classLookupAdd()
211 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile) in dexCreateClassLookup() argument
220 assert(pDexFile != NULL); in dexCreateClassLookup()
229 numEntries = dexRoundUpPower2(pDexFile->pHeader->classDefsSize * 2); in dexCreateClassLookup()
239 for (i = 0; i < (int)pDexFile->pHeader->classDefsSize; i++) { in dexCreateClassLookup()
[all …]
DDexProto.h88 const DexFile* pDexFile, const DexMethodId* pMethodId) in dexProtoSetFromMethodId() argument
90 pProto->dexFile = pDexFile; in dexProtoSetFromMethodId()
123 DEX_INLINE const char* dexGetDescriptorFromMethodId(const DexFile* pDexFile, in dexGetDescriptorFromMethodId() argument
128 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in dexGetDescriptorFromMethodId()
137 DEX_INLINE char* dexCopyDescriptorFromMethodId(const DexFile* pDexFile, in dexCopyDescriptorFromMethodId() argument
142 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in dexCopyDescriptorFromMethodId()
DDexDebugInfo.cpp84 static const char* readStringIdx(const DexFile* pDexFile, in readStringIdx() argument
92 return dexStringById(pDexFile, stringIdx - 1); in readStringIdx()
100 static const char* readTypeIdx(const DexFile* pDexFile, in readTypeIdx() argument
108 return dexStringByTypeIdx(pDexFile, typeIdx - 1); in readTypeIdx()
142 const DexFile* pDexFile, in dexDecodeDebugInfo0() argument
152 DexProto proto = { pDexFile, protoIdx }; in dexDecodeDebugInfo0()
189 name = readStringIdx(pDexFile, &stream); in dexDecodeDebugInfo0()
239 localInReg[reg].name = readStringIdx(pDexFile, &stream); in dexDecodeDebugInfo0()
240 localInReg[reg].descriptor = readTypeIdx(pDexFile, &stream); in dexDecodeDebugInfo0()
243 = readStringIdx(pDexFile, &stream); in dexDecodeDebugInfo0()
[all …]
DDexOptData.cpp49 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()
DDexOptData.h34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
DDexDebugInfo.h47 const DexFile* pDexFile,
DDexClass.h109 DEX_INLINE const DexCode* dexGetCode(const DexFile* pDexFile, in dexGetCode() argument
114 return (const DexCode*) (pDexFile->baseAddr + pDexMethod->codeOff); in dexGetCode()
DDexSwapVerify.cpp77 const DexFile* pDexFile; // set after intraitem verification member
235 const DexFieldId* field = dexGetFieldId(state->pDexFile, fieldIdx); in verifyFieldDefiner()
242 const DexMethodId* meth = dexGetMethodId(state->pDexFile, methodIdx); in verifyMethodDefiner()
568 const char* s0 = dexGetStringData(state->pDexFile, item0); in crossVerifyStringIdItem()
569 const char* s1 = dexGetStringData(state->pDexFile, item); in crossVerifyStringIdItem()
593 dexStringById(state->pDexFile, item->descriptorIdx); in crossVerifyTypeIdItem()
674 dexStringById(state->pDexFile, item->shortyIdx); in crossVerifyProtoIdItem()
682 dexStringByTypeIdx(state->pDexFile, item->returnTypeIdx), in crossVerifyProtoIdItem()
687 u4 protoIdx = item - state->pDexFile->pProtoIds; in crossVerifyProtoIdItem()
688 DexProto proto = { state->pDexFile, protoIdx }; in crossVerifyProtoIdItem()
[all …]
/dalvik/dexlist/
DDexList.cpp94 void dumpMethod(DexFile* pDexFile, const char* fileName, in dumpMethod() argument
107 pMethodId = dexGetMethodId(pDexFile, pDexMethod->methodIdx); in dumpMethod()
108 methodName = dexStringById(pDexFile, pMethodId->nameIdx); in dumpMethod()
110 classDescriptor = dexStringByTypeIdx(pDexFile, pMethodId->classIdx); in dumpMethod()
112 pCode = dexGetCode(pDexFile, pDexMethod); in dumpMethod()
128 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpMethod()
132 char* desc = dexCopyDescriptorFromMethodId(pDexFile, pMethodId); in dumpMethod()
155 void dumpClass(DexFile* pDexFile, int idx) in dumpClass() argument
163 pClassDef = dexGetClassDef(pDexFile, idx); in dumpClass()
164 pEncodedData = dexGetClassData(pDexFile, pClassDef); in dumpClass()
[all …]
/dalvik/dexdump/
DDexDump.cpp392 void dumpFileHeader(const DexFile* pDexFile) in dumpFileHeader() argument
394 const DexOptHeader* pOptHeader = pDexFile->pOptHeader; in dumpFileHeader()
395 const DexHeader* pHeader = pDexFile->pHeader; in dumpFileHeader()
456 void dumpOptDirectory(const DexFile* pDexFile) in dumpOptDirectory() argument
458 const DexOptHeader* pOptHeader = pDexFile->pOptHeader; in dumpOptDirectory()
505 void dumpClassDef(DexFile* pDexFile, int idx) in dumpClassDef() argument
511 pClassDef = dexGetClassDef(pDexFile, idx); in dumpClassDef()
512 pEncodedData = dexGetClassData(pDexFile, pClassDef); in dumpClassDef()
546 void dumpInterface(const DexFile* pDexFile, const DexTypeItem* pTypeItem, in dumpInterface() argument
550 dexStringByTypeIdx(pDexFile, pTypeItem->typeIdx); in dumpInterface()
[all …]
/dalvik/vm/
DDvmDex.cpp41 static DvmDex* allocateAuxStructures(DexFile* pDexFile) in allocateAuxStructures() argument
47 pHeader = pDexFile->pHeader; in allocateAuxStructures()
65 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures()
94 DexFile* pDexFile; in dvmDexFileOpenFromFd() local
112 pDexFile = dexFileParse((u1*)memMap.addr, memMap.length, parseFlags); in dvmDexFileOpenFromFd()
113 if (pDexFile == NULL) { in dvmDexFileOpenFromFd()
119 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenFromFd()
121 dexFileFree(pDexFile); in dvmDexFileOpenFromFd()
147 DexFile* pDexFile; in dvmDexFileOpenPartial() local
156 pDexFile = dexFileParse((u1*)addr, len, parseFlags); in dvmDexFileOpenPartial()
[all …]
DDvmDex.h39 DexFile* pDexFile; member
DDebugger.cpp1330 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile, in dvmDbgOutputLineTable()
1427 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile, in dvmDbgOutputVariableTable()
2883 const DexFile *pDexFile = method->clazz->pDvmDex->pDexFile; in dvmAddressSetForLine() local
2895 dexDecodeDebugInfo(pDexFile, dvmGetMethodCode(method), in dvmAddressSetForLine()
/dalvik/vm/reflect/
DAnnotation.cpp87 static const DexAnnotationsDirectoryItem* getAnnoDirectory(DexFile* pDexFile, in getAnnoDirectory() argument
96 pClassDef = dexFindClass(pDexFile, clazz->descriptor); in getAnnoDirectory()
98 return dexGetAnnotationsDirectoryItem(pDexFile, pClassDef); in getAnnoDirectory()
232 DexFile* pDexFile; in resolveAmbiguousMethod() local
243 pDexFile = referrer->pDvmDex->pDexFile; in resolveAmbiguousMethod()
244 pMethodId = dexGetMethodId(pDexFile, methodIdx); in resolveAmbiguousMethod()
258 name = dexStringById(pDexFile, pMethodId->nameIdx); in resolveAmbiguousMethod()
261 dexProtoSetFromMethodId(&proto, pDexFile, pMethodId); in resolveAmbiguousMethod()
335 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in processAnnotationValue()
427 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationValue() local
[all …]
/dalvik/vm/oo/
DResolve.cpp90 className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmResolveClass()
158 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmResolveClass()
188 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmResolveMethod()
203 const char* name = dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx); in dvmResolveMethod()
205 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmResolveMethod()
292 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmResolveInterfaceMethod()
331 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx); in dvmResolveInterfaceMethod()
334 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmResolveInterfaceMethod()
392 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ifieldIdx); in dvmResolveInstField()
404 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmResolveInstField()
[all …]
DClass.cpp788 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass()
804 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass()
835 dexFindClass(gDvm.bootClassPathOptExtra->pDexFile, descriptor); in searchBootPathForClass()
1482 pDvmDex->pDexFile); in findClassNoInit()
1520 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in findClassNoInit()
1732 const DexFile* pDexFile; in loadClassFromDex0() local
1736 pDexFile = pDvmDex->pDexFile; in loadClassFromDex0()
1737 descriptor = dexGetClassDescriptor(pDexFile, pClassDef); in loadClassFromDex0()
1801 pInterfacesList = dexGetInterfacesList(pDexFile, pClassDef); in loadClassFromDex0()
1865 u4 classDefIdx = dexGetIndexForClassDef(pDexFile, pClassDef); in loadClassFromDex0()
[all …]
/dalvik/vm/analysis/
DOptimize.cpp448 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmOptResolveClass()
459 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmOptResolveClass()
527 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ifieldIdx); in dvmOptResolveInstField()
541 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmOptResolveInstField()
542 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveInstField()
546 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField()
554 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField()
600 pFieldId = dexGetFieldId(pDvmDex->pDexFile, sfieldIdx); in dvmOptResolveStaticField()
614 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx); in dvmOptResolveStaticField()
617 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveStaticField()
[all …]
DDexPrepare.cpp52 static void verifyAndOptimizeClasses(DexFile* pDexFile, bool doVerify,
54 static void verifyAndOptimizeClass(DexFile* pDexFile, ClassObject* clazz,
775 (*ppDvmDex)->pDexFile->pClassLookup = pClassLookup; in dvmPrepareDexInMemory()
823 pClassLookup = dexCreateClassLookup(pDvmDex->pDexFile); in rewriteDex()
826 pDvmDex->pDexFile->pClassLookup = pClassLookup; in rewriteDex()
864 verifyAndOptimizeClasses(pDvmDex->pDexFile, doVerify, doOpt); in rewriteDex()
888 pDvmDex->pDexFile->pClassLookup = NULL; in rewriteDex()
926 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses()
966 pClassDef = dexGetClassDef(pDvmDex->pDexFile, idx); in loadAllClasses()
968 dexStringByTypeIdx(pDvmDex->pDexFile, pClassDef->classIdx); in loadAllClasses()
[all …]
DRegisterMap.h193 const void* dvmRegisterMapGetClassData(const DexFile* pDexFile, u4 classIdx,
DRegisterMap.cpp704 DexFile* pDexFile = pDvmDex->pDexFile; in writeMapsAllClasses() local
705 u4 count = pDexFile->pHeader->classDefsSize; in writeMapsAllClasses()
728 pClassDef = dexGetClassDef(pDexFile, idx); in writeMapsAllClasses()
729 classDescriptor = dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in writeMapsAllClasses()
841 const void* dvmRegisterMapGetClassData(const DexFile* pDexFile, u4 classIdx, in dvmRegisterMapGetClassData() argument
847 pClassPool = (const RegisterMapClassPool*) pDexFile->pRegisterMapPool; in dvmRegisterMapGetClassData()
DCodeVerify.cpp1126 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; in verifyInvocationArgs() local
1128 const DexMethodId* pMethodId = dexGetMethodId(pDexFile, pDecInsn->vB); in verifyInvocationArgs()
1129 const char* methodName = dexStringById(pDexFile, pMethodId->nameIdx); in verifyInvocationArgs()
1130 char* methodDesc = dexCopyDescriptorFromMethodId(pDexFile, pMethodId); in verifyInvocationArgs()
1131 const char* classDescriptor = dexStringByTypeIdx(pDexFile, pMethodId->classIdx); in verifyInvocationArgs()
2766 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; in getStaticField() local
2769 pFieldId = dexGetFieldId(pDexFile, fieldIdx); in getStaticField()
2772 dexStringById(pDexFile, pFieldId->nameIdx), in getStaticField()
2773 dexStringByTypeIdx(pDexFile, pFieldId->classIdx)); in getStaticField()
2917 DexFile* pDexFile; in getCaughtExceptionType() local
[all …]
DDexVerify.cpp410 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewInstance()
435 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewArray()
/dalvik/vm/native/
Ddalvik_system_DexFile.cpp422 DexFile* pDexFile = pDvmDex->pDexFile; in Dalvik_dalvik_system_DexFile_getClassNameList() local
424 int count = pDexFile->pHeader->classDefsSize; in Dalvik_dalvik_system_DexFile_getClassNameList()
438 const DexClassDef* pClassDef = dexGetClassDef(pDexFile, i); in Dalvik_dalvik_system_DexFile_getClassNameList()
440 dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in Dalvik_dalvik_system_DexFile_getClassNameList()
/dalvik/vm/interp/
DInterp.cpp968 DexFile* pDexFile = method->clazz->pDexFile; in dvmDumpRegs()
970 int localsSize = dexGetLocalsSize(pDexFile, pDexCode); in dvmDumpRegs()
971 const DexLocal* locals = dvmDexGetLocals(pDexFile, pDexCode); in dvmDumpRegs()
1323 const DexFieldId* pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in classNameFromIndex()
1327 const DexMethodId* pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in classNameFromIndex()
1331 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, ref); in classNameFromIndex()
1356 const DexFieldId* pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in fieldNameFromIndex()
1357 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->classIdx); in fieldNameFromIndex()
1358 const char* fieldName = dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx); in fieldNameFromIndex()
1381 const DexMethodId* pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in methodNameFromIndex()
[all …]

12