Home
last modified time | relevance | path

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

/external/tinyalsa/
Dtinyplay.c137 int num_read; in play_sample() local
170 num_read = fread(buffer, 1, size, file); in play_sample()
171 if (num_read > 0) { in play_sample()
172 if (pcm_write(pcm, buffer, num_read)) { in play_sample()
177 } 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/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/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/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/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/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/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/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