HomeSort by relevance Sort by last modified time
    Searched refs:read (Results 101 - 125 of 7502) sorted by null

1 2 3 45 6 7 8 91011>>

  /tools/tradefederation/core/tests/src/com/android/tradefed/util/
SizeLimitedOutputStreamTest.java 49 int read; local
50 while ((read = readStream.read()) != -1) {
51 readData[readDataPos] = (byte)read;
  /frameworks/base/core/tests/coretests/src/android/net/
LocalSocketTest.java 46 // Test trivial read and write
49 assertEquals(42, ls1.getInputStream().read());
62 assertEquals(42, ls1.getInputStream().read());
71 assertEquals(1, ls.getInputStream().read());
77 countRead = ls.getInputStream().read(buffer, 1, 15);
87 ls.getInputStream().read(buffer, 1, 16);
115 ls.getInputStream().read(buffer, -1, 15);
122 ls.getInputStream().read(buffer, 0, -1);
128 // Try read of length 0
130 countRead = ls1.getInputStream().read(buffer, 0, 0)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
CharArrayReaderTest.java 44 int c = cr.read();
56 cr.read();
57 fail("Failed to throw exception on read from closed stream");
73 cr.read();
75 assertEquals("Failed to mark correct position", 'W', cr.read());
87 * java.io.CharArrayReader#read()
91 assertEquals("Read returned incorrect char", 'H', cr.read());
93 assertTrue("Incorrect double byte char", cr.read() == '\u8765');
97 * java.io.CharArrayReader#read(char[], int, int
    [all...]
InputStreamReaderTest.java 39 // A ByteArrayInputStream that only returns a single byte per read
67 public int read() { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
76 public int read(byte[] buffer, int offset, int length) { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
143 is.read();
170 int count = reader.read(new char[1]);
176 reader.read();
323 * java.io.InputStreamReader#read()
326 assertEquals('T', (char) reader.read());
327 assertEquals('h', (char) reader.read());
328 assertEquals('i', (char) reader.read());
    [all...]
  /art/tools/dexfuzz/src/dexfuzz/rawdex/
EncodedArrayItem.java 25 public void read(DexRandomAccessFile file) throws IOException { method in class:EncodedArrayItem
27 (value = new EncodedArray()).read(file);
  /cts/tests/tests/os/src/android/os/cts/
ISharedMemoryService.aidl 23 byte read(int index);
ParcelFileDescriptor_AutoCloseInputStreamTest.java 30 assertEquals(0, in.read());
35 in.read();
  /external/proguard/src/proguard/io/
JarReader.java 27 * This DataEntryReader lets a given DataEntryReader read all data entries of
28 * the read jar/war/zip data entries.
48 public void read(DataEntry dataEntry) throws IOException method in class:JarReader
65 dataEntryReader.read(new ZipDataEntry(dataEntry,
  /external/syslinux/com32/lib/sys/
read.c 29 * read.c
41 ssize_t read(int fd, void *buf, size_t count) function
50 return fp->iop->read(fp, buf, count);
  /frameworks/base/core/java/android/service/persistentdata/
IPersistentDataBlockService.aidl 31 byte[] read();
  /frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
RemoteInputStream.java 24 int read() throws IOException; method in interface:RemoteInputStream
26 byte[] read(int off, int len) throws IOException; method in interface:RemoteInputStream
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
BrokenInputStream.java 24 * IOException after having read a specified number of bytes. Used for
41 public int read() throws IOException { method in class:BrokenInputStream
47 return stream.read();
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidByteArrayInputStreamTest.java 38 Assert.assertEquals(str, read(a));
39 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
44 public static String read(InputStream a) throws IOException { method in class:OldAndroidByteArrayInputStreamTest
48 r = a.read();
55 public static String read(InputStream a, int x) throws IOException { method in class:OldAndroidByteArrayInputStreamTest
57 int len = a.read(b, 0, x);
69 r = a.read();
82 r = a.read();
OldAndroidCharArrayReaderTest.java 37 Assert.assertEquals(str, read(a));
38 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
43 public static String read(Reader a) throws IOException { method in class:OldAndroidCharArrayReaderTest
47 r = a.read();
54 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidCharArrayReaderTest
56 int len = a.read(b, 0, x);
68 r = a.read();
81 r = a.read();
OldAndroidStringReaderTest.java 35 Assert.assertEquals(str, read(a));
36 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
41 public static String read(Reader a) throws IOException { method in class:OldAndroidStringReaderTest
45 r = a.read();
52 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidStringReaderTest
54 int len = a.read(b, 0, x);
66 r = a.read();
79 r = a.read();
OldFilterInputStreamTest.java 75 is.read();
76 fail("Test 1: Read from closed stream succeeded.");
100 is.read(buf1, 0, bufSize);
102 is.read(buf1, 0, bufSize);
108 is.read(buf2, 0, bufSize);
117 is.read(buf1, 0, bufSize);
119 is.read(buf1, 0, bufSize);
121 is.read(buf2, 0, bufSize);
143 int c = is.read();
144 assertEquals("Test 1: Read returned incorrect char;"
    [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...]
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeInputStream.java 33 public int read() { method in class:FakeInputStream
44 public int read(byte[] buffer, int offset, int length) { method in class:FakeInputStream
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteGiftTest.java 48 for (File read : readList) {
49 read.getParentFile().mkdirs();
50 read.createNewFile();
51 assertFileReadWriteAccess(read);
53 writeInt(read, 101);
54 assertEquals(101, readInt(read));
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowAssetInputStream.java 36 protected int read() throws IOException { method in class:ShadowAssetInputStream
37 return delegate.read();
41 protected int read(byte[] b) throws IOException { method in class:ShadowAssetInputStream
42 return delegate.read(b);
46 protected int read(byte[] b, int off, int len) throws IOException { method in class:ShadowAssetInputStream
47 return delegate.read(b, off, len);
  /external/smali/util/src/main/java/org/jf/util/
RandomAccessFileInputStream.java 48 @Override public int read() throws IOException { method in class:RandomAccessFileInputStream
51 return raf.read();
54 @Override public int read(byte[] bytes) throws IOException { method in class:RandomAccessFileInputStream
56 int bytesRead = raf.read(bytes);
61 @Override public int read(byte[] bytes, int offset, int length) throws IOException { method in class:RandomAccessFileInputStream
63 int bytesRead = raf.read(bytes, offset, length);
  /frameworks/base/core/java/android/content/pm/
LimitedLengthInputStream.java 9 * A class that limits the amount of data that is read from an InputStream. When
17 * The end of the stream where we don't want to allow more data to be read.
58 public synchronized int read() throws IOException { method in class:LimitedLengthInputStream
64 return super.read();
68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { method in class:LimitedLengthInputStream
84 final int numRead = super.read(buffer, offset, byteCount);
91 public int read(byte[] buffer) throws IOException { method in class:LimitedLengthInputStream
92 return read(buffer, 0, buffer.length);
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
CountingInputStream.java 27 * read as expected.
49 * number read.
51 * @param b the buffer into which the data is read, not null
52 * @return the total number of bytes read into the buffer, -1 if end of stream
54 * @see java.io.InputStream#read(byte[])
56 public int read(byte[] b) throws IOException { method in class:CountingInputStream
57 int found = super.read(b);
64 * keeping count of the number read.
66 * @param b the buffer into which the data is read, not null
68 * @param len the maximum number of bytes to read
73 public int read(byte[] b, int off, int len) throws IOException { method in class:CountingInputStream
87 public int read() throws IOException { method in class:CountingInputStream
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
CloseShieldInputStream.java 48 * @see java.io.InputStream#read()
50 public int read() throws IOException { method in class:CloseShieldInputStream
52 return is.read();
105 * @see java.io.FilterInputStream#read(byte[])
107 public int read(byte b[]) throws IOException { method in class:CloseShieldInputStream
109 return is.read(b);
113 * @see java.io.FilterInputStream#read(byte[], int, int)
115 public int read(byte b[], int off, int len) throws IOException { method in class:CloseShieldInputStream
117 return is.read(b, off, len);
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
PositionInputStream.java 44 public int read() throws IOException { method in class:PositionInputStream
45 int b = inputStream.read();
75 public int read(byte b[]) throws IOException { method in class:PositionInputStream
76 final int c = inputStream.read(b);
81 public int read(byte b[], int off, int len) throws IOException { method in class:PositionInputStream
82 final int c = inputStream.read(b, off, len);

Completed in 1101 milliseconds

1 2 3 45 6 7 8 91011>>