/system/core/libnetutils/ |
ifc_utils.c | 290 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", local 293 if (nread != 11) { 341 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", local 344 if (nread != 11) {
|
/external/bluetooth/bluez/tools/ |
hciattach_ti.c | 151 unsigned long nread; local 164 nread = fread(action_buf, sizeof(uint8_t), action_hdr.size, fp); 165 if (nread != (action_hdr.size)) { 172 return nread * sizeof(uint8_t);
|
/external/bluetooth/glib/gio/ |
gbufferedinputstream.c | 660 gssize nread; local 678 nread = g_input_stream_read (base_stream, 684 if (nread > 0) 685 priv->end += nread; 687 return nread; 701 gssize nread; local 732 nread = g_input_stream_skip (base_stream, 737 if (nread < 0 && bytes_skipped == 0) 740 if (nread > 0) 741 bytes_skipped += nread; 778 gssize nread; local 875 gssize nread; local 1013 gssize nread; local 1043 gssize nread; local 1076 gssize nread; local 1221 gssize nread; local 1254 gssize nread; local [all...] |
/external/iproute2/misc/ |
rtacct.c | 79 void nread(int fd, char *buf, int tot) function 125 nread(fd, (char*)tbl, 256*16); 601 nread(fd, (char*)kern_db, sizeof(*kern_db));
|
/external/qemu/audio/ |
ossaudio.c | 675 ssize_t nread; local 679 nread = read (oss->fd, p, bufs[i].len); 681 if (nread > 0) { 682 if (nread & hw->info.align) { 684 "alignment %d\n", nread, bufs[i].add << hwshift, 687 read_samples += nread >> hwshift; 688 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift, 692 if (bufs[i].len - nread) { 693 if (nread == -1) {
|
alsaaudio.c | 892 snd_pcm_sframes_t nread; local 901 nread = FF(snd_pcm_readi) (alsa->handle, src, len); 903 if (nread <= 0) { 904 switch (nread) { 913 alsa_logerr (nread, "Failed to read %ld frames\n", len); 926 nread, 935 hw->conv (dst, src, nread, &nominal_volume); 937 src = advance (src, nread << hwshift); 938 dst += nread; 940 read_samples += nread; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/file/ |
SDL_rwops.c | 274 size_t nread; local 276 nread = fread(ptr, size, maxnum, context->hidden.stdio.fp); 277 if ( nread == 0 && ferror(context->hidden.stdio.fp) ) { 280 return(nread);
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
httpread.c | 404 int nread; local 416 nread = read(h->sd, readbuf, sizeof(readbuf)); 417 if (nread < 0) 419 if (nread == 0) { 459 if (nread == 0) 465 nread--; 517 if (nread == 0) 524 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) { 610 if (nread <= 0) 622 nread-- [all...] |
/system/core/nexus/ |
Supplicant.cpp | 450 int nread; local 472 while ((nread = read(srcfd, buf, sizeof(buf))) != 0) { 473 if (nread < 0) { 480 write(destfd, buf, nread);
|
/external/bzip2/ |
bzlib.c | 1480 int bzerr, nread; local [all...] |
bzip2.c | 436 Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i; local 462 nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 ); 464 if ((bzerr == BZ_OK || bzerr == BZ_STREAM_END) && nread > 0) 465 fwrite ( obuf, sizeof(UChar), nread, stream ); 509 nread = fread ( obuf, sizeof(UChar), 5000, zStream ); 511 if (nread > 0) fwrite ( obuf, sizeof(UChar), nread, stream ); 557 Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i; local 580 nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 ); [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
SDL_fbevents.c | 764 int i, nread; local 811 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start); 812 if ( nread < 0 ) { 815 nread += start; 817 fprintf(stderr, "Read %d bytes from mouse, start = %d\n", nread, start); 819 for ( i=0; i<(nread-(packetsize-1)); i += packetsize ) { 913 if ( i < nread ) { 914 SDL_memcpy(mousebuf, &mousebuf[i], (nread-i)); 915 start = (nread-i); 988 int i, nread; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ipod/ |
SDL_ipodvideo.c | 447 int i, nread; local 455 nread = read (kbfd, keybuf, 128); 456 for (i = 0; i < nread; i++) {
|
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/ |
SDL_gsevents.c | 620 int i, nread; local 649 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start); 650 if ( nread < 0 ) { 653 nread += start; 655 fprintf(stderr, "Read %d bytes from mouse, start = %d\n", nread, start); 657 for ( i=0; i<(nread-(packetsize-1)); i += packetsize ) { 751 if ( i < nread ) { 752 SDL_memcpy(mousebuf, &mousebuf[i], (nread-i)); 753 start = (nread-i); 763 int i, nread; local [all...] |
/frameworks/base/core/jni/ |
android_net_wifi_Wifi.cpp | 135 int nread = ::wifi_wait_for_event(buf, sizeof buf); local 136 if (nread > 0) {
|
/libcore/support/src/test/java/tests/support/ |
Support_TestWebServer.java | 458 int nread = 0; local 462 nread = readOneLine(is); 464 if (nread == -1) { 514 return nread; 526 int nread = 0; local 529 nread = readOneLine(is); 531 if (nread == -1) { 551 String headerValue = new String(buf, i, nread - i - 2); // drop \r\n 554 return nread; 563 int nread = 0 local 584 int nread = 0; local 600 int nread = 0; local [all...] |
/external/chromium/third_party/libevent/test/ |
regress.c | 223 int nread; member in struct:both 239 both->nread += len; 252 if (len > both->nread) 253 len = both->nread; 263 both->nread -= len; 469 w1.nread = 4096; 470 w2.nread = 8192; 487 if (r1.nread == 8192 && r2.nread == 4096) 1142 static int nread; local [all...] |
/external/grub/grub/ |
asmstub.c | 829 nread (int fd, char *buf, size_t len) function 974 if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE) 980 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) 1029 if (nread (serial_fd, &c, 1) != 1)
|
/frameworks/base/tests/CoreTests/android/core/ |
TestWebServer.java | 499 int nread = 0; local 503 nread = readOneLine(is); 505 if (nread == -1) { 557 return nread; 569 int nread = 0; local 572 nread = readOneLine(is); 574 if (nread == -1) { 594 String headerValue = new String(buf, i, nread-1); 597 return nread; 606 int nread = 0 local 627 int nread = 0; local 643 int nread = 0; local [all...] |
/bionic/libc/tzcode/ |
localtime.c | 413 register int nread; local 507 nread = read(fid, u.buf, toread); 508 if (close(fid) < 0 || nread <= 0) { 530 if (nread - (p - u.buf) < 634 nread -= p - u.buf; 635 for (i = 0; i < nread; ++i) 643 if (doextend && nread > 2 && 644 u.buf[0] == '\n' && u.buf[nread - 1] == '\n' && 649 u.buf[nread - 1] = '\0'; [all...] |
/development/samples/GlobalTime/src/com/android/globaltime/ |
GlobalTime.java | 393 int nread = 0; local 394 while (nread < nbytes) { 395 nread += is.read(data, nread, nbytes - nread); 504 int nread = 0; local 505 while (nread < nbytes) { 506 nread += lis.read(ilights, nread, nbytes - nread); [all...] |
/external/chromium/third_party/icu/source/tools/tzcode/ |
localtime.c | 345 register int nread; local 389 nread = read(fid, u.buf, sizeof u.buf); 390 if (close(fid) < 0 || nread <= 0) 410 if (nread - (p - u.buf) < 514 nread -= p - u.buf; 515 for (i = 0; i < nread; ++i) 523 if (doextend && nread > 2 && 524 u.buf[0] == '\n' && u.buf[nread - 1] == '\n' && 529 u.buf[nread - 1] = '\0'; [all...] |
/external/icu4c/tools/tzcode/ |
localtime.c | 345 register int nread; local 389 nread = read(fid, u.buf, sizeof u.buf); 390 if (close(fid) < 0 || nread <= 0) 410 if (nread - (p - u.buf) < 514 nread -= p - u.buf; 515 for (i = 0; i < nread; ++i) 523 if (doextend && nread > 2 && 524 u.buf[0] == '\n' && u.buf[nread - 1] == '\n' && 529 u.buf[nread - 1] = '\0'; [all...] |
/system/core/libcutils/ |
tztime.c | 363 register int nread; local 443 nread = read(fid, u.buf, toread); 444 if (close(fid) < 0 || nread <= 0) 464 if (nread - (p - u.buf) < 568 nread -= p - u.buf; 569 for (i = 0; i < nread; ++i) 577 if (doextend && nread > 2 && 578 u.buf[0] == '\n' && u.buf[nread - 1] == '\n' && 583 u.buf[nread - 1] = '\0'; [all...] |