Searched refs:write (Results 1 - 15 of 15) sorted by relevance

/bootable/recovery/tools/ota/
H A Dconvert-to-bmp.py14 print >> sys.stderr, "Warning: I'm expecting to write BMP files."
20 # Python Imaging Library doesn't write RGBA BMP files, so we roll
68 f.write(header)
69 f.write(info)
73 f.write(data[i+2]) # B
74 f.write(data[i+1]) # G
75 f.write(data[i+0]) # R
76 f.write(data[i+3]) # A
H A Dcheck-lost+found.c52 fprintf(stderr, "Can't write %s: %s\n", kOutputFile, strerror(errno));
79 if (fd >= 0) { // Don't sweat it if we can't write the file.
80 write(fd, fn, sizeof(fn)); // write, you know, some data
90 fprintf(out, "Can't write %s: %s\n", kMarkerFile, strerror(errno));
123 } else { // To conserve space, only write lines with certain keywords
/bootable/recovery/
H A Droots.cpp200 MtdWriteContext *write = mtd_write_partition(partition); local
201 if (write == NULL) {
204 } else if (mtd_erase_blocks(write, -1) == (off_t) -1) {
206 mtd_write_close(write);
208 } else if (mtd_write_close(write)) {
296 write(fd, &oem_unlock_enabled, 1);
H A Dbootloader.cpp122 MtdWriteContext *write = mtd_write_partition(part); local
123 if (write == NULL) {
127 if (mtd_write_data(write, data, size) != size) {
128 LOGE("Can't write %s\n(%s)\n", v->blk_device, strerror(errno));
129 mtd_write_close(write);
132 if (mtd_write_close(write)) {
H A Dadb_install.cpp47 if (write(fd, enabled ? "1" : "0", 1) < 0) {
H A Dfuse_sideload.c485 write(fd.ffd, &outhdr, sizeof(outhdr));
/bootable/recovery/minadbd/
H A Dsysdeps.h136 return write(fd, buf, len);
138 #undef write macro
139 #define write ___xxx_write macro
376 return write(fd, buf, len);
378 #undef write macro
379 #define write ___xxx_write macro
H A Dservices.c83 r = write(fd, p, c);
H A Dusb_linux_client.c46 int (*write)(usb_handle *h, const void *data, int len); member in struct:usb_handle
191 D("about to write (fd=%d, len=%d)\n", h->fd, len);
237 h->write = usb_adb_write;
280 D("[ %s: write descriptors failed: errno=%d ]\n", USB_FFS_ADB_EP0, errno);
371 D("about to write (fd=%d, len=%d)\n", h->bulk_in, len);
450 h->write = usb_ffs_write;
477 return h->write(h, data, len);
/bootable/recovery/mtdutils/
H A Dflash_image.c52 /* Read an image file and write it to a flash partition. */
56 MtdWriteContext *write; local
95 // Skip the header (we'll come back to it), write everything else
115 // Now come back and write the header last
123 // Need to write a complete block, so write the rest of the first block
H A Dmtdutils.c439 write(fd, data, size) != size) {
440 printf("mtd: write error at 0x%08lx (%s)\n",
466 printf("mtd: skipping write block at 0x%08lx\n", pos);
489 // If a complete block was accumulated, write it
507 // Zero-pad and write any pending data to get us to a block boundary
/bootable/recovery/uncrypt/
H A Duncrypt.c69 ssize_t wrote = write(wfd, buffer + written, size - written);
244 // write out head buffer
283 // write out head buffer
328 ssize_t w = write(fd, zeroes, size-written);
330 ALOGE("zero write failed: %s\n", strerror(errno));
/bootable/recovery/applypatch/
H A Dapplypatch.c314 printf("failed to open \"%s\" for write: %s\n",
321 printf("short write of \"%s\" (%ld bytes of %ld) (%s)\n",
402 printf("error finishing mtd write of %s\n", partition);
408 printf("error closing mtd write of %s\n", partition);
430 ssize_t written = write(fd, data+start, to_write);
435 printf("failed write writing to %s (%s)\n",
463 write(dc, "3\n", 2);
628 wrote = write(fd, data+done, len-done);
840 // write the output to /tmp and then copy it to the
845 // We still write th
[all...]
/bootable/recovery/updater/
H A Dblockimg.c99 ssize_t w = write(fd, data+written, size-written);
101 fprintf(stderr, "write failed: %s\n", strerror(errno));
148 fprintf(stderr, "range sink write overrun");
170 // we can't write any more; return how many bytes have
184 // can't write each section until it's that transfer's turn to go.
316 // - read the source blocks, apply a patch, write result to
390 // expect to write.
/bootable/recovery/minzip/
H A DZip.c560 /* write when we're full or when we're done */
706 ssize_t n = write(fd, data+soFar, dataLen-soFar);
717 LOGE("write overrun? (%zd bytes instead of %d)\n",

Completed in 4499 milliseconds