• Home
  • Raw
  • Download

Lines Matching refs:pDvmDex

42     DvmDex* pDvmDex;  in allocateAuxStructures()  local
46 pDvmDex = (DvmDex*) calloc(1, sizeof(DvmDex)); in allocateAuxStructures()
47 if (pDvmDex == NULL) in allocateAuxStructures()
50 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures()
51 pDvmDex->pHeader = pDexFile->pHeader; in allocateAuxStructures()
53 pHeader = pDvmDex->pHeader; in allocateAuxStructures()
60 pDvmDex->pResStrings = (struct StringObject**) in allocateAuxStructures()
63 pDvmDex->pResClasses = (struct ClassObject**) in allocateAuxStructures()
66 pDvmDex->pResMethods = (struct Method**) in allocateAuxStructures()
69 pDvmDex->pResFields = (struct Field**) in allocateAuxStructures()
73 pDvmDex, stringCount, classCount, methodCount, fieldCount, in allocateAuxStructures()
76 pDvmDex->pInterfaceCache = dvmAllocAtomicCache(DEX_INTERFACE_CACHE_SIZE); in allocateAuxStructures()
78 if (pDvmDex->pResStrings == NULL || in allocateAuxStructures()
79 pDvmDex->pResClasses == NULL || in allocateAuxStructures()
80 pDvmDex->pResMethods == NULL || in allocateAuxStructures()
81 pDvmDex->pResFields == NULL || in allocateAuxStructures()
82 pDvmDex->pInterfaceCache == NULL) in allocateAuxStructures()
85 free(pDvmDex->pResStrings); in allocateAuxStructures()
86 free(pDvmDex->pResClasses); in allocateAuxStructures()
87 free(pDvmDex->pResMethods); in allocateAuxStructures()
88 free(pDvmDex->pResFields); in allocateAuxStructures()
89 free(pDvmDex); in allocateAuxStructures()
93 return pDvmDex; in allocateAuxStructures()
105 DvmDex* pDvmDex; in dvmDexFileOpenFromFd() local
131 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenFromFd()
132 if (pDvmDex == NULL) { in dvmDexFileOpenFromFd()
139 sysCopyMap(&pDvmDex->memMap, &memMap); in dvmDexFileOpenFromFd()
140 *ppDvmDex = pDvmDex; in dvmDexFileOpenFromFd()
157 DvmDex* pDvmDex; in dvmDexFileOpenPartial() local
172 pDvmDex = allocateAuxStructures(pDexFile); in dvmDexFileOpenPartial()
173 if (pDvmDex == NULL) { in dvmDexFileOpenPartial()
178 *ppDvmDex = pDvmDex; in dvmDexFileOpenPartial()
190 void dvmDexFileFree(DvmDex* pDvmDex) in dvmDexFileFree() argument
192 if (pDvmDex == NULL) in dvmDexFileFree()
195 dexFileFree(pDvmDex->pDexFile); in dvmDexFileFree()
197 LOGV("+++ DEX %p: freeing aux structs\n", pDvmDex); in dvmDexFileFree()
198 free(pDvmDex->pResStrings); in dvmDexFileFree()
199 free(pDvmDex->pResClasses); in dvmDexFileFree()
200 free(pDvmDex->pResMethods); in dvmDexFileFree()
201 free(pDvmDex->pResFields); in dvmDexFileFree()
202 dvmFreeAtomicCache(pDvmDex->pInterfaceCache); in dvmDexFileFree()
204 sysReleaseShmem(&pDvmDex->memMap); in dvmDexFileFree()
205 free(pDvmDex); in dvmDexFileFree()
230 bool dvmDexChangeDex1(DvmDex* pDvmDex, u1* addr, u1 newVal) in dvmDexChangeDex1() argument
241 dvmLockMutex(&pDvmDex->modLock); in dvmDexChangeDex1()
244 if (sysChangeMapAccess(addr, 1, true, &pDvmDex->memMap) != 0) { in dvmDexChangeDex1()
251 if (sysChangeMapAccess(addr, 1, false, &pDvmDex->memMap) != 0) { in dvmDexChangeDex1()
256 dvmUnlockMutex(&pDvmDex->modLock); in dvmDexChangeDex1()
267 bool dvmDexChangeDex2(DvmDex* pDvmDex, u2* addr, u2 newVal) in dvmDexChangeDex2() argument
278 dvmLockMutex(&pDvmDex->modLock); in dvmDexChangeDex2()
281 if (sysChangeMapAccess(addr, 2, true, &pDvmDex->memMap) != 0) { in dvmDexChangeDex2()
288 if (sysChangeMapAccess(addr, 2, false, &pDvmDex->memMap) != 0) { in dvmDexChangeDex2()
293 dvmUnlockMutex(&pDvmDex->modLock); in dvmDexChangeDex2()