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

1 2 34 5 6 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/io/
CountingInputStreamTest.java 38 assertEquals(0, counter.read());
43 assertEquals(10, counter.read(new byte[10]));
48 assertEquals(3, counter.read(new byte[10], 1, 3));
64 assertEquals(-1, counter.read());
69 assertEquals(20, counter.read(new byte[30]));
71 assertEquals(-1, counter.read(new byte[30]));
77 assertEquals(10, counter.read(new byte[10]));
80 counter.read();
110 public int read() throws IOException { method in class:CountingInputStreamTest.UnmarkableInputStream
CharSequenceReaderTest.java 54 // reset and read again
59 // reset, skip, mark, then read the rest
66 // reset to the mark and then read the rest
77 reader.read(buf, 0, 11);
83 reader.read(buf, 10, 1);
89 reader.read(buf, 11, 0);
95 reader.read(buf, -1, 5);
101 reader.read(buf, 5, -1);
107 reader.read(buf, 0, 11);
130 reader.read();
203 int read; local
256 int read; local
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
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...]
OldAndroidBufferedInputStreamTest.java 41 Assert.assertEquals(str, read(a));
48 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
62 assertEquals('A', d.read());
64 assertEquals('b', d.read());
65 assertEquals('C', d.read());
67 assertEquals('b', d.read());
76 assertEquals(str, read(e, 10000));
82 public static String read(InputStream a) throws IOException { method in class:OldAndroidBufferedInputStreamTest
86 r = a.read();
98 r = a.read();
105 public static String read(InputStream a, int x) throws IOException { method in class:OldAndroidBufferedInputStreamTest
    [all...]
OldReaderTest.java 37 assertEquals("Wrong return value!", 4, simple.read(buf));
39 assertEquals("Wrong stuff read!", "Bla ", String.valueOf(buf));
40 simple.read(buf);
42 assertEquals("Wrong stuff read!", "bla,", String.valueOf(buf));
45 simple.read(buf);
55 assertEquals("Wrong return value!", 4, simple.read(buf));
56 assertEquals("Wrong stuff read!", "Bla ", new String(buf));
57 simple.read(buf);
58 assertEquals("Wrong stuff read!", "bla,", new String(buf));
61 simple.read(buf)
116 @Override public int read(char[] buf, int offset, int count) { method in class:OldReaderTest.MockReader
    [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...]
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...]
  /libcore/ojluni/src/main/java/sun/nio/ch/
ChannelInputStream.java 50 // the read) we never do that, though.
52 // read(ReadableByteChannel,ByteBuffer, boolean block)
53 public static int read(ReadableByteChannel ch, ByteBuffer bb) method in class:ChannelInputStream
65 int n = ch.read(bb);
72 return ch.read(bb);
85 public synchronized int read() throws IOException { method in class:ChannelInputStream
88 int n = this.read(b1);
94 public synchronized int read(byte[] bs, int off, int len) method in class:ChannelInputStream
110 return read(bb);
113 protected int read(ByteBuffer bb method in class:ChannelInputStream
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
MimeBoundaryInputStream.java 28 * After the stream ends (i.e. read() returns -1) {@link #hasMoreParts()}
64 * before any bytes have been read.
66 int b = read();
109 while (read() != -1) {
114 * @see java.io.InputStream#read()
116 public int read() throws IOException { method in class:MimeBoundaryInputStream
128 int b1 = s.read();
129 int b2 = s.read();
150 int b = s.read();
165 int prev = s.read();
    [all...]
  /external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
PipeByteBuffer.java 28 * read(), which converts data in ByteBuffer into shorts.
51 * exceed 2^31 - 1, or else overflows happens and the positions of read and mFront becomes
69 public int read(short[] buffer, int offset, int requiredSamples) { method in class:PipeByteBuffer
78 // of checking there's enough data then we will read it. If not just wait until next call
79 // of read.
85 // if not enough samples, just read partial samples
92 int read = mMaxValues - front; // total samples from currentIndex until the end of array local
93 if (read > requiredSamples) {
94 read = requiredSamples;
98 byteBufferToArray(buffer, offset, read, byteBufferFront)
    [all...]
Pipe.java 39 * Read at most "count" number of samples into array "buffer", starting from index "offset".
40 * If the available samples to read is smaller than count, just read as much as it can and
41 * return the amount of samples read (non-blocking). offset + count must be <= buffer.length.
43 public abstract int read(short[] buffer, int offset, int count); method in class:Pipe
46 /** Return the amount of samples available to read. */
  /external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
RandomAccessFileInputStreamTest.java 92 Assert.assertEquals(x, stream.read());
94 Assert.assertEquals(-1, stream.read());
103 int numRead = stream.read(buffer);
109 Assert.assertEquals(-1, stream.read(buffer, 0, 1));
115 Assert.assertEquals(0, stream.read(new byte[] {}, 0, -1));
124 int numRead = stream.read(buffer, 0, 2); // At most 2 bytes of the buffer can be used
130 Assert.assertEquals(-1, stream.read());
144 // Set a mark after the first byte, which should be 1. Read a second byte, which should be 2.
145 Assert.assertEquals(1, stream.read());
147 Assert.assertEquals(2, stream.read());
    [all...]
  /dalvik/dx/src/com/android/dx/io/instructions/
CodeInput.java 26 * Returns whether there are any more code units to read. This
34 public int read() throws EOFException; method in interface:CodeInput
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/io/
DigestInputStream.java 22 public int read() method in class:DigestInputStream
25 int b = in.read();
34 public int read( method in class:DigestInputStream
40 int n = in.read(b, off, len);
MacInputStream.java 22 public int read() method in class:MacInputStream
25 int b = in.read();
34 public int read( method in class:MacInputStream
40 int n = in.read(b, off, len);
  /external/glide/library/src/main/java/com/bumptech/glide/load/model/
StreamEncoder.java 22 int read; local
23 while ((read = data.read(buffer)) != -1) {
24 os.write(buffer, 0, read);
  /external/oauth/core/src/main/java/net/oauth/client/
ExcerptInputStream.java 23 int read; local
24 while ((read = read(excerpt, total, LIMIT - total)) != -1 && ((total += read) < LIMIT));
  /external/okhttp/okio/okio/src/main/java/okio/
Source.java 22 * Supplies a stream of bytes. Use this interface to read data from wherever
32 * fill it with the data your application is to read.
51 * java.io.InputStream#read single-byte read} method that is awkward to
65 * them to {@code sink}. Returns the number of bytes read, or -1 if this
68 long read(Buffer sink, long byteCount) throws IOException; method in interface:Source
75 * error to read a closed source. It is safe to close a source more than once.
  /frameworks/base/core/java/android/content/pm/
MacAuthenticatedInputStream.java 62 public int read() throws IOException { method in class:MacAuthenticatedInputStream
63 final int b = super.read();
71 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:MacAuthenticatedInputStream
72 int numRead = super.read(buffer, offset, count);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
StringBufferInputStreamTest.java 45 * java.io.StringBufferInputStream#read()
48 // Test for method int java.io.StringBufferInputStream.read()
51 sbis.read(buf, 0, 5);
56 * java.io.StringBufferInputStream#read(byte[], int, int)
59 // Test for method int java.io.StringBufferInputStream.read(byte [],
61 assertEquals("Read returned incorrect char", 'H', sbis.read());
72 assertEquals("Failed to reset", 'H', sbis.read());
82 assertEquals("Skip positioned at incorrect char", 'W', sbis.read());
  /libcore/ojluni/src/main/java/java/nio/channels/
ReadableByteChannel.java 33 * A channel that can read bytes.
35 * <p> Only one read operation upon a readable channel may be in progress at
36 * any given time. If one thread initiates a read operation upon a channel
37 * then any other thread that attempts to initiate another read operation will
39 * I/O operations may proceed concurrently with a read operation depends upon
53 * <p> An attempt is made to read up to <i>r</i> bytes from the channel,
57 * <p> Suppose that a byte sequence of length <i>n</i> is read, where
66 * <p> A read operation might not fill the buffer, and in fact it might not
67 * read any bytes at all. Whether or not it does so depends upon the
69 * for example, cannot read any more bytes than are immediately availabl
106 public int read(ByteBuffer dst) throws IOException; method in interface:ReadableByteChannel
    [all...]
  /libcore/ojluni/src/main/java/java/security/
DigestInputStream.java 42 * {@link #read() read} methods.
46 * {@code read} methods
112 * input stream, blocking until the byte is actually read. If the
115 * with this stream, passing it the byte read.
117 * @return the byte read.
123 public int read() throws IOException { method in class:DigestInputStream
124 int ch = in.read();
137 * read. If the digest function is on (see
142 * @param b the array into which the data is read
160 public int read(byte[] b, int off, int len) throws IOException { method in class:DigestInputStream
    [all...]
  /libcore/support/src/test/java/tests/support/
ThrowingReader.java 26 * read.
38 @Override public int read() throws IOException { method in class:ThrowingReader
40 int result = super.read();
45 @Override public int read(char[] buf, int offset, int count) method in class:ThrowingReader
53 int returned = super.read(buf, offset, count);
  /system/core/libmemunreachable/
ProcessMappings.h 27 bool read; member in struct:android::Mapping
  /tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
ReadWithDifferentCompressionLevelsTest.java 33 try (ZFile read = new ZFile(l9File, new ZFileOptions())) {
34 assertNotNull(read.get("text-files/rfc2460.txt"));
43 try (ZFile read = new ZFile(l1File, new ZFileOptions())) {
44 assertNotNull(read.get("text-files/rfc2460.txt"));

Completed in 479 milliseconds

1 2 34 5 6 7 8 91011>>