Home
last modified time | relevance | path

Searched refs:num_read (Results 1 – 22 of 22) sorted by relevance

/external/tinyalsa/
Dtinyplay.c160 int num_read; in play_sample() local
193 num_read = fread(buffer, 1, size, file); in play_sample()
194 if (num_read > 0) { in play_sample()
195 if (pcm_write(pcm, buffer, num_read)) { in play_sample()
200 } while (num_read > 0); in play_sample()
/external/chromium/base/debug/
Ddebugger_posix.cc113 ssize_t num_read = HANDLE_EINTR(read(status_fd, buf, sizeof(buf))); in BeingDebugged() local
117 if (num_read <= 0) in BeingDebugged()
120 StringPiece status(buf, num_read); in BeingDebugged()
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
Dtest_memorizingfile.py47 def check(self, memorizing_file, num_read, expected_list): argument
48 for unused in range(num_read):
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-death-test.cc293 ssize_t num_read; in FailFromInternalError() local
296 while ((num_read = read(fd, buffer, 255)) > 0) { in FailFromInternalError()
297 buffer[num_read] = '\0'; in FailFromInternalError()
300 } while (num_read == -1 && errno == EINTR); in FailFromInternalError()
303 if (num_read == 0) { in FailFromInternalError()
/external/libnfc-nci/src/nfa/include/
Dnfa_nv_ci.h39 UINT16 num_read; member
/external/protobuf/gtest/src/
Dgtest-death-test.cc262 int num_read; in FailFromInternalError() local
265 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { in FailFromInternalError()
266 buffer[num_read] = '\0'; in FailFromInternalError()
269 } while (num_read == -1 && errno == EINTR); in FailFromInternalError()
271 if (num_read == 0) { in FailFromInternalError()
/external/bluetooth/bluedroid/btif/co/
Dbta_fs_co.c456 INT32 num_read; in bta_fs_co_read() local
459 if ((num_read = read (fd, p_buf, nbytes)) < 0) in bta_fs_co_read()
466 else if (num_read < nbytes) in bta_fs_co_read()
469 bta_fs_ci_read(fd, (UINT16)num_read, status, evt); in bta_fs_co_read()
/external/llvm/utils/unittest/googletest/
Dgtest-death-test.cc275 int num_read; in FailFromInternalError() local
278 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { in FailFromInternalError()
279 buffer[num_read] = '\0'; in FailFromInternalError()
282 } while (num_read == -1 && errno == EINTR); in FailFromInternalError()
284 if (num_read == 0) { in FailFromInternalError()
/external/gtest/src/
Dgtest-death-test.cc275 int num_read; in FailFromInternalError() local
278 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { in FailFromInternalError()
279 buffer[num_read] = '\0'; in FailFromInternalError()
282 } while (num_read == -1 && errno == EINTR); in FailFromInternalError()
284 if (num_read == 0) { in FailFromInternalError()
/external/chromium/testing/gtest/src/
Dgtest-death-test.cc275 int num_read; in FailFromInternalError() local
278 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { in FailFromInternalError()
279 buffer[num_read] = '\0'; in FailFromInternalError()
282 } while (num_read == -1 && errno == EINTR); in FailFromInternalError()
284 if (num_read == 0) { in FailFromInternalError()
/external/bluetooth/bluedroid/bta/include/
Dbta_fs_ci.h49 UINT16 num_read; member
/external/mdnsresponder/mDNSShared/
Ddnssd_clientstub.c207 ssize_t num_read = recv(sd, buf, len, 0); in read_all() local
210 …if ((num_read < 0) && (errno == EINTR)) { syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR conti… in read_all()
211 if ((num_read == 0) || (num_read < 0) || (num_read > len)) in read_all()
234 (long)num_read, (long)len, in read_all()
235 (num_read < 0) ? dnssd_errno : 0, in read_all()
236 (num_read < 0) ? dnssd_strerror(dnssd_errno) : ""); in read_all()
239 return (num_read < 0 && dnssd_errno == dnssd_EWOULDBLOCK) ? read_all_wouldblock : read_all_fail; in read_all()
241 buf += num_read; in read_all()
242 len -= num_read; in read_all()
Ddnsextd.c379 ssize_t num_read; in my_recv() local
397 num_read = mDNSPlatformReadTCP( sock, ptr, remaining, closed ); in my_recv()
399 if (((num_read == 0) && *closed) || (num_read < 0) || (num_read > remaining)) return -1; in my_recv()
400 if (num_read == 0) return 0; in my_recv()
401 ptr += num_read; in my_recv()
402 remaining -= num_read; in my_recv()
/external/openssl/crypto/bio/
Dbio_lib.c98 bio->num_read=0L; in BIO_set()
214 if (i > 0) b->num_read+=(unsigned long)i; in BIO_read()
592 if(bio) return bio->num_read; in BIO_number_read()
Dbss_bio.c889 bio->num_read += ret; in BIO_nread()
Dbio.h326 unsigned long num_read; member
/external/protobuf/src/google/protobuf/
Dwire_format_lite_inl.h272 int num_read = 0; in ReadRepeatedFixedSizePrimitive() local
273 while (num_read < elements_available && in ReadRepeatedFixedSizePrimitive()
278 ++num_read; in ReadRepeatedFixedSizePrimitive()
280 const int read_bytes = num_read * per_value_size; in ReadRepeatedFixedSizePrimitive()
/external/bluetooth/bluedroid/bta/fs/
Dbta_fs_ci.c94 p_evt->num_read = num_bytes_read; in bta_fs_ci_read()
/external/valgrind/main/coregrind/m_debuginfo/
Dd3basics.c343 UInt num_read = 0; in read_leb128() local
352 num_read ++; in read_leb128()
362 * length_return = num_read; in read_leb128()
Dreaddwarf.c213 UInt num_read = 0; in read_leb128() local
222 num_read ++; in read_leb128()
232 * length_return = num_read; in read_leb128()
/external/chromium/chrome/browser/visitedlink/
Dvisitedlink_master.cc956 size_t num_read = fread(data, 1, data_size, file); in ReadFromFile() local
957 return num_read == data_size; in ReadFromFile()
/external/openssl/include/openssl/
Dbio.h326 unsigned long num_read; member