Searched refs:num_read (Results 1 - 25 of 39) sorted by relevance

12

/external/chromium_org/third_party/libsrtp/srtp/crypto/rng/
H A Drand_source.c111 ssize_t num_read = read(dev_random_fdes, dst, len); local
112 if (num_read <= 0 || num_read > len)
114 len -= num_read;
115 dst += num_read;
/external/libnfc-nci/src/nfa/include/
H A Dnfa_nv_ci.h40 UINT16 num_read; member in struct:__anon24050
/external/tinycompress/
H A Dcplay.c208 int size, num_read, wrote; local
268 num_read = fread(buffer, 1, size * config.fragments, file);
269 if (num_read > 0) {
271 printf("%s: Doing first buffer write of %d\n", __func__, num_read);
272 wrote = compress_write(compress, buffer, num_read);
278 if (wrote != num_read) {
280 fprintf(stderr, "We wrote %d, DSP accepted %d\n", num_read, wrote);
293 num_read = fread(buffer, 1, size, file);
294 if (num_read > 0) {
295 wrote = compress_write(compress, buffer, num_read);
[all...]
H A Dcompress.c418 int num_read, total = 0, ret; local
459 num_read = read(compress->fd, cbuf, to_read);
461 if (num_read == -EBADFD)
463 if (num_read < 0)
466 size -= num_read;
467 cbuf += num_read;
468 total += num_read;
/external/ceres-solver/internal/ceres/
H A Dfile.cc66 int num_read = fread(&((*data)[0]), local
70 if (num_read != num_bytes) {
73 << "actual bytes: " << num_read;
/external/chromium_org/chrome/test/base/
H A Dchrome_test_suite.cc57 int num_read = readlink(base::kProcSelfExe, buf, sizeof(buf) - 1); local
58 if (num_read == -1)
60 buf[num_read] = 0;
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dvideo.py164 num_read = proc.stdout.readinto(frame_data)
165 if not num_read:
167 assert num_read == len(frame_data), 'Unexpected frame size: %d' % num_read
/external/chromium_org/sandbox/linux/services/
H A Dyama.cc92 ssize_t num_read = HANDLE_EINTR(read(yama_scope.get(), &yama_scope_value, 1)); local
93 PCHECK(1 == num_read);
/external/chromium_org/base/debug/
H A Ddebugger_posix.cc141 ssize_t num_read = HANDLE_EINTR(read(status_fd, buf, sizeof(buf)));
145 if (num_read <= 0)
148 StringPiece status(buf, num_read);
/external/chromium_org/base/
H A Dsys_info_android.cc74 int num_read = sscanf(os_version_str, "%d.%d.%d", major_version, local
77 if (num_read > 0) {
79 if (num_read < 2) *minor_version = 0;
80 if (num_read < 3) *bugfix_version = 0;
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
H A Dtest_memorizingfile.py47 def check(self, memorizing_file, num_read, expected_list):
48 for unused in range(num_read):
/external/tinyalsa/
H A Dtinyplay.c219 int num_read; local
259 num_read = fread(buffer, 1, size, file);
260 if (num_read > 0) {
261 if (pcm_write(pcm, buffer, num_read)) {
266 } while (!close && num_read > 0);
/external/bluetooth/bluedroid/bta/include/
H A Dbta_fs_ci.h49 UINT16 num_read; member in struct:__anon754
/external/libedit/src/
H A Dread.c315 ssize_t num_read; local
323 while ((num_read = read(el->el_infd, cbuf + cbp, (size_t)1)) == -1) {
345 if (num_read == 0) {
378 return (int)num_read;
402 int num_read; local
439 num_read = (*el->el_read.read_char)(el, cp);
440 if (num_read < 0)
449 return num_read;
H A Deln.c50 int num_read; local
55 num_read = el_wgetc (el, &wc);
59 if (num_read > 0)
61 return num_read;
H A Dreadline.c2058 ssize_t num_read = 0; local
2069 num_read = read(el->el_infd, cp, (size_t)1);
2071 num_read = 0;
2077 num_read = read(el->el_infd, cp, 1);
2082 num_read = read(el->el_infd, cp, 1);
2086 if (num_read < 0 && errno == EAGAIN)
2088 if (num_read == 0)
2094 return (int)num_read;
/external/chromium_org/tools/imagediff/
H A Dimage_diff.cc106 size_t num_read = 0; local
107 while ((num_read = fread(buf, 1, buf_size, f)) > 0) {
108 compressed.insert(compressed.end(), buf, buf + num_read);
/external/protobuf/gtest/src/
H A Dgtest-death-test.cc262 int num_read; local
265 while ((num_read = posix::Read(fd, buffer, 255)) > 0) {
266 buffer[num_read] = '\0';
269 } while (num_read == -1 && errno == EINTR);
271 if (num_read == 0) {
/external/chromium_org/third_party/boringssl/src/crypto/bio/
H A Dbio.c193 &bio->num_read);
198 &bio->num_read);
379 return bio->num_read;
/external/bluetooth/bluedroid/bta/fs/
H A Dbta_fs_ci.c94 p_evt->num_read = num_bytes_read;
/external/bluetooth/bluedroid/btif/co/
H A Dbta_fs_co.c457 INT32 num_read; local
461 if ((num_read = read (fd, p_buf, nbytes)) < 0)
468 else if (num_read < nbytes)
471 bta_fs_ci_read(fd, (UINT16)num_read, status, evt);
/external/chromium_org/testing/gtest/src/
H A Dgtest-death-test.cc315 int num_read; local
318 while ((num_read = posix::Read(fd, buffer, 255)) > 0) {
319 buffer[num_read] = '\0';
322 } while (num_read == -1 && errno == EINTR);
324 if (num_read == 0) {
/external/chromium_org/third_party/mesa/src/src/gtest/src/
H A Dgtest-death-test.cc275 int num_read; local
278 while ((num_read = posix::Read(fd, buffer, 255)) > 0) {
279 buffer[num_read] = '\0';
282 } while (num_read == -1 && errno == EINTR);
284 if (num_read == 0) {
/external/gtest/src/
H A Dgtest-death-test.cc315 int num_read; local
318 while ((num_read = posix::Read(fd, buffer, 255)) > 0) {
319 buffer[num_read] = '\0';
322 } while (num_read == -1 && errno == EINTR);
324 if (num_read == 0) {
/external/llvm/utils/unittest/googletest/src/
H A Dgtest-death-test.cc275 int num_read; local
278 while ((num_read = posix::Read(fd, buffer, 255)) > 0) {
279 buffer[num_read] = '\0';
282 } while (num_read == -1 && errno == EINTR);
284 if (num_read == 0) {

Completed in 829 milliseconds

12