/libcore/luni/src/test/java/libcore/java/io/ |
OldDataInputStreamTest.java | 59 byte rbytes[] = new byte[testLength - 5]; 67 r = dis.read(rbytes); 71 new String(rbytes).equals(fileString.substring(0, testLength - 5))); 73 r = dis.read(rbytes); 76 new String(rbytes, 0, 5).equals(fileString.substring(testLength - 5))); 82 dis.read(rbytes); 90 byte rbytes[] = new byte[testLength - 5]; 98 r = dis.read(rbytes, 1, testLength - 10); 101 assertEquals("Test 2: Incorrect data read.", 0, rbytes[0]); 103 new String(rbytes, 1, r).equals(fileString.substring(0, r))) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
PrintStreamTest.java | 212 byte[] rbytes = new byte[4000]; 213 bis.read(rbytes, 0, fileString.length()); 214 assertEquals("Incorrect char[] written", fileString, new String(rbytes, 311 byte[] rbytes = new byte[2]; 312 bis.read(rbytes, 0, 2); 313 assertEquals("Incorrect Object written", "[]", new String(rbytes, 0, 2)); 337 byte rbytes[] = new byte[100]; 338 bis.read(rbytes, 0, 11); 340 rbytes, 0, 11)); 381 byte[] rbytes = new byte[4000] [all...] |
DataInputStreamTest.java | 59 byte rbytes[] = new byte[fileString.length()]; 60 dis.read(rbytes); 61 assertTrue("Incorrect data read", new String(rbytes, 0, fileString 72 byte rbytes[] = new byte[fileString.length()]; 73 dis.read(rbytes, 0, rbytes.length); 74 assertTrue("Incorrect data read", new String(rbytes, 0, fileString 136 byte rbytes[] = new byte[fileString.length()]; 137 dis.readFully(rbytes); 138 assertTrue("Incorrect data read", new String(rbytes, 0, fileStrin [all...] |
FileOutputStreamTest.java | 180 byte rbytes[] = new byte[4000]; 181 fis.read(rbytes, 0, fileString.length()); 182 assertTrue("Incorrect string returned", new String(rbytes, 0, 194 byte rbytes[] = new byte[4000]; 195 fis.read(rbytes, 0, fileString.length()); 196 assertTrue("Incorrect bytes written", new String(rbytes, 0, fileString
|
/external/toybox/toys/pending/ |
top.c | 143 int fd, len, rbytes = 0; local 147 rbytes = readall(fd, toybuf, sizeof(toybuf)); 149 if (rbytes <= 0) { 153 toybuf[rbytes] = '\0'; 154 while (--rbytes >= 0 && toybuf[rbytes] == '\0') continue; 164 for (; rbytes >= 0; rbytes--) 165 if ((unsigned char)toybuf[rbytes] < ' ') toybuf[rbytes] = ' ' [all...] |
/external/libvncserver/x11vnc/misc/ |
desktop.cgi | 932 my $rbytes = ''; 934 read(RAN, $rbytes, 8); 936 read(RAN, $rbytes, 8); 938 $rbytes = sprintf("%08d", $$); 944 my $seed = join('', unpack("C8", $rbytes)); [all...] |