Lines Matching refs:pDexFile
621 void dexFileFree(DexFile* pDexFile);
626 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile);
637 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data);
640 DEX_INLINE const DexMapList* dexGetMap(const DexFile* pDexFile) { in dexGetMap() argument
641 u4 mapOff = pDexFile->pHeader->mapOff; in dexGetMap()
646 return (const DexMapList*) (pDexFile->baseAddr + mapOff); in dexGetMap()
651 DEX_INLINE const char* dexGetStringData(const DexFile* pDexFile, in dexGetStringData() argument
653 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexGetStringData()
661 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument
662 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId()
663 return &pDexFile->pStringIds[idx]; in dexGetStringId()
666 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { in dexStringById() argument
667 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringById()
668 return dexGetStringData(pDexFile, pStringId); in dexStringById()
673 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
677 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { in dexGetTypeId() argument
678 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId()
679 return &pDexFile->pTypeIds[idx]; in dexGetTypeId()
686 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) { in dexStringByTypeIdx() argument
687 const DexTypeId* typeId = dexGetTypeId(pDexFile, idx); in dexStringByTypeIdx()
688 return dexStringById(pDexFile, typeId->descriptorIdx); in dexStringByTypeIdx()
692 DEX_INLINE const DexMethodId* dexGetMethodId(const DexFile* pDexFile, u4 idx) { in dexGetMethodId() argument
693 assert(idx < pDexFile->pHeader->methodIdsSize); in dexGetMethodId()
694 return &pDexFile->pMethodIds[idx]; in dexGetMethodId()
698 DEX_INLINE const DexFieldId* dexGetFieldId(const DexFile* pDexFile, u4 idx) { in dexGetFieldId() argument
699 assert(idx < pDexFile->pHeader->fieldIdsSize); in dexGetFieldId()
700 return &pDexFile->pFieldIds[idx]; in dexGetFieldId()
704 DEX_INLINE const DexProtoId* dexGetProtoId(const DexFile* pDexFile, u4 idx) { in dexGetProtoId() argument
705 assert(idx < pDexFile->pHeader->protoIdsSize); in dexGetProtoId()
706 return &pDexFile->pProtoIds[idx]; in dexGetProtoId()
714 const DexFile *pDexFile, const DexProtoId* pProtoId) { in dexGetProtoParameters() argument
719 (pDexFile->baseAddr + pProtoId->parametersOff); in dexGetProtoParameters()
723 DEX_INLINE const DexClassDef* dexGetClassDef(const DexFile* pDexFile, u4 idx) { in dexGetClassDef() argument
724 assert(idx < pDexFile->pHeader->classDefsSize); in dexGetClassDef()
725 return &pDexFile->pClassDefs[idx]; in dexGetClassDef()
729 DEX_INLINE u4 dexGetIndexForClassDef(const DexFile* pDexFile, in dexGetIndexForClassDef() argument
732 assert(pClassDef >= pDexFile->pClassDefs && in dexGetIndexForClassDef()
733 pClassDef < pDexFile->pClassDefs + pDexFile->pHeader->classDefsSize); in dexGetIndexForClassDef()
734 return pClassDef - pDexFile->pClassDefs; in dexGetIndexForClassDef()
738 DEX_INLINE const DexTypeList* dexGetInterfacesList(const DexFile* pDexFile, in dexGetInterfacesList() argument
744 (pDexFile->baseAddr + pClassDef->interfacesOff); in dexGetInterfacesList()
761 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetStaticValuesList() argument
766 (pDexFile->baseAddr + pClassDef->staticValuesOff); in dexGetStaticValuesList()
771 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetAnnotationsDirectoryItem() argument
776 (pDexFile->baseAddr + pClassDef->annotationsOff); in dexGetAnnotationsDirectoryItem()
781 const DexFile* pDexFile, const DexClassDef* pClassDef) in dexGetSourceFile() argument
785 return dexStringById(pDexFile, pClassDef->sourceFileIdx); in dexGetSourceFile()
810 DEX_INLINE const u1* dexGetDebugInfoStream(const DexFile* pDexFile, in dexGetDebugInfoStream() argument
816 return pDexFile->baseAddr + pCode->debugInfoOff; in dexGetDebugInfoStream()
821 DEX_INLINE const char* dexGetClassDescriptor(const DexFile* pDexFile, in dexGetClassDescriptor() argument
824 return dexStringByTypeIdx(pDexFile, pClassDef->classIdx); in dexGetClassDescriptor()
828 DEX_INLINE const char* dexGetSuperClassDescriptor(const DexFile* pDexFile, in dexGetSuperClassDescriptor() argument
833 return dexStringByTypeIdx(pDexFile, pClassDef->superclassIdx); in dexGetSuperClassDescriptor()
837 DEX_INLINE const u1* dexGetClassData(const DexFile* pDexFile, in dexGetClassData() argument
842 return (const u1*) (pDexFile->baseAddr + pClassDef->classDataOff); in dexGetClassData()
847 const DexFile* pDexFile, u4 offset) in dexGetAnnotationSetItem() argument
852 return (const DexAnnotationSetItem*) (pDexFile->baseAddr + offset); in dexGetAnnotationSetItem()
856 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetClassAnnotationSet() argument
858 return dexGetAnnotationSetItem(pDexFile, pAnnoDir->classAnnotationsOff); in dexGetClassAnnotationSet()
863 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetFieldAnnotations() argument
865 (void) pDexFile; in dexGetFieldAnnotations()
874 DEX_INLINE int dexGetFieldAnnotationsSize(const DexFile* pDexFile, in dexGetFieldAnnotationsSize() argument
877 (void) pDexFile; in dexGetFieldAnnotationsSize()
883 const DexFile* pDexFile, const DexFieldAnnotationsItem* pItem) in dexGetFieldAnnotationSetItem() argument
885 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetFieldAnnotationSetItem()
890 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetMethodAnnotations() argument
892 (void) pDexFile; in dexGetMethodAnnotations()
906 DEX_INLINE int dexGetMethodAnnotationsSize(const DexFile* pDexFile, in dexGetMethodAnnotationsSize() argument
909 (void) pDexFile; in dexGetMethodAnnotationsSize()
915 const DexFile* pDexFile, const DexMethodAnnotationsItem* pItem) in dexGetMethodAnnotationSetItem() argument
917 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetMethodAnnotationSetItem()
922 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir) in dexGetParameterAnnotations() argument
924 (void) pDexFile; in dexGetParameterAnnotations()
939 DEX_INLINE int dexGetParameterAnnotationsSize(const DexFile* pDexFile, in dexGetParameterAnnotationsSize() argument
942 (void) pDexFile; in dexGetParameterAnnotationsSize()
948 const DexFile* pDexFile, const DexParameterAnnotationsItem* pItem) in dexGetParameterAnnotationSetRefList() argument
953 return (const DexAnnotationSetRefList*) (pDexFile->baseAddr + pItem->annotationsOff); in dexGetParameterAnnotationSetRefList()
957 DEX_INLINE int dexGetParameterAnnotationSetRefSize(const DexFile* pDexFile, in dexGetParameterAnnotationSetRefSize() argument
963 return dexGetParameterAnnotationSetRefList(pDexFile, pItem)->size; in dexGetParameterAnnotationSetRefSize()
976 const DexFile* pDexFile, const DexAnnotationSetRefItem* pItem) in dexGetSetRefItemItem() argument
978 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff); in dexGetSetRefItemItem()
991 const DexFile* pDexFile, const DexAnnotationSetItem* pAnnoSet, u4 idx) in dexGetAnnotationItem() argument
997 return (const DexAnnotationItem*) (pDexFile->baseAddr + offset); in dexGetAnnotationItem()