• Home
  • Raw
  • Download

Lines Matching refs:pDvmDex

40     DvmDex* pDvmDex;  in allocateAuxStructures()  local
44 pDvmDex = (DvmDex*) calloc(1, sizeof(DvmDex)); in allocateAuxStructures()
45 if (pDvmDex == NULL) in allocateAuxStructures()
48 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures()
49 pDvmDex->pHeader = pDexFile->pHeader; in allocateAuxStructures()
51 pHeader = pDvmDex->pHeader; in allocateAuxStructures()
72 pDvmDex->pResStrings = (struct StringObject**) in allocateAuxStructures()
75 pDvmDex->pResClasses = (struct ClassObject**) in allocateAuxStructures()
78 pDvmDex->pResMethods = (struct Method**) in allocateAuxStructures()
81 pDvmDex->pResFields = (struct Field**) in allocateAuxStructures()
85 pDvmDex, stringCount, classCount, methodCount, fieldCount, in allocateAuxStructures()
88 pDvmDex->pInterfaceCache = dvmAllocAtomicCache(DEX_INTERFACE_CACHE_SIZE); in allocateAuxStructures()
90 if (pDvmDex->pResStrings == NULL || in allocateAuxStructures()
91 pDvmDex->pResClasses == NULL || in allocateAuxStructures()
92 pDvmDex->pResMethods == NULL || in allocateAuxStructures()
93 pDvmDex->pResFields == NULL || in allocateAuxStructures()
94 pDvmDex->pInterfaceCache == NULL) in allocateAuxStructures()
97 free(pDvmDex->pResStrings); in allocateAuxStructures()
98 free(pDvmDex->pResClasses); in allocateAuxStructures()
99 free(pDvmDex->pResMethods); in allocateAuxStructures()
100 free(pDvmDex->pResFields); in allocateAuxStructures()
101 free(pDvmDex); in allocateAuxStructures()
105 return pDvmDex; in allocateAuxStructures()
117 DvmDex* pDvmDex; in dvmDexFileOpenFromFd() local
143 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenFromFd()
144 if (pDvmDex == NULL) { in dvmDexFileOpenFromFd()
151 sysCopyMap(&pDvmDex->memMap, &memMap); in dvmDexFileOpenFromFd()
152 *ppDvmDex = pDvmDex; in dvmDexFileOpenFromFd()
169 DvmDex* pDvmDex; in dvmDexFileOpenPartial() local
184 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenPartial()
185 if (pDvmDex == NULL) { in dvmDexFileOpenPartial()
190 *ppDvmDex = pDvmDex; in dvmDexFileOpenPartial()
202 void dvmDexFileFree(DvmDex* pDvmDex) in dvmDexFileFree() argument
204 if (pDvmDex == NULL) in dvmDexFileFree()
207 dexFileFree(pDvmDex->pDexFile); in dvmDexFileFree()
209 LOGV("+++ DEX %p: freeing aux structs\n", pDvmDex); in dvmDexFileFree()
210 free(pDvmDex->pResStrings); in dvmDexFileFree()
211 free(pDvmDex->pResClasses); in dvmDexFileFree()
212 free(pDvmDex->pResMethods); in dvmDexFileFree()
213 free(pDvmDex->pResFields); in dvmDexFileFree()
214 dvmFreeAtomicCache(pDvmDex->pInterfaceCache); in dvmDexFileFree()
216 sysReleaseShmem(&pDvmDex->memMap); in dvmDexFileFree()
217 free(pDvmDex); in dvmDexFileFree()