/bootable/recovery/tools/ota/ |
H A D | convert-to-bmp.py | 14 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 D | check-lost+found.c | 52 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 D | roots.cpp | 200 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 D | bootloader.cpp | 122 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 D | adb_install.cpp | 47 if (write(fd, enabled ? "1" : "0", 1) < 0) {
|
H A D | fuse_sideload.c | 485 write(fd.ffd, &outhdr, sizeof(outhdr));
|
/bootable/recovery/minadbd/ |
H A D | sysdeps.h | 136 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 D | services.c | 83 r = write(fd, p, c);
|
H A D | usb_linux_client.c | 46 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 D | flash_image.c | 52 /* 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 D | mtdutils.c | 439 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 D | uncrypt.c | 69 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 D | applypatch.c | 314 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 D | blockimg.c | 99 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 D | Zip.c | 560 /* 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",
|