Lines Matching refs:bytes
117 int bytes = adb_read(fd, buffer, sizeof(buffer));
118 if (bytes <= 0) {
121 received.append(buffer, bytes);
622 int bytes = adb_write(stdinout_sfd_, input_->data() + index, input_bytes_left_);
623 if (bytes == 0 || (bytes < 0 && errno != EAGAIN)) {
624 if (bytes < 0) {
631 } else if (bytes > 0) {
632 input_bytes_left_ -= bytes;
640 int bytes = adb_read(*sfd, output_->data(), output_->data_capacity());
641 if (bytes == 0 || (bytes < 0 && errno != EAGAIN)) {
644 if (bytes < 0 && !(type_ == SubprocessType::kPty && errno == EIO)) {
650 if (bytes > 0 && !output_->Write(id, bytes)) {