HomeSort by relevance Sort by last modified time
    Searched full:read (Results 176 - 200 of 14757) sorted by null

1 2 3 4 5 6 78 91011>>

  /libcore/luni/src/test/java/libcore/java/io/
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();
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();
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...]
  /libcore/luni/src/main/java/java/io/
LineNumberReader.java 23 * time {@code '\r'}, {@code '\n'} or {@code "\r\n"} is read. The class has an
75 * indicates how many characters can be read before the mark is invalidated.
82 * the number of characters that can be read from this stream
108 * @return the character read or -1 if the end of the source reader has been
115 public int read() throws IOException { method in class:LineNumberReader
117 int ch = super.read();
119 ch = super.read();
137 * Returns the number of characters actually read or -1 if no characters
138 * have been read and the end of this reader has been reached.
145 * the array in which to store the characters read
157 public int read(char[] buffer, int offset, int count) throws IOException { method in class:LineNumberReader
159 int read = super.read(buffer, offset, count); local
    [all...]
ObjectInput.java 28 * Indicates the number of bytes of primitive data that can be read without
51 * @return the byte read or -1 if the end of this stream has been reached.
55 public int read() throws IOException; method in interface:ObjectInput
62 * the array in which to store the bytes read.
63 * @return the number of bytes read or -1 if the end of this stream has been
68 public int read(byte[] buffer) throws IOException; method in interface:ObjectInput
76 * the array in which to store the bytes read.
78 * the initial position in {@code buffer} to store the bytes read
82 * @return the number of bytes read or -1 if the end of this stream has been
87 public int read(byte[] buffer, int offset, int count) throws IOException method in interface:ObjectInput
    [all...]
CharArrayReader.java 50 * the reader is set to the length of the buffer and the object to to read
54 * the char array from which to read.
64 * read the buffer is set to {@code offset}.
67 * the char array from which to read.
69 * the index of the first character in {@code buf} to read.
71 * the number of characters that can be read from {@code buf}.
97 * longer read from it. Only the first invocation of this method has any
170 * @return the character read as an int or -1 if the end of the reader has
176 public int read() throws IOException {
189 * Returns the number of characters actually read or -1 if the end of reade
    [all...]
  /frameworks/base/core/java/com/android/internal/util/
BitwiseInputStream.java 20 * An object that provides bitwise incremental read access to a byte array.
29 // The byte array being read from.
66 * Read some data and increment the current position.
71 * @param bits the amount of data to read (gte 0, lte 8)
72 * @return byte of read data (possibly partially filled, from lsb)
74 public int read(int bits) throws AccessException { method in class:BitwiseInputStream
78 throw new AccessException("illegal read " +
90 * Read data in bulk into a byte array and increment the current position.
92 * @param bits the amount of data to read
93 * @return newly allocated byte array of read dat
    [all...]
  /external/javasqlite/src/main/java/SQLite/
Blob.java 19 * Read position, file pointer.
95 * Read single byte from blob.
96 * @return byte read
99 public int read() throws IOException { method in class:BlobR
101 int n = blob.read(b, 0, pos, b.length);
110 * Read byte array from blob.
112 * @return number of bytes read
115 public int read(byte b[]) throws IOException { method in class:BlobR
116 int n = blob.read(b, 0, pos, b.length);
125 * Read slice of byte array from blob
132 public int read(byte b[], int off, int len) throws IOException { method in class:BlobR
306 native int read(byte[] b, int off, int pos, int len) throws IOException; method in class:Blob
    [all...]
  /frameworks/av/include/media/stagefright/
CameraSourceTimeLapse.h 45 // If the frame capture interval is large, read will block for a long time.
47 // mediaRecorder waits until the read returns, causing a long wait for
48 // stop() to return. To avoid this, we can make read() return a copy of the
49 // last read frame with the same time stamp frequently. This keeps the
50 // read() call from blocking too long. Calling this function quickly
51 // captures another frame, keeps its copy, and enables this mode of read()
90 // mQuickStop is set to true if we use quick read() returns, otherwise it is set
91 // to false. Once in this mode read() return a copy of the last read frame
95 // Forces the next frame passed to dataCallbackTimestamp() to be read
    [all...]
  /frameworks/base/core/java/android/app/backup/
BackupDataInputStream.java 28 * is called, the current entity's header has already been read from the underlying
33 * source, nor read more than {@link #size()} bytes from the stream.</p>
52 * Read one byte of entity data from the stream, returning it as
54 * are read from the stream, the output of this method is undefined.
56 * @return The byte read, or undefined if the end of the stream has been reached.
58 public int read() throws IOException { method in class:BackupDataInputStream
68 * Read up to {@code size} bytes of data into a byte array, beginning at position
71 * @param b Byte array into which the data will be read
74 * @param size The number of bytes to read in this operation. If insufficient
76 * will be read as is available
80 public int read(byte[] b, int offset, int size) throws IOException { method in class:BackupDataInputStream
93 public int read(byte[] b) throws IOException { method in class:BackupDataInputStream
    [all...]
  /libcore/luni/src/main/java/libcore/io/
Streams.java 35 * Implements InputStream.read(int) in terms of InputStream.read(byte[], int, int).
36 * InputStream assumes that you implement InputStream.read(int) and provides default
41 int result = in.read(buffer, 0, 1);
81 int bytesRead = in.read(dst, offset, byteCount);
108 while ((count = in.read(buffer)) != -1) {
122 while ((count = reader.read(buffer)) != -1) {
134 } while (in.read() != -1);
138 * Call {@code in.read()} repeatedly until either the stream is exhausted or
139 * {@code byteCount} bytes have been read
158 int read = in.read(buffer, 0, toRead); local
    [all...]
  /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...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
LineNumberInputStreamTest.java 60 lnis.read();
61 lnis.read();
63 assertEquals("stream returned incorrect line number after read", 1,
79 assertEquals("Failed to mark", '0', lnis.read());
83 * @tests java.io.LineNumberInputStream#read()
86 assertEquals("Failed to read correct byte", '0', lnis.read());
87 assertEquals("Failed to read correct byte on dos text", '0', lnis2
88 .read());
89 assertTrue("Failed to read correct byte on dos text"
    [all...]
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 * @tests java.io.CharArrayReader#read()
91 assertEquals("Read returned incorrect char", 'H', cr.read());
93 assertTrue("Incorrect double byte char", cr.read() == '\u8765');
97 * @tests java.io.CharArrayReader#read(char[], int, int
    [all...]
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...]
  /cts/tests/tests/webkitsecurity/assets/
filter-empty-element-crash.html 6 <p>If you can read this, the test passed.</p>
  /development/tools/idegen/src/
Files.java 30 int read; local
33 while ((read = in.read(buffer)) > -1) {
34 builder.append(buffer, 0, read);
  /device/moto/stingray/self-extractors/
PART1 9 read dummy
  /device/moto/wingray/self-extractors/
PART1 9 read dummy
  /device/samsung/crespo/self-extractors/
PART1 9 read dummy
  /device/samsung/crespo4g/self-extractors/
PART1 9 read dummy
  /device/samsung/maguro/self-extractors/
PART1 9 read dummy
  /device/samsung/toro/self-extractors/
PART1 9 read dummy
  /device/ti/panda/self-extractors/
PART1 9 read dummy
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DigestInputStream2Test.java 67 // read some data
68 int c = dis.read();
81 c = dis.read();
90 * @tests 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 * @tests java.security.DigestInputStream#read(byte[], int, int)
108 // Test for method int java.security.DigestInputStream.read(byte []
    [all...]

Completed in 843 milliseconds

1 2 3 4 5 6 78 91011>>