Searched refs:open (Results 1 - 20 of 20) sorted by relevance

/bootable/recovery/tools/ota/
H A Dconvert-to-bmp.py16 im = Image.open(infile)
67 f = open(outfile, "wb")
H A Dcheck-lost+found.c66 int fd = open(kMarkerFile, O_WRONLY|O_CREAT, 0444);
78 fd = open(fn, O_WRONLY|O_CREAT, 0444);
102 fprintf(out, "Can't open %s: %s\n", fn, strerror(errno));
/bootable/recovery/
H A Dinterlace-frames.py28 frames = [Image.open(fn).convert("RGB") for fn in sys.argv[1:-1]]
H A Dadb_install.cpp42 int fd = open("/sys/class/android_usb/android0/enable", O_WRONLY);
44 ui->Print("failed to open driver control: %s\n", strerror(errno));
H A Dfuse_sdcard_provider.c83 fd.fd = open(t->path, O_RDONLY);
85 fprintf(stderr, "failed to open %s: %s\n", t->path, strerror(errno));
123 // Unmount it with MNT_DETACH so that our open file continues to
H A Droots.cpp202 LOGW("format_volume: can't open MTD \"%s\"\n", v->blk_device);
220 int fd = open(v->key_loc, O_WRONLY | O_CREAT, 0644);
222 LOGE("format_volume: failed to open %s\n", v->key_loc);
276 int fd = open(v->blk_device, O_RDWR);
H A Dui.cpp247 int fd = open("/sys/class/android_usb/android0/state", O_RDONLY);
249 printf("failed to open /sys/class/android_usb/android0/state: %s\n",
H A Dfuse_sideload.c398 fd.ffd = open("/dev/fuse", O_RDWR);
400 perror("open /dev/fuse");
/bootable/recovery/minadbd/
H A Dsysdeps.h150 return open(path, options);
159 return open(path, options, mode);
162 #define open ___xxx_unix_open macro
309 return open(path, options);
318 return open(path, options, mode);
324 return open( pathname, options, mode );
329 int fd = open(path, O_CREAT|O_WRONLY|O_TRUNC|O_NOFOLLOW, mode);
342 int fd = open( pathname, options );
348 #undef open macro
349 #define open ___xxx_ope macro
[all...]
/bootable/recovery/uncrypt/
H A Duncrypt.c36 // Each block range represents a half-open interval; the line "30 33"
226 int fd = open(path, O_RDONLY);
228 ALOGE("failed to open fd for reading: %s\n", strerror(errno));
235 wfd = open(blk_dev, O_WRONLY);
237 ALOGE("failed to open fd for writing: %s\n", strerror(errno));
321 int fd = open(v->blk_device, O_WRONLY);
/bootable/recovery/minzip/
H A DSysUtil.c128 int fd = open(block_dev, O_RDONLY);
130 LOGW("failed to open block device %s: %s\n", block_dev, strerror(errno));
169 LOGV("Unable to open '%s': %s\n", fn+1, strerror(errno));
181 int fd = open(fn, O_RDONLY, 0);
183 LOGE("Unable to open '%s': %s\n", fn, strerror(errno));
H A DZip.c1070 int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC|O_SYNC
/bootable/recovery/minui/
H A Dgraphics_fbdev.c87 fd = open("/dev/graphics/fb0", O_RDWR);
89 perror("cannot open fb0");
H A Dgraphics.c361 gr_vt_fd = open("/dev/tty0", O_RDWR | O_SYNC);
364 perror("can't open /dev/tty0");
366 // However, if we do open tty0, we expect the ioctl to work.
/bootable/recovery/mtdutils/
H A Dflash_image.c71 int fd = open(argv[2], O_RDONLY);
H A Dmounts.c89 fd = open(PROC_MOUNTS_FILENAME, O_RDONLY);
H A Dmtdutils.c107 fd = open(MTD_PROC_FILENAME, O_RDONLY);
243 int fd = open(mtddevname, O_RDONLY);
270 ctx->fd = open(mtddevname, O_RDONLY);
386 ctx->fd = open(mtddevname, O_RDWR);
/bootable/recovery/applypatch/
H A Dapplypatch.c72 printf("failed to open \"%s\": %s\n", filename, strerror(errno));
202 printf("failed to open emmc partition \"%s\": %s\n",
312 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, S_IRUSR | S_IWUSR);
314 printf("failed to open \"%s\" for write: %s\n",
417 int fd = open(partition, O_RDWR | O_SYNC);
419 printf("failed to open %s: %s\n", partition, strerror(errno));
452 fd = open(partition, O_RDONLY);
462 int dc = open("/proc/sys/vm/drop_caches", O_WRONLY);
943 output = open(outname, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC,
946 printf("failed to open outpu
[all...]
/bootable/recovery/updater/
H A Dblockimg.c359 int fd = open(blockdev_filename->data, O_RDWR);
361 ErrorAbort(state, "failed to open %s: %s", blockdev_filename->data, strerror(errno));
609 int fd = open(blockdev_filename->data, O_RDWR);
611 ErrorAbort(state, "failed to open %s: %s", blockdev_filename->data, strerror(errno));
H A Dinstall.c538 printf("%s: can't open %s for write: %s\n",
971 ErrorAbort(state, "%s: failed to open %s: %s",
1087 printf("%s: can't open %s: %s\n",
1522 int fd = open(filename, O_WRONLY, 0644);

Completed in 249 milliseconds