Lines Matching refs:pDexFile
584 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()
626 return &pDexFile->pStringIds[idx]; in dexGetStringId()
629 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { in dexStringById() argument
630 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringById()
631 return dexGetStringData(pDexFile, pStringId); in dexStringById()
636 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
640 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { in dexGetTypeId() argument
641 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId()
642 return &pDexFile->pTypeIds[idx]; in dexGetTypeId()
649 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) { in dexStringByTypeIdx() argument
650 const DexTypeId* typeId = dexGetTypeId(pDexFile, idx); in dexStringByTypeIdx()
651 return dexStringById(pDexFile, typeId->descriptorIdx); in dexStringByTypeIdx()
655 DEX_INLINE const DexMethodId* dexGetMethodId(const DexFile* pDexFile, u4 idx) { in dexGetMethodId() argument
656 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId()
657 return &pDexFile->pMethodIds[idx]; in dexGetMethodId()
661 DEX_INLINE const DexFieldId* dexGetFieldId(const DexFile* pDexFile, u4 idx) { in dexGetFieldId() argument
662 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId()
663 return &pDexFile->pFieldIds[idx]; in dexGetFieldId()
667 DEX_INLINE const DexProtoId* dexGetProtoId(const DexFile* pDexFile, u4 idx) { in dexGetProtoId() argument
668 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId()
669 return &pDexFile->pProtoIds[idx]; in dexGetProtoId()
677 const DexFile *pDexFile, const DexProtoId* pProtoId) { in dexGetProtoParameters() argument
682 (pDexFile->baseAddr + pProtoId->parametersOff); in dexGetProtoParameters()
686 DEX_INLINE const DexClassDef* dexGetClassDef(const DexFile* pDexFile, u4 idx) { in dexGetClassDef() argument
687 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef()
688 return &pDexFile->pClassDefs[idx]; in dexGetClassDef()
692 DEX_INLINE u4 dexGetIndexForClassDef(const DexFile* pDexFile, in dexGetIndexForClassDef() argument
695 assert(pClassDef >= pDexFile->pClassDefs && in dexGetIndexForClassDef()
696 pClassDef < pDexFile->pClassDefs + pDexFile->pHeader->classDefsSize); in dexGetIndexForClassDef()
697 return pClassDef - pDexFile->pClassDefs; in dexGetIndexForClassDef()
701 DEX_INLINE const DexTypeList* dexGetInterfacesList(const DexFile* pDexFile, in dexGetInterfacesList() argument
707 (pDexFile->baseAddr + pClassDef->interfacesOff); in dexGetInterfacesList()
724 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetStaticValuesList() argument
729 (pDexFile->baseAddr + pClassDef->staticValuesOff); in dexGetStaticValuesList()
734 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetAnnotationsDirectoryItem() argument
739 (pDexFile->baseAddr + pClassDef->annotationsOff); in dexGetAnnotationsDirectoryItem()
744 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetSourceFile() argument
748 return dexStringById(pDexFile, pClassDef->sourceFileIdx); in dexGetSourceFile()
773 DEX_INLINE const u1* dexGetDebugInfoStream(const DexFile* pDexFile, in dexGetDebugInfoStream() argument
779 return pDexFile->baseAddr + pCode->debugInfoOff; in dexGetDebugInfoStream()
784 DEX_INLINE const char* dexGetClassDescriptor(const DexFile* pDexFile, in dexGetClassDescriptor() argument
787 return dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in dexGetClassDescriptor()
791 DEX_INLINE const char* dexGetSuperClassDescriptor(const DexFile* pDexFile, in dexGetSuperClassDescriptor() argument
796 return dexStringByTypeIdx(pDexFile, pClassDef->superclassIdx); in dexGetSuperClassDescriptor()
800 DEX_INLINE const u1* dexGetClassData(const DexFile* pDexFile, in dexGetClassData() argument
805 return (const u1*) (pDexFile->baseAddr + pClassDef->classDataOff); in dexGetClassData()
810 const DexFile* pDexFile, u4 offset) in dexGetAnnotationSetItem() argument
812 return (const DexAnnotationSetItem*) (pDexFile->baseAddr + offset); in dexGetAnnotationSetItem()
816 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetClassAnnotationSet() argument
820 return dexGetAnnotationSetItem(pDexFile, pAnnoDir->classAnnotationsOff); in dexGetClassAnnotationSet()
825 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetFieldAnnotations() argument
835 DEX_INLINE int dexGetFieldAnnotationsSize(const DexFile* pDexFile, in dexGetFieldAnnotationsSize() argument
843 const DexFile* pDexFile, const DexFieldAnnotationsItem* pItem) in dexGetFieldAnnotationSetItem() argument
845 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetFieldAnnotationSetItem()
850 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetMethodAnnotations() argument
865 DEX_INLINE int dexGetMethodAnnotationsSize(const DexFile* pDexFile, in dexGetMethodAnnotationsSize() argument
873 const DexFile* pDexFile, const DexMethodAnnotationsItem* pItem) in dexGetMethodAnnotationSetItem() argument
875 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetMethodAnnotationSetItem()
880 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetParameterAnnotations() argument
896 DEX_INLINE int dexGetParameterAnnotationsSize(const DexFile* pDexFile, in dexGetParameterAnnotationsSize() argument
904 const DexFile* pDexFile, const DexParameterAnnotationsItem* pItem) in dexGetParameterAnnotationSetRefList() argument
907 (pDexFile->baseAddr + pItem->annotationsOff); in dexGetParameterAnnotationSetRefList()
911 DEX_INLINE int dexGetParameterAnnotationSetRefSize(const DexFile* pDexFile, in dexGetParameterAnnotationSetRefSize() argument
916 return dexGetParameterAnnotationSetRefList(pDexFile, pItem)->size; in dexGetParameterAnnotationSetRefSize()
929 const DexFile* pDexFile, const DexAnnotationSetRefItem* pItem) in dexGetSetRefItemItem() argument
931 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetSetRefItemItem()
944 const DexFile* pDexFile, const DexAnnotationSetItem* pAnnoSet, u4 idx) in dexGetAnnotationItem() argument
947 (pDexFile->baseAddr + dexGetAnnotationOff(pAnnoSet, idx)); in dexGetAnnotationItem()