/system/bt/btif/include/ |
btif_a2dp_control.h | 39 // |bytes_read| is the number of bytes to increment by. 40 void btif_a2dp_control_log_bytes_read(uint32_t bytes_read);
|
/external/ltp/testcases/kernel/fs/fs_di/ |
frag.c | 48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; local 78 bytes_read = fread(buff, 1, 1024, fp_data); 79 if (bytes_read < 0) { 84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); 85 if (bytes_read != bytes_written) { 90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); 91 if (bytes_read != bytes_written) { 104 if (bytes_read < 1024)
|
/external/perfetto/src/base/ |
file_utils.cc | 44 ssize_t bytes_read; local 49 bytes_read = PERFETTO_EINTR(read(fd.get(), &((*out)[i]), kBufSize)); 50 if (bytes_read > 0) { 51 i += static_cast<size_t>(bytes_read); 54 return bytes_read == 0;
|
/device/linaro/hikey/bluetooth/ |
hci_packetizer.cc | 53 size_t bytes_read = TEMP_FAILURE_RETRY( local 56 CHECK(bytes_read > 0); 57 bytes_read_ += bytes_read; 71 size_t bytes_read = TEMP_FAILURE_RETRY(read( local 75 CHECK(bytes_read > 0); 76 bytes_remaining_ -= bytes_read; 77 bytes_read_ += bytes_read;
|
/hardware/interfaces/bluetooth/1.0/default/ |
hci_packetizer.cc | 56 ssize_t bytes_read = TEMP_FAILURE_RETRY( local 59 if (bytes_read == 0) { 65 if (bytes_read < 0) { 69 bytes_read_ += bytes_read; 83 ssize_t bytes_read = TEMP_FAILURE_RETRY(read( local 87 if (bytes_read == 0) { 93 if (bytes_read < 0) { 97 bytes_remaining_ -= bytes_read; 98 bytes_read_ += bytes_read;
|
h4_protocol.cc | 71 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); local 72 if (bytes_read != 1) { 73 if (bytes_read == 0) { 78 } else if (bytes_read < 0) { 83 static_cast<unsigned int>(bytes_read));
|
/external/libvpx/libvpx/ |
ivfdec.h | 21 int ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read,
|
/frameworks/native/cmds/bugreport/ |
bugreport.cpp | 67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local 68 if (bytes_read == 0) { 70 } else if (bytes_read == -1) { 79 ssize_t bytes_to_send = bytes_read; 83 buffer + bytes_read - bytes_to_send, 87 bytes_read, bytes_to_send, strerror(errno));
|
/external/bsdiff/ |
extents_file_unittest.cc | 98 size_t bytes_read; local 99 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read)); 125 size_t bytes_read = 0; local 126 EXPECT_TRUE(file.Read(buf, 100, &bytes_read)); 127 EXPECT_EQ(15U, bytes_read); 147 size_t bytes_read = 0; local 148 EXPECT_TRUE(file.Read(buf, 2, &bytes_read)); 149 EXPECT_EQ(2U, bytes_read); 150 EXPECT_TRUE(file.Read(buf, 8, &bytes_read)); 151 EXPECT_EQ(8U, bytes_read); 167 size_t bytes_read = 0; local 181 size_t bytes_read = 0; local 190 size_t bytes_read; local 205 size_t bytes_read = 0; local [all...] |
/external/e2fsprogs/resize/ |
resource_track.c | 43 track->bytes_read = 0; 48 track->bytes_read = io_start->bytes_read; 105 unsigned long long bytes_read = 0; local 110 bytes_read = delta->bytes_read - track->bytes_read; 113 if (bytes_read == 0 && bytes_written == 0) 119 mbytes(bytes_read), 121 (double)mbytes(bytes_read + bytes_written) [all...] |
/system/bt/vendor_libs/linux/interface/ |
hci_packetizer.cc | 58 size_t bytes_read = TEMP_FAILURE_RETRY( local 61 CHECK(bytes_read > 0); 62 bytes_read_ += bytes_read; 76 size_t bytes_read = TEMP_FAILURE_RETRY(read( local 80 CHECK(bytes_read > 0); 81 bytes_remaining_ -= bytes_read; 82 bytes_read_ += bytes_read;
|
/external/sfntly/cpp/src/sfntly/data/ |
byte_array.cc | 113 int32_t bytes_read = 0; local 117 while ((bytes_read = 119 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); 121 index += bytes_read; 122 remaining_length -= bytes_read; 134 int32_t bytes_read = 0; local 137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { 138 os->Write(&b, 0, bytes_read); 139 index += bytes_read; 147 int32_t bytes_read = 0 local 167 int32_t bytes_read = 0; local [all...] |
/system/update_engine/payload_consumer/ |
mount_history.cc | 38 ssize_t bytes_read; local 41 blockdevice_fd, block0_buffer.data(), kBlockSize, 0, &bytes_read)) { 46 if (bytes_read != kBlockSize) {
|
extent_reader.cc | 66 uint64_t bytes_read = 0; local 67 while (bytes_read < count) { 69 TEST_AND_RETURN_FALSE(bytes_read == count); 74 std::min(count - bytes_read, cur_extent_bytes_left); 79 bytes + bytes_read, 86 bytes_read += bytes_to_read;
|
/system/update_engine/payload_generator/ |
blob_file_writer_unittest.cc | 49 ssize_t bytes_read; local 54 &bytes_read)); 55 EXPECT_EQ(bytes_read, blob_size);
|
/external/syslinux/com32/elflink/ldlinux/ |
loadhigh.c | 48 uint32_t bytes_read; local 85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more); 87 if (bytes_read > chunk) 88 bytes_read = chunk; 90 buf += bytes_read; 91 bytes -= bytes_read;
|
/external/libmojo/mojo/edk/test/ |
test_utils.h | 28 // On success, |bytes_read| is updated to the number of bytes read; otherwise it 33 size_t* bytes_read); 36 // and updates |bytes_read| to the number of bytes read (0 if the read would 37 // block); otherwise it returns false and leaves |bytes_read| untouched. 42 size_t* bytes_read);
|
test_utils_posix.cc | 41 size_t* bytes_read) { 55 *bytes_read = result; 62 size_t* bytes_read) { 69 *bytes_read = 0; 71 *bytes_read = result;
|
/frameworks/ex/framesequence/jni/ |
Stream.cpp | 61 size_t bytes_read = 0; local 64 bytes_read = min(size, peek_remaining); 65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read); 66 mPeekOffset += bytes_read; 73 size -= bytes_read; 74 buffer = ((char*) buffer) + bytes_read; 77 bytes_read += doRead(buffer, size); 79 return bytes_read;
|
/bionic/libc/bionic/ |
bionic_netlink.cpp | 82 ssize_t bytes_read; local 83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) { 85 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) {
|
/development/host/windows/usb/api/ |
adb_endpoint_object.cpp | 52 ULONG* bytes_read,
58 bytes_read,
78 ULONG* bytes_read,
83 bytes_read,
|
/frameworks/native/cmds/bugreportz/ |
bugreportz.cpp | 49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local 50 if (bytes_read == 0) { 52 } else if (bytes_read == -1) { 62 for (int i = 0; i < bytes_read; i++) {
|
/system/core/libbacktrace/ |
BacktracePtrace.cpp | 77 size_t bytes_read = 0; 89 bytes_read += copy_bytes; 95 return bytes_read; 100 bytes_read += sizeof(word_t); 106 return bytes_read; 109 bytes_read += left_over; 111 return bytes_read;
|
/external/google-breakpad/src/common/tests/ |
file_utils.cc | 64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); local 65 if (bytes_read < 0) { 70 if (bytes_read == 0) 77 bytes_read - bytes_written_per_read)); 84 } while (bytes_written_per_read < bytes_read);
|
/external/v8/src/base/platform/ |
platform-freebsd.cc | 87 ssize_t bytes_read = read(fd, addr_buffer + 2, 8); local 88 if (bytes_read < 8) break; 90 bytes_read = read(fd, addr_buffer + 2, 1); 91 if (bytes_read < 1) break; 93 bytes_read = read(fd, addr_buffer + 2, 8); 94 if (bytes_read < 8) break; 97 bytes_read = -1; 99 bytes_read++; 100 if (bytes_read >= MAP_LENGTH - 1) 102 bytes_read = read(fd, buffer + bytes_read, 1) [all...] |