Lines Matching refs:dexOffset
312 bool dvmOptimizeDexFile(int fd, off_t dexOffset, long dexLength,
337 return dvmContinueOptimization(fd, dexOffset, dexLength,
409 sprintf(values[4], "%d", (int) dexOffset);
511 bool dvmContinueOptimization(int fd, off_t dexOffset, long dexLength,
537 assert(dexOffset >= 0);
544 if (dexOffset < (int) sizeof(DexOptHeader)) {
566 mapAddr = mmap(NULL, dexOffset + dexLength, PROT_READ|PROT_WRITE,
585 success = rewriteDex(((u1*) mapAddr) + dexOffset, dexLength,
590 u1* dexAddr = ((u1*) mapAddr) + dexOffset;
625 if (msync(mapAddr, dexOffset + dexLength, MS_SYNC) != 0) {
636 if (munmap(mapAddr, dexOffset + dexLength) != 0) {
710 optHdr.dexOffset = (u4) dexOffset;