/dalvik/dx/tests/083-ssa-phi-placement/ |
H A D | Blort.java | 48 Object fd; field in class:Blort 51 if (fd == null) {
|
/dalvik/libdex/ |
H A D | OptInvocation.c | 113 * "fd" must be positioned at the start of the file. On return, it will 119 int dexOptCreateEmptyHeader(int fd) argument 124 assert(lseek(fd, 0, SEEK_CUR) == 0); 134 actual = write(fd, &optHdr, sizeof(optHdr));
|
H A D | CmdUtils.c | 42 int fd = -1; local 53 fd = open(outFileName, O_WRONLY | O_CREAT | O_EXCL, 0600); 54 if (fd < 0) { 73 if (dexZipExtractEntryToFile(&archive, entry, fd) != 0) { 81 if (fd >= 0) 82 close(fd); 114 int fd = -1; local 163 fd = open(fileName, O_RDONLY); 164 if (fd < 0) { 172 if (sysMapFileInShmemWritableReadOnly(fd, pMa [all...] |
H A D | SysUtil.c | 80 static int getFileStartAndLength(int fd, off_t *start_, size_t *length_) argument 88 start = lseek(fd, 0L, SEEK_CUR); 89 end = lseek(fd, 0L, SEEK_END); 90 (void) lseek(fd, start, SEEK_SET); 111 * everything from fd's current offset on. 116 int sysLoadFileInShmem(int fd, MemMapping* pMap) argument 125 if (getFileStartAndLength(fd, &start, &length) < 0) 132 actual = read(fd, memPtr, length); 150 int sysFakeMapFile(int fd, MemMapping* pMap) argument 162 if (getFileStartAndLength(fd, 186 sysMapFileInShmemReadOnly(int fd, MemMapping* pMap) argument 225 sysMapFileInShmemWritableReadOnly(int fd, MemMapping* pMap) argument 268 sysMapFileSegmentInShmem(int fd, off_t start, size_t length, MemMapping* pMap) argument 391 sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) argument [all...] |
H A D | ZipArchive.c | 149 static int mapCentralDirectory(int fd, const char* debugFileName, argument 158 off_t fileLength = lseek(fd, 0, SEEK_END); 182 if (lseek(fd, searchStart, SEEK_SET) != searchStart) { 186 ssize_t actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, readAmount)); 240 if (sysMapFileSegmentInShmem(fd, dirOffset, dirSize, 338 int fd, err; local 344 fd = open(fileName, O_RDONLY, 0); 345 if (fd < 0) { 351 return dexZipPrepArchive(fd, fileName, pArchive); 359 int dexZipPrepArchive(int fd, cons argument 711 dexZipExtractEntryToFile(const ZipArchive* pArchive, const ZipEntry entry, int fd) argument [all...] |
/dalvik/vm/hprof/ |
H A D | Hprof.c | 37 hprofStartup(const char *outputFileName, int fd, bool directToDdms) argument 53 hprofContextInit(ctx, strdup(outputFileName), fd, false, directToDdms); 79 hprofContextInit(headCtx, strdup(tailCtx->fileName), tailCtx->fd, true, 124 assert(headCtx->fd == tailCtx->fd); 127 if (headCtx->fd >= 0) { 128 outFd = dup(headCtx->fd); 130 LOGE("dup(%d) failed: %s\n", headCtx->fd, strerror(errno)); 177 /* we don't own ctx->fd, do not close */
|
H A D | HprofOutput.c | 65 hprofContextInit(hprof_context_t *ctx, char *fileName, int fd, argument 85 ctx->fd = fd;
|
H A D | Hprof.h | 136 * If directToDdms is set, "fileName" and "fd" will be ignored. 137 * Otherwise, "fileName" must be valid, though if "fd" >= 0 it will 145 int fd; member in struct:hprof_context_t 191 void hprofContextInit(hprof_context_t *ctx, char *fileName, int fd, 248 hprof_context_t* hprofStartup(const char *outputFileName, int fd, 260 int hprofDumpHeap(const char* fileName, int fd, bool directToDdms);
|
/dalvik/vm/ |
H A D | DvmDex.c | 103 int dvmDexFileOpenFromFd(int fd, DvmDex** ppDvmDex) argument 114 if (lseek(fd, 0, SEEK_SET) < 0) { 119 if (sysMapFileInShmemWritableReadOnly(fd, &memMap) != 0) {
|
H A D | SignalCatcher.c | 77 int fd = -1; local 79 fd = open("/proc/self/cmdline", O_RDONLY, 0); 80 if (fd < 0) 86 actual = read(fd, tmpBuf, sizeof(tmpBuf)-1); 94 if (fd >= 0) 95 close(fd); 192 int fd = open(gDvm.stackTraceFile, O_WRONLY | O_APPEND | O_CREAT, 0666); local 193 if (fd < 0) { 197 ssize_t actual = write(fd, traceBuf, traceLen); 205 close(fd); [all...] |
H A D | JarFile.c | 50 int fd = -1; local 69 fd = open(buf, flags); 70 if (fd >= 0) { 72 return fd; 88 int fd; local 122 fd = dvmOpenCachedDexFile(fileName, cachedName, 126 LOGV("dvmOpenCachedDexFile returned fd %d\n", fd); 127 if (fd < 0) { 135 if (!dvmUnlockCachedDexFile(fd)) { 194 int fd = -1; local [all...] |
H A D | StdioConverter.c | 50 static bool readAndLog(int fd, BufferedData* data, const char* tag); 222 * Data is pending on "fd". Read as much as will fit in "data", then 225 static bool readAndLog(int fd, BufferedData* data, const char* tag) argument 233 actual = read(fd, data->buf + data->count, want); 236 tag, fd, want, (int)actual, strerror(errno));
|
H A D | LinearAlloc.c | 133 int fd; local 135 fd = ashmem_create_region("dalvik-LinearAlloc", DEFAULT_MAX_LENGTH); 136 if (fd < 0) { 143 MAP_PRIVATE, fd, 0); 148 close(fd); 152 close(fd);
|
H A D | Ddm.c | 402 int i, fd; local 409 fd = open(nameBuf, O_RDONLY); 410 if (fd < 0) { 417 cc = read(fd, lineBuf, sizeof(lineBuf)-1); 421 close(fd); 451 close(fd);
|
H A D | Profile.c | 181 int fd = open("/dev/qemu_trace", O_RDWR); local 182 if (fd < 0) { 186 MAP_SHARED, fd, 0); 187 close(fd); 331 * This opens the output file (if an already open fd has not been supplied,
|
H A D | Misc.c | 655 bool dvmSetCloseOnExec(int fd) argument 661 * value of the fd flags is probably unnecessary. 663 flags = fcntl(fd, F_GETFD); 665 LOGW("Unable to get fd flags for fd %d\n", fd); 668 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { 669 LOGW("Unable to set close-on-exec for fd %d\n", fd); 701 int fd, re local [all...] |
/dalvik/libnativehelper/include/nativehelper/ |
H A D | JNIHelp.h | 80 * Create a java.io.FileDescriptor given an integer fd 82 jobject jniCreateFileDescriptor(C_JNIEnv* env, int fd); 133 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) argument 135 return jniCreateFileDescriptor(&env->functions, fd);
|
/dalvik/dexopt/ |
H A D | OptMain.c | 274 * 2. zip fd (input, read-only) 275 * 3. cache fd (output, read-write, locked with flock) 306 GET_ARG(zipFd, strtol, "bad zip fd"); 307 GET_ARG(cacheFd, strtol, "bad cache fd"); 424 int fd, flags, vmBuildVersion; local 449 GET_ARG(fd, strtol, "bad fd"); 458 LOGV("Args: fd=%d off=%ld len=%ld name='%s' mod=0x%x crc=0x%x flg=%d (argc=%d)\n", 459 fd, offset, length, debugFileName, modWhen, crc, flags, argc); 524 if (!dvmContinueOptimization(fd, offse [all...] |
/dalvik/libnativehelper/ |
H A D | JNIHelp.c | 318 * Create a java.io.FileDescriptor given an integer fd 320 jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { argument 323 jniSetFileDescriptorOfFD(env, fileDescriptor, fd);
|
/dalvik/vm/alloc/ |
H A D | HeapDebug.c | 49 int fd = open("/proc/self/cmdline", O_RDONLY); local 50 if (fd > 0) { 52 ssize_t n = read(fd, buf, sizeof(buf) - 1); 53 close(fd);
|
H A D | Heap.c | 971 * If "fd" is >= 0, the output will be written to that file descriptor. 982 int hprofDumpHeap(const char* fileName, int fd, bool directToDdms) argument 990 gDvm.gcHeap->hprofFd = fd;
|
/dalvik/vm/compiler/ |
H A D | Compiler.c | 139 int fd; local 142 fd = ashmem_create_region("dalvik-jit-code-cache", gDvmJit.codeCacheSize); 143 if (fd < 0) { 150 MAP_PRIVATE , fd, 0); 151 close(fd);
|
/dalvik/vm/jdwp/ |
H A D | JdwpAdb.c | 134 * Receive a file descriptor from ADB. The fd can be used to communicate 519 int fd; local 524 fd = netState->controlSock; 525 if (fd >= 0) { 526 FD_SET(fd, &readfds); 527 if (maxfd < fd) 528 maxfd = fd; 530 fd = netState->clientSock; 531 if (fd >= 0) { 532 FD_SET(fd, [all...] |
H A D | JdwpSocket.c | 271 * Returns "true" if the fd is ready, "false" if not. 289 if (FD_ISSET(sock, &readfds)) /* make sure it's our fd */ 322 static int setNoDelay(int fd) argument 326 cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); 675 int fd; local 691 fd = netState->listenSock; 692 if (fd >= 0) 693 FD_SET(fd, &readfds); 694 fd = netState->clientSock; 695 if (fd > [all...] |
/dalvik/vm/native/ |
H A D | dalvik_system_VMDebug.c | 29 * Extracts the fd from a FileDescriptor object. 46 int fd = dvmGetFieldInt(obj, field->byteOffset); local 47 if (fd < 0) { 53 return fd; 332 * FileDescriptor fd, int bufferSize, int flags) 336 * If both "traceFileName" and "fd" are null, the result will be sent 362 int fd = -1; local 368 fd = dup(origFd); 369 if (fd < 0) { 377 fd, bufferSiz 673 int fd = -1; local [all...] |