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) {
604 u4 mapOff = pDexFile->pHeader->mapOff;
609 return (const DexMapList*) (pDexFile->baseAddr + mapOff);
614 DEX_INLINE const char* dexGetStringData(const DexFile* pDexFile,
616 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff;
624 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) {
625 assert(idx < pDexFile->pHeader->stringIdsSize);
626 return &pDexFile->pStringIds[idx];
629 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) {
630 const DexStringId* pStringId = dexGetStringId(pDexFile, idx);
631 return dexGetStringData(pDexFile, pStringId);
636 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
640 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) {
641 assert(idx < pDexFile->pHeader->typeIdsSize);
642 return &pDexFile->pTypeIds[idx];
649 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) {
650 const DexTypeId* typeId = dexGetTypeId(pDexFile, idx);
651 return dexStringById(pDexFile, typeId->descriptorIdx);
655 DEX_INLINE const DexMethodId* dexGetMethodId(const DexFile* pDexFile, u4 idx) {
656 assert(idx < pDexFile->pHeader->methodIdsSize);
657 return &pDexFile->pMethodIds[idx];
661 DEX_INLINE const DexFieldId* dexGetFieldId(const DexFile* pDexFile, u4 idx) {
662 assert(idx < pDexFile->pHeader->fieldIdsSize);
663 return &pDexFile->pFieldIds[idx];
667 DEX_INLINE const DexProtoId* dexGetProtoId(const DexFile* pDexFile, u4 idx) {
668 assert(idx < pDexFile->pHeader->protoIdsSize);
669 return &pDexFile->pProtoIds[idx];
677 const DexFile *pDexFile, const DexProtoId* pProtoId) {
682 (pDexFile->baseAddr + pProtoId->parametersOff);
686 DEX_INLINE const DexClassDef* dexGetClassDef(const DexFile* pDexFile, u4 idx) {
687 assert(idx < pDexFile->pHeader->classDefsSize);
688 return &pDexFile->pClassDefs[idx];
692 DEX_INLINE u4 dexGetIndexForClassDef(const DexFile* pDexFile,
695 assert(pClassDef >= pDexFile->pClassDefs &&
696 pClassDef < pDexFile->pClassDefs + pDexFile->pHeader->classDefsSize);
697 return pClassDef - pDexFile->pClassDefs;
701 DEX_INLINE const DexTypeList* dexGetInterfacesList(const DexFile* pDexFile,
707 (pDexFile->baseAddr + pClassDef->interfacesOff);
724 const DexFile* pDexFile, const DexClassDef* pClassDef)
729 (pDexFile->baseAddr + pClassDef->staticValuesOff);
734 const DexFile* pDexFile, const DexClassDef* pClassDef)
739 (pDexFile->baseAddr + pClassDef->annotationsOff);
744 const DexFile* pDexFile, const DexClassDef* pClassDef)
748 return dexStringById(pDexFile, pClassDef->sourceFileIdx);
773 DEX_INLINE const u1* dexGetDebugInfoStream(const DexFile* pDexFile,
779 return pDexFile->baseAddr + pCode->debugInfoOff;
784 DEX_INLINE const char* dexGetClassDescriptor(const DexFile* pDexFile,
787 return dexStringByTypeIdx(pDexFile, pClassDef->classIdx);
791 DEX_INLINE const char* dexGetSuperClassDescriptor(const DexFile* pDexFile,
796 return dexStringByTypeIdx(pDexFile, pClassDef->superclassIdx);
800 DEX_INLINE const u1* dexGetClassData(const DexFile* pDexFile,
805 return (const u1*) (pDexFile->baseAddr + pClassDef->classDataOff);
810 const DexFile* pDexFile, u4 offset)
815 return (const DexAnnotationSetItem*) (pDexFile->baseAddr + offset);
819 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
821 return dexGetAnnotationSetItem(pDexFile, pAnnoDir->classAnnotationsOff);
826 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
836 DEX_INLINE int dexGetFieldAnnotationsSize(const DexFile* pDexFile,
844 const DexFile* pDexFile, const DexFieldAnnotationsItem* pItem)
846 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
851 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
866 DEX_INLINE int dexGetMethodAnnotationsSize(const DexFile* pDexFile,
874 const DexFile* pDexFile, const DexMethodAnnotationsItem* pItem)
876 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
881 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
897 DEX_INLINE int dexGetParameterAnnotationsSize(const DexFile* pDexFile,
905 const DexFile* pDexFile, const DexParameterAnnotationsItem* pItem)
910 return (const DexAnnotationSetRefList*) (pDexFile->baseAddr + pItem->annotationsOff);
914 DEX_INLINE int dexGetParameterAnnotationSetRefSize(const DexFile* pDexFile,
920 return dexGetParameterAnnotationSetRefList(pDexFile, pItem)->size;
933 const DexFile* pDexFile, const DexAnnotationSetRefItem* pItem)
935 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
948 const DexFile* pDexFile, const DexAnnotationSetItem* pAnnoSet, u4 idx)
954 return (const DexAnnotationItem*) (pDexFile->baseAddr + offset);