Home
last modified time | relevance | path

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

/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()
459 void dumpOptDirectory(const DexFile* pDexFile) in dumpOptDirectory() argument
461 const DexOptHeader* pOptHeader = pDexFile->pOptHeader; in dumpOptDirectory()
508 void dumpClassDef(DexFile* pDexFile, int idx) in dumpClassDef() argument
514 pClassDef = dexGetClassDef(pDexFile, idx); in dumpClassDef()
515 pEncodedData = dexGetClassData(pDexFile, pClassDef); in dumpClassDef()
549 void dumpInterface(const DexFile* pDexFile, const DexTypeItem* pTypeItem, in dumpInterface() argument
553 dexStringByTypeIdx(pDexFile, pTypeItem->typeIdx); in dumpInterface()
[all …]