HomeSort by relevance Sort by last modified time
    Searched refs:nread (Results 1 - 25 of 70) sorted by null

1 2 3

  /frameworks/compile/slang/
slang-data.c 50 size_t nread = fread(buf, sizeof(char), sizeof(buf), infile); local
51 size_t line_count = nread / 16;
54 data_size += nread;
70 if (nread % 16 != 0) {
73 for (i = line_count * 16; i < nread; ++i) {
80 if (nread != sizeof(buf)) {
  /device/moto/stingray/sensors/
InputEventReader.cpp 53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
54 if (nread<0 || nread % sizeof(input_event)) {
56 return nread<0 ? -errno : -EINVAL;
59 numEventsRead = nread / sizeof(input_event);
  /device/samsung/crespo/libsensors/
InputEventReader.cpp 53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
54 if (nread<0 || nread % sizeof(input_event)) {
56 return nread<0 ? -errno : -EINVAL;
59 numEventsRead = nread / sizeof(input_event);
  /frameworks/compile/libbcc/lib/ExecutionEngine/
Sha1Helper.cpp 66 ssize_t nread = file.read(buf, sizeof(buf)); local
68 if (nread < 0) {
74 static_cast<unsigned long>(nread));
76 if ((size_t)nread < sizeof(buf)) {
FileHandle.cpp 122 ssize_t nread = ::read(mFD, static_cast<void *>(buf), count); local
124 if (nread >= 0) {
125 return nread;
  /device/samsung/tuna/libsensors/
InputEventReader.cpp 75 const ssize_t nread = readv(fd, iov, iovcnt); local
76 if (nread < 0 || nread % sizeof(input_event)) {
78 return nread < 0 ? -errno : -EINVAL;
81 numEventsRead = nread / sizeof(input_event);
  /ndk/sources/host-tools/make-3.81/
arscan.c 324 register int nread = read (desc, buf, SARMAG);
325 if (nread != SARMAG || bcmp (buf, ARMAG, SARMAG))
334 register int nread = read (desc, (char *) &fl_header, FL_HSZ);
336 if (nread != FL_HSZ)
356 nread = read (desc, (char *) &fl_header_big, FL_HSZ_BIG);
357 if (nread != FL_HSZ_BIG)
379 register int nread = read(desc, &buf, sizeof (buf));
380 if (nread != sizeof (buf) || buf != ARMAG)
428 register int nread;
460 nread = read (desc, (char *) &member_header_big
322 register int nread = read (desc, buf, SARMAG); local
426 register int nread; local
    [all...]
  /bionic/libc/stdio/
vfscanf.c 111 int nread; /* number of characters consumed from fp */ local
124 nread = 0;
135 nread++, fp->_r--, fp->_p++;
155 nread++;
283 *va_arg(ap, __signed char *) = nread;
285 *va_arg(ap, short *) = nread;
287 *va_arg(ap, long *) = nread;
289 *va_arg(ap, ssize_t *) = nread;
291 *va_arg(ap, ptrdiff_t *) = nread;
293 *va_arg(ap, long long *) = nread;
    [all...]
  /external/yaffs2/yaffs2/direct/
yaffs_fileem.c 151 int nread; local
160 nread = read(filedisk.handle,data,512);
162 if(nread != 512) return YAFFS_FAIL;
168 nread= read(filedisk.handle,spare,16);
170 if(nread != 16) return YAFFS_FAIL;
yaffs_fileem2k.c 212 int nread; local
226 nread = read(h,data,dev->nDataBytesPerChunk);
228 if(nread != dev->nDataBytesPerChunk) return YAFFS_FAIL;
239 nread= read(h,tags,sizeof(yaffs_ExtendedTags));
240 if(nread != sizeof(yaffs_ExtendedTags)) return YAFFS_FAIL;
253 nread= read(h,&pt,sizeof(pt));
268 if(nread != sizeof(pt)) return YAFFS_FAIL;
  /system/core/nexus/
SupplicantListener.cpp 48 size_t nread = buflen - 1; local
50 if ((rc = wpa_ctrl_recv(mMonitor, buf, &nread))) {
55 buf[nread] = '\0';
56 if (!rc && !nread) {
63 SupplicantEvent *evt = mFactory->createEvent(buf, nread);
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidPipedStreamTest.java 125 int nread = 0;
126 while (nread < 5) {
127 ret = in.read(readBytes, nread, readBytes.length - nread);
132 nread += ret;
135 assertEquals(5, nread);
208 int nread = 0;
209 while (nread < readBytes.length) {
210 ret = in.read(readBytes, nread, readBytes.length - nread);
    [all...]
  /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...]
  /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...]
  /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/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...]
  /external/wpa_supplicant_8/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...]
wps_er_ssdp.c 31 int nread; local
39 nread = recvfrom(sd, buf, sizeof(buf) - 1, 0,
41 if (nread <= 0)
43 buf[nread] = '\0';
51 (u8 *) buf, nread);
  /system/core/libnetutils/
packet.c 158 int nread; local
170 nread = read(s, &packet, sizeof(packet));
171 if (nread < 0) {
180 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) {
182 LOGD("Packet is too small (%d) to be a UDP datagram", nread);
188 } else if (nread < ntohs(packet.ip.tot_len)) {
190 LOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
223 nread = ntohs(packet.ip.tot_len);
231 sum = finish_sum(checksum(&packet, nread, 0));
  /external/nist-sip/java/gov/nist/javax/sip/parser/
PipelinedMsgParser.java 310 int nread = 0; local
311 while (nread < contentLength) {
322 nread, contentLength - nread);
324 nread += readlength;
  /external/webkit/Source/WebKit/android/wds/
Command.cpp 66 int nread = fread(buf, 1, sizeof(buf), f); local
67 if (nread <= 0)
69 conn->write(buf, nread);
  /hardware/libhardware_legacy/wifi/
wifi.c 310 int nread; local
328 nread = read(srcfd, pbuf, sb.st_size);
330 if (nread < 0) {
348 while (((ilen + (iptr - pbuf)) < nread) && (iptr[ilen] != '\n'))
351 memmove(iptr + mlen, iptr + ilen + 1, nread - (iptr + ilen + 1 - pbuf));
360 write(destfd, pbuf, nread + mlen - ilen -1);
373 int nread; local
405 while ((nread = read(srcfd, buf, sizeof(buf))) != 0) {
406 if (nread < 0) {
413 write(destfd, buf, nread);
678 size_t nread = buflen - 1; local
    [all...]
  /external/expat/xmlwf/
xmlfile.c 167 int nread; local
176 nread = read(fd, buf, READ_SIZE);
177 if (nread < 0) {
183 if (XML_ParseBuffer(parser, nread, nread == 0) == XML_STATUS_ERROR) {
189 if (nread == 0) {
  /external/bluetooth/glib/gio/tests/
unix-streams.c 80 gssize nread, total; local
91 nread = g_input_stream_read (in, buf + total, sizeof (buf) - total,
93 if (nread <= 0 || err != NULL)
95 total += nread;
101 if (nread == 0)
  /frameworks/compile/libbcc/bcinfo/tools/
main.cpp 136 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); local
138 if (nread != bitcodeSize)
142 return nread;

Completed in 1166 milliseconds

1 2 3