Searched refs:nread (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/main/native/ |
D | SocketInputStream.c | 60 jint fd, nread; in SocketInputStream_socketRead0() local 96 nread = NET_Timeout(fd, timeout); in SocketInputStream_socketRead0() 97 if (nread <= 0) { in SocketInputStream_socketRead0() 98 if (nread == 0) { in SocketInputStream_socketRead0() 101 } else if (nread == JVM_IO_ERR) { in SocketInputStream_socketRead0() 108 } else if (nread == JVM_IO_INTR) { in SocketInputStream_socketRead0() 119 nread = NET_Read(fd, bufP, len); in SocketInputStream_socketRead0() 121 if (nread <= 0) { in SocketInputStream_socketRead0() 122 if (nread < 0) { in SocketInputStream_socketRead0() 147 (*env)->SetByteArrayRegion(env, data, off, nread, (jbyte *)bufP); in SocketInputStream_socketRead0() [all …]
|
D | io_util.c | 41 jint nread; in readSingle() local 48 nread = (jint)IO_Read(fd, &ret, 1); in readSingle() 49 if (nread == 0) { /* EOF */ in readSingle() 51 } else if (nread == JVM_IO_ERR) { /* error */ in readSingle() 53 } else if (nread == JVM_IO_INTR) { in readSingle() 80 jint nread; in readBytes() local 110 nread = -1; in readBytes() 112 nread = (jint)IO_Read(fd, buf, len); in readBytes() 113 if (nread > 0) { in readBytes() 114 (*env)->SetByteArrayRegion(env, bytes, off, nread, (jbyte *)buf); in readBytes() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidPipedStreamTest.java | 125 int nread = 0; in testB() 126 while (nread < 5) { in testB() 127 ret = in.read(readBytes, nread, readBytes.length - nread); in testB() 132 nread += ret; in testB() 135 assertEquals(5, nread); in testB() 208 int nread = 0; in testC() 209 while (nread < readBytes.length) { in testC() 210 ret = in.read(readBytes, nread, readBytes.length - nread); in testC() 215 nread += ret; in testC()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebServer.java | 421 int nread = 0; in parseStatusLine() local 425 nread = readOneLine(is); in parseStatusLine() 427 if (nread == -1) { in parseStatusLine() 477 return nread; in parseStatusLine() 489 int nread = 0; in parseHeader() local 492 nread = readOneLine(is); in parseHeader() 494 if (nread == -1) { in parseHeader() 514 String headerValue = new String(buf, i, nread - i - 2); // drop \r\n in parseHeader() 517 return nread; in parseHeader() 526 int nread = 0; in readHeaders() local [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | BufferedInputStream.java | 347 int nread = read1(b, off + n, len - n); in read() local 348 if (nread <= 0) in read() 349 return (n == 0) ? nread : n; in read() 350 n += nread; in read()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 2905 long nread = 0L; 2910 nread += n; 2912 return nread; 3100 int nread = 0; 3105 while ((n = source.read(buf, nread, capacity - nread)) > 0) 3106 nread += n; 3122 buf[nread++] = (byte)n; 3124 return (capacity == nread) ? buf : Arrays.copyOf(buf, nread);
|