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