/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldDataInputStreamTest.java | 40 private final int testLength = fileString.length(); field in class:OldDataInputStreamTest 59 byte rbytes[] = new byte[testLength - 5]; 69 testLength - 5, r); 71 new String(rbytes).equals(fileString.substring(0, testLength - 5))); 76 new String(rbytes, 0, 5).equals(fileString.substring(testLength - 5))); 90 byte rbytes[] = new byte[testLength - 5]; 98 r = dis.read(rbytes, 1, testLength - 10); 100 testLength - 10, r); 108 new String(rbytes, 0, r).equals(fileString.substring(testLength - 10))); 122 byte rbytes[] = new byte[testLength [all...] |
H A D | OldFilterOutputStreamTest.java | 38 private final int testLength = fileString.length(); field in class:OldFilterOutputStreamTest 99 Support_OutputStream sos = new Support_OutputStream(testLength); 105 bis.available() == testLength); 106 byte[] wbytes = new byte[testLength]; 107 bis.read(wbytes, 0, testLength); 122 Support_OutputStream sos = new Support_OutputStream(testLength); 124 os.write(fileString.getBytes(), 10, testLength - 10); 128 bis.available() == testLength - 10); 129 byte[] wbytes = new byte[testLength - 10]; 145 Support_OutputStream sos = new Support_OutputStream(testLength); [all...] |
H A D | OldDataOutputStreamTest.java | 44 private static final int testLength = testString.length(); field in class:OldDataOutputStreamTest 74 os.write(testString.getBytes(), 5, testLength - 7); 77 byte[] rbuf = new byte[testLength]; 78 r = dis.read(rbuf, 0, testLength); 80 testLength - 7, r); 84 testString.substring(5, testLength - 2))); 143 byte[] rbuf = new byte[testLength]; 144 dis.read(rbuf, 0, testLength); 147 new String(rbuf, 0, testLength).equals(testString));
|
H A D | OldRandomAccessFileTest.java | 46 static final int testLength = testString.length(); field in class:OldRandomAccessFileTest 192 testLength, fc.position()); 218 raf.write(testString.getBytes(), 0, testLength); 219 assertEquals("Test 1: Incorrect filePointer returned. ", testLength, raf 237 assertEquals("Test 1: Incorrect length returned. ", testLength, 293 fos.write(testString.getBytes(), 0, testLength); 297 byte[] rbuf = new byte[testLength + 10]; 301 testLength, bytesRead); 303 new String(rbuf, 0, testLength)); 326 fos.write(testString.getBytes(), 0, testLength); [all...] |
H A D | OldPipedWriterTest.java | 28 static final int testLength = testString.length(); field in class:OldPipedWriterTest 106 reader.read(testLength)); 148 reader.read(testLength)); 166 reader.read(testLength)); 207 pw.write(testBuf, 0, testLength); 209 reader.read(testLength); 260 testBuf = new char[testLength]; 261 testString.getChars(0, testLength, testBuf, 0);
|
H A D | OldPipedOutputStreamTest.java | 77 static final int testLength = testString.length(); field in class:OldPipedOutputStreamTest
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_TestWebData.java | 97 testLength = length; 111 testLength = file.length(); 151 public long testLength; field in class:Support_TestWebData
|
H A D | Support_TestWebServer.java | 780 psPrint(ps, "Content-length: "+Support_TestWebData.testParams[testNum].testLength);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 134 private final int testLength = testString.length(); field in class:ObjectInputStreamTest 231 byte[] buf = new byte[testLength]; 249 ois.read(buf, testLength, 1); 261 ois.read(buf, 0, testLength); 271 byte[] buf = new byte[testLength]; 291 byte[] buf = new byte[testLength]; 311 byte[] buf = new byte[testLength]; 315 ois.readFully(buf, 0, testLength); 330 byte[] buf = new byte[testLength]; 348 ois.readFully(buf, testLength, [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CoderResultTest.java | 152 public void testLength() { method in class:CoderResultTest
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLConnectionTest.java | 701 assertEquals(params1.testLength, hf); 739 String.valueOf(params.testLength), hf);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | CharBufferTest.java | 677 public void testLength() { method in class:CharBufferTest
|