Searched refs:nread (Results 1 – 7 of 7) 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()
|
D | ObjectInputStream.java | 2790 int nread = (int) Math.min(remain, end - pos); in skip() local 2791 remain -= nread; in skip() 2792 pos += nread; in skip() 2794 int nread = (int) Math.min(remain, MAX_BLOCK_SIZE); in skip() local 2795 if ((nread = in.read(buf, 0, nread)) < 0) { in skip() 2798 remain -= nread; in skip() 2860 int nread = Math.min(len, end - pos); in read() local 2861 System.arraycopy(buf, pos, b, off, nread); in read() 2862 pos += nread; in read() 2863 return nread; in read() [all …]
|
/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);
|