/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidBufferedReaderTest.java | 39 assertEquals(str, read(a)); 46 assertEquals("AbCdEfGhIj", read(b, 10)); 66 public static String read(Reader a) throws IOException { method in class:OldAndroidBufferedReaderTest 70 r = a.read(); 77 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidBufferedReaderTest 79 int len = a.read(b, 0, x); 91 r = a.read(); 104 r = a.read();
|
OldAndroidPushbackInputStreamTest.java | 37 Assert.assertEquals("pushAbCdEfGhIjKlM\nOpQrStUvWxYz", read(a)); 45 Assert.assertEquals("XAbCdEfGhI", read(b, 10)); 58 public static String read(InputStream a) throws IOException { method in class:OldAndroidPushbackInputStreamTest 62 r = a.read(); 69 public static String read(InputStream a, int x) throws IOException { method in class:OldAndroidPushbackInputStreamTest 71 int len = a.read(b, 0, x); 83 r = a.read(); 96 r = a.read();
|
OldBufferedOutputStreamTest.java | 103 bais.read(wbytes, 0, 1013); 104 assertTrue("Test 4: Incorrect bytes written or read.", 167 bais.read(wbytes, 0, 1); 168 assertEquals("Test 3: Incorrect byte written or read;",
|
OldByteArrayInputStreamTest.java | 89 is.read(); 96 is.read(); 98 fail("Test 2: Should be able to read from closed stream."); 109 is.read(buf1, 0, buf1.length); 111 is.read(buf2, 0, buf2.length); 128 // Test for method int java.io.ByteArrayInputStream.read() 131 int c = is.read(); 133 assertTrue("read returned incorrect char", c == fileString 136 fail("Exception during read test"); 144 is.read(buf1, 0, buf1.length) [all...] |
OldCharArrayReaderTest.java | 74 assertEquals("Test 6: Incorrect character read;", 75 'W', cr.read()); 85 cr.read(); 86 fail("Failed to throw exception on read from closed stream"); 100 cr.read(); 103 'W', cr.read()); 123 * java.io.CharArrayReader#read() 127 assertEquals("Test 1: Read returned incorrect char;", 128 'H', cr.read()); 131 cr.read() == '\u8765') [all...] |
OldFilterOutputStreamTest.java | 107 bis.read(wbytes, 0, testLength); 108 assertTrue("Test 2: Incorrect bytes written or read.", 130 bis.read(wbytes); 131 assertTrue("Test 2: Incorrect bytes written or read.", 179 assertEquals("Test 2: Incorrect byte written or read;", 180 42, bis.read());
|
OldLineNumberInputStreamTest.java | 49 assertEquals("Test 1: Failed to read correct byte;", 50 '0', lnis.read()); 51 assertEquals("Test 2: Failed to read correct byte on dos text;", 52 '0', lnis2.read()); 53 assertEquals("Test 3: Failed to read correct byte on dos text;", 54 '\n', lnis2.read()); 55 assertEquals("Test 4: Failed to read correct byte on dos text;", 56 '1', lnis2.read()); 57 assertEquals("Test 5: Failed to read correct byte on dos text;", 58 '\n', lnis2.read()); [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldFileChannelTest.java | 73 // to read content from FileChannel 154 fis.read(readBuffer); 163 fis.read(readBuffer); 263 readOnlyFileChannel.read(readBuffer, -1); 270 writeOnlyFileChannel.read(readBuffer, -1); 277 readWriteFileChannel.read(readBuffer, -1); 286 readOnlyFileChannel.read(readBuffer, -1); 294 writeOnlyFileChannel.read(readBuffer, -1); 302 readWriteFileChannel.read(readBuffer, -1); 312 readOnlyFileChannel.read(null, 0, 1) [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.java | 70 while ((count = in.read(buffer)) != -1) { 81 is.read(new byte[4]);
|
/libcore/luni/src/test/java/libcore/sqlite/ |
OldBlobTest.java | 95 assertEquals(4,is.read(b)); 105 in.read();
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherInputStream1Test.java | 70 if ((byte) cis.read() != data[i]) { 75 if (cis.read() != -1) { 81 * read() method testing. Tests that method returns the correct value 90 if ((res = (byte) cis.read()) != data[i]) { 91 fail("read() returned the incorrect value. " + "Expected: " 95 if (cis.read() != -1) { 96 fail("read() should return -1 at the end of the stream."); 101 * read(byte[] b) method testing. Tests that method returns the correct 114 int got = cis.read(result); // the number of got bytes 118 fail("read(byte[] b) returned incorrect data.") [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 67 // read some data 68 int c = dis.read(); 81 c = dis.read(); 90 * java.security.DigestInputStream#read() 93 // Test for method int java.security.DigestInputStream.read() 96 // read and compare the data that the inStream has 98 while ((c = dis.read()) > -1) { 99 int d = inStream1.read(); 105 * java.security.DigestInputStream#read(byte[], int, int) 108 // Test for method int java.security.DigestInputStream.read(byte [] [all...] |
DigestInputStreamTest.java | 56 * Chunk size for read(byte, off, len) tests 107 * Test #1 for <code>read()</code> method<br> 109 * Assertion: returns the byte read<br> 120 // check that read() returns valid values 121 assertTrue("retval", ((byte)dis.read() == myMessage[i])); 137 * Test #2 for <code>read()</code> method<br> 140 * reached but not read before method call<br> 143 * reached but not read before method call<br> 153 dis.read(); 155 // check that subsequent read() calls return -1 (eos [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TestWebData.java | 113 out.write(in.read());
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
JPEGInputStream.java | 91 public int read() throws IOException { method in class:JPEGInputStream 92 read(mTmpBuffer, 0, 1); method 97 public int read(byte[] buffer) throws IOException { method in class:JPEGInputStream 98 return read(buffer, 0, buffer.length); 102 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:JPEGInputStream 172 throw new IllegalArgumentException("Bad arguments to read");
|
/packages/apps/Settings/src/com/android/settings/net/ |
DataUsageMeteredSettings.java | 64 mPolicyEditor.read();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
EndianUtils.java | 109 // ========================================== Swapping read/write routines
128 * @return the value read
141 * @return the value read
167 * @return the value read
182 * @return the value read
217 * @return the value read
249 * @return the value read
271 * @return the value read
295 * @return the value just read
301 return (short)( ( ( read( input ) & 0xff ) << 0 ) + 478 private static int read(InputStream input) method in class:EndianUtils [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/ |
hwdep.h | 32 long (*read) (struct snd_hwdep *hw, char __user *buf, long count, loff_t *offset); member in struct:snd_hwdep_ops
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/sound/ |
hwdep.h | 32 long (*read) (struct snd_hwdep *hw, char __user *buf, long count, loff_t *offset); member in struct:snd_hwdep_ops
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|