Home | History | Annotate | Download | only in updater

Lines Matching defs:written

186     size_t written = 0;
187 while (written < size) {
188 ssize_t w = TEMP_FAILURE_RETRY(ota_write(fd, data+written, size-written));
194 written += w;
258 // Return number of bytes written; and 0 indicates a writing failure.
265 size_t written = 0;
285 written += write_now;
288 bytes_written_ += written;
289 return written;
303 // We can't write any more; let the write function return how many bytes have been written
331 // Total bytes written by the writer.
343 * want some new data to be written. We signal the background thread with the destination for the
349 * the main thread wants some data written, it sets writer to the destination location and signals
394 // We have written all the bytes desired by this writer.
458 // We have written all the bytes desired by this writer.
505 size_t written = 0;
517 if (write_all(fd, buffer.data() + written, size) == -1) {
521 written += size;
542 size_t written;
1234 params.written += tgt.blocks();
1343 params.written += tgt.blocks();
1378 params.written += tgt.blocks();
1463 params.written += tgt.blocks();
1771 fprintf(cmd_pipe, "set_progress %.4f\n", static_cast<double>(params.written) / total_blocks);
1793 LOG(INFO) << "wrote " << params.written << " blocks; expected " << total_blocks;
1799 fprintf(cmd_pipe, "log bytes_written_%s: %zu\n", partition + 1, params.written * BLOCKSIZE);
1871 * a patch or move) after it has been written.