/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ReaderTest.java | 32 mockReader.read(charBuffer); 40 //the charBuffer has the capacity of 0, then there the number of char read 46 int result = mockReader.read(charBuffer); 49 mockReader.read(destBuffer); 61 int result = mockReader.read(charBuffer); 68 mockReader.read(destBuffer); 87 * @tests {@link java.io.Reader#read()} 93 assertEquals("Should be equal to -1", -1, reader.read()); 99 // normal read 102 .read()); 184 public int read(char[] buf, int offset, int count) throws IOException { method in class:ReaderTest.MockReader [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
ProcessBuilderTest.java | 169 assertTrue(in.read(buf) > 0); 171 assertTrue(err.read(buf) > 0);
|
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixSocketTest.java | 38 // Simple read/write test over the IO streams 53 in.read(); 59 clientIn.read(new byte[42]); 62 clientIn.read(); 70 clientIn.read(); 76 clientIn.read(new byte[5]);
|
/external/javassist/sample/preproc/ |
Compiler.java | 91 while ((c = reader.read()) != -1) { 103 while ((c = input.read()) != -1) 112 c = reader.read(); 117 while ((c = reader.read()) != -1) { 132 word[i] = reader.read(); 145 c = reader.read(); 158 reader.read(); // skip 'y' 192 return reader.read(); 205 c = reader.read(); 216 c = reader.read(); 310 public int read() throws IOException { method in class:CommentSkipper [all...] |
/external/javassist/src/main/javassist/bytecode/ |
FieldInfo.java | 62 read(in); 245 private void read(DataInputStream in) throws IOException { method in class:FieldInfo 252 attribute.add(AttributeInfo.read(constPool, in));
|
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 123 in.read(); 134 reader.read(); 145 channel.read(ByteBuffer.allocate(BUFFER_SIZE));
|
OldBufferedInputStreamTest.java | 43 is.read(); 45 fail("Test 1: Read failed on a freshly constructed buffer."); 108 is.read(); 141 is.read(buf1, 0, buf1.length); 143 is.read(buf2, 0, buf2.length); 156 is.read(buf2, 0, buf2.length); 172 int c = is.read(); 173 assertTrue("Test 1: Incorrect character read.", 184 // Read more bytes than are buffered. 186 assertEquals("Test 2: Incorrect byte read;", bytes[i], in.read()) [all...] |
OldBufferedReaderTest.java | 63 br.read(); 64 fail("Test 1: Read on closed stream."); 92 br.read(buf, 0, 500); 102 br.read(buf, 0, 1000); 116 in.read(new char[14], 0, 14); 118 assertTrue("Wrong chars", in.read() == (char) 6 119 && in.read() == (char) 7); 130 assertTrue("Wrong chars 2", in.read() == (char) 6 131 && in.read() == (char) 7); 147 int r = br.read(); [all...] |
OldFileInputStreamTest.java | 119 fis.read(buffer, 0, 10); 139 int c = is.read(); 140 assertEquals("Test 1: Read returned incorrect char;", 145 is.read(); 156 is.read(buf1); 158 assertTrue("Test 1: Failed to read correct data.", 164 is.read(buf1); 175 is.read(buf1, 0, buf1.length); 182 is.read();
|
OldFilterReaderTest.java | 53 public int read() throws IOException { method in class:OldFilterReaderTest.MockReader 58 public int read(char[] buffer, int offset, int count) throws IOException { method in class:OldFilterReaderTest.MockReader 108 fr.read(); 109 assertTrue("read() has not been called.", called); 114 fr.read(buffer, 0, 5); 115 assertTrue("read(char[], int, int) has not been called.", called); 126 fr.read(buffer, 0, -1); 133 fr.read(buffer, -1, 1); 140 fr.read(buffer, 10, 1);
|
OldInputStreamTest.java | 42 public int read() throws IOException { method in class:OldInputStreamTest.MockInputStream 93 // Test 1: This read operation should complete without an error. 94 assertEquals("Test 1: Incorrect count of bytes read.", 95 is.read(b), 10); 100 assertTrue("Test 1: Wrong bytes read.", equal); 102 // Test 2: Test that the correct number of bytes read is returned 105 bytesRead = is.read(b); 106 assertEquals("Test 2: Incorrect count of bytes read.", 112 assertTrue("Test 2: Wrong bytes read.", equal); 115 // the next call of read(byte[]) should return -1 [all...] |
OldPipedOutputStreamTest.java | 60 public String read(int nbytes) { method in class:OldPipedOutputStreamTest.PReader 63 reader.read(buf, 0, nbytes); 165 testString.substring(0, 10), reader.read(10)); 208 assertEquals("Test 5: Bytes read do not match the bytes written. ", 209 testString, reader.read(testString.length())); 238 assertEquals("Test 2: The byte read does not match the byte written. ", 239 "c", reader.read(1));
|
OldPipedWriterTest.java | 58 public String read(int nbytes) { method in class:OldPipedWriterTest.PReader 61 pr.read(buf, 0, nbytes); 106 reader.read(testLength)); 148 reader.read(testLength)); 166 reader.read(testLength)); 209 reader.read(testLength); 210 assertTrue("Test 5: Characters read do not match the characters written.", 252 reader.read(3); 253 assertTrue("Test 2: The charaacters read do not match the characters written: " +
|
OldPushbackInputStreamTest.java | 111 assertEquals("Test 1: Incorrect byte read;", 66, tobj.read()); 114 tobj.read(); 120 assertEquals("Test 3: Incorrect byte read;", 121 fileString.getBytes()[0], pis.read()); 129 tobj.read(buf, 6, 5); 130 assertEquals("Wrong value read!", "BEGIN", new String(buf, 6, 5)); 131 assertEquals("Too much read!", "012345BEGIN123456789", new String(buf)); 134 tobj.read(buf, 6, 5); 147 tobj.read(buf, -1, 1) [all...] |
OldPushbackReaderTest.java | 41 pbr.read(buf, 0, 5); 108 * java.io.PushbackReader#read() 114 assertEquals("Wrong value read!", 66, tobj.read()); 117 tobj.read(); 125 * java.io.PushbackReader#read(char[], int, int) 132 tobj.read(buf, 6, 5); 133 assertEquals("Wrong value read!", "BEGIN", new String(buf, 6, 5)); 134 assertEquals("Too much read!", "012345BEGIN123456789", new String(buf)); 137 tobj.read(buf, 6, 5) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldUnixSocketTest.java | 34 // Simple read/write test over the IO streams 49 in.read(); 55 clientIn.read(new byte[42]); 58 int i = clientIn.read(); 66 clientIn.read(); 72 clientIn.read(new byte[5]);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
DeflaterOutputStreamTest.java | 43 assertEquals(1, in.read()); 44 assertEquals(2, in.read()); 45 assertEquals(3, in.read()); 52 in.read(); 65 * stream is read, that read will fail when no bytes are available. Failing 69 * the dry read to block indefinitely. 144 int n = iis.read(input, total, input.length - total); 151 iis.read();
|
OldZipFileTest.java | 42 while ((iRead = is.read(buf, 0, buf.length)) != -1) { 72 data = in.read(); 75 assertEquals("Must not be able to read directory data", -1, data); 94 is1.read(); 95 is2.read(); 100 is1.read(); 107 is2.read();
|
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
ZipFileTest.java | 45 iRead = is.read(buf, 0, buf.length); 58 final String forbidenPermissionAction = "read"; 64 // for a PropertyPermission with action"read" to get system props. 143 while ((result = in.read(buf)) != -1) { 171 is1.read(); 172 is2.read(); 177 is1.read(); 184 is2.read(); 242 r = in.read(); 250 r = in.read(buf) [all...] |
/bionic/libc/kernel/common/linux/ |
sysfs.h | 47 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/cts/suite/audio_quality/lib/src/ |
SignalProcessingImpl.cpp | 159 if (!read((char*)header, sizeof(header))) { 160 LOGE("read failed"); 181 if (!read((char*)&type, sizeof(type))) { 182 LOGE("read failed"); 187 if (!read((char*)&dataLen, sizeof(dataLen))) { 188 LOGE("read failed"); 213 if (!read((*buffer)->getData(), dataLen)) { 214 LOGE("read failed"); 223 if (!read((char*)val->getPtr(), sizeof(int64_t))) { 224 LOGE("read failed") 247 bool SignalProcessingImpl::read(char* data, int len) function in class:SignalProcessingImpl [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetManager_AssetInputStreamTest.java | 37 mAssetInputStream.read(); 54 assertEquals(bytes[i], mAssetInputStream.read()); 59 assertEquals(bytes[i + readlimit], mAssetInputStream.read()); 70 assertEquals(bytes[i], mAssetInputStream.read()); 72 assertEquals(end, mAssetInputStream.read()); 74 // test read(byte[]) 78 int ret = mAssetInputStream.read(data); 84 assertEquals(len - dataLength, mAssetInputStream.read(data)); 88 assertEquals(end, mAssetInputStream.read(data)); 90 // test read(bytep[], int, int [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioRecord_BufferSizeTest.java | 73 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0);
|
/cts/tests/tests/os/src/android/os/cts/ |
RecoverySystemTest.java | 50 int read; local 51 while ((read = is.read(b)) != -1) { 52 fos.write(b, 0, read);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArray.java | 24 * Wrapper for a {@code byte[]}, which provides read-only access and 304 public int read() throws IOException { method in class:ByteArray.MyInputStream 314 public int read(byte[] arr, int offset, int length) { method in class:ByteArray.MyInputStream
|