Lines Matching refs:pDexFile

557 void dexFileFree(DexFile* pDexFile);
562 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile);
573 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data);
576 DEX_INLINE const DexMapList* dexGetMap(const DexFile* pDexFile) {
577 u4 mapOff = pDexFile->pHeader->mapOff;
582 return (const DexMapList*) (pDexFile->baseAddr + mapOff);
587 DEX_INLINE const char* dexGetStringData(const DexFile* pDexFile,
589 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff;
597 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) {
598 assert(idx < pDexFile->pHeader->stringIdsSize);
599 return &pDexFile->pStringIds[idx];
602 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) {
603 const DexStringId* pStringId = dexGetStringId(pDexFile, idx);
604 return dexGetStringData(pDexFile, pStringId);
609 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
613 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) {
614 assert(idx < pDexFile->pHeader->typeIdsSize);
615 return &pDexFile->pTypeIds[idx];
622 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) {
623 const DexTypeId* typeId = dexGetTypeId(pDexFile, idx);
624 return dexStringById(pDexFile, typeId->descriptorIdx);
628 DEX_INLINE const DexMethodId* dexGetMethodId(const DexFile* pDexFile, u4 idx) {
629 assert(idx < pDexFile->pHeader->methodIdsSize);
630 return &pDexFile->pMethodIds[idx];
634 DEX_INLINE const DexFieldId* dexGetFieldId(const DexFile* pDexFile, u4 idx) {
635 assert(idx < pDexFile->pHeader->fieldIdsSize);
636 return &pDexFile->pFieldIds[idx];
640 DEX_INLINE const DexProtoId* dexGetProtoId(const DexFile* pDexFile, u4 idx) {
641 assert(idx < pDexFile->pHeader->protoIdsSize);
642 return &pDexFile->pProtoIds[idx];
650 const DexFile *pDexFile, const DexProtoId* pProtoId) {
655 (pDexFile->baseAddr + pProtoId->parametersOff);
659 DEX_INLINE const DexClassDef* dexGetClassDef(const DexFile* pDexFile, u4 idx) {
660 assert(idx < pDexFile->pHeader->classDefsSize);
661 return &pDexFile->pClassDefs[idx];
665 DEX_INLINE u4 dexGetIndexForClassDef(const DexFile* pDexFile,
668 assert(pClassDef >= pDexFile->pClassDefs &&
669 pClassDef < pDexFile->pClassDefs + pDexFile->pHeader->classDefsSize);
670 return pClassDef - pDexFile->pClassDefs;
674 DEX_INLINE const DexTypeList* dexGetInterfacesList(const DexFile* pDexFile,
680 (pDexFile->baseAddr + pClassDef->interfacesOff);
697 const DexFile* pDexFile, const DexClassDef* pClassDef)
702 (pDexFile->baseAddr + pClassDef->staticValuesOff);
707 const DexFile* pDexFile, const DexClassDef* pClassDef)
712 (pDexFile->baseAddr + pClassDef->annotationsOff);
717 const DexFile* pDexFile, const DexClassDef* pClassDef)
721 return dexStringById(pDexFile, pClassDef->sourceFileIdx);
746 DEX_INLINE const u1* dexGetDebugInfoStream(const DexFile* pDexFile,
752 return pDexFile->baseAddr + pCode->debugInfoOff;
777 const DexFile* pDexFile,
786 DEX_INLINE const char* dexGetClassDescriptor(const DexFile* pDexFile,
789 return dexStringByTypeIdx(pDexFile, pClassDef->classIdx);
793 DEX_INLINE const char* dexGetSuperClassDescriptor(const DexFile* pDexFile,
798 return dexStringByTypeIdx(pDexFile, pClassDef->superclassIdx);
802 DEX_INLINE const u1* dexGetClassData(const DexFile* pDexFile,
807 return (const u1*) (pDexFile->baseAddr + pClassDef->classDataOff);
812 const DexFile* pDexFile, u4 offset)
814 return (const DexAnnotationSetItem*) (pDexFile->baseAddr + offset);
818 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
822 return dexGetAnnotationSetItem(pDexFile, pAnnoDir->classAnnotationsOff);
827 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
837 DEX_INLINE int dexGetFieldAnnotationsSize(const DexFile* pDexFile,
845 const DexFile* pDexFile, const DexFieldAnnotationsItem* pItem)
847 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
852 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
867 DEX_INLINE int dexGetMethodAnnotationsSize(const DexFile* pDexFile,
875 const DexFile* pDexFile, const DexMethodAnnotationsItem* pItem)
877 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
882 const DexFile* pDexFile, const DexAnnotationsDirectoryItem* pAnnoDir)
898 DEX_INLINE int dexGetParameterAnnotationsSize(const DexFile* pDexFile,
906 const DexFile* pDexFile, const DexParameterAnnotationsItem* pItem)
909 (pDexFile->baseAddr + pItem->annotationsOff);
913 DEX_INLINE int dexGetParameterAnnotationSetRefSize(const DexFile* pDexFile,
918 return dexGetParameterAnnotationSetRefList(pDexFile, pItem)->size;
931 const DexFile* pDexFile, const DexAnnotationSetRefItem* pItem)
933 return dexGetAnnotationSetItem(pDexFile, pItem->annotationsOff);
946 const DexFile* pDexFile, const DexAnnotationSetItem* pAnnoSet, u4 idx)
949 (pDexFile->baseAddr + dexGetAnnotationOff(pAnnoSet, idx));