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

1 2 3 45 6 7 8 91011>>

  /cts/tests/tests/content/src/android/content/res/cts/
AssetFileDescriptor_AutoCloseInputStreamTest.java 79 assertEquals(FILE_DATA[0], mInput.read());
81 assertEquals(FILE_DATA[1], mInput.read());
83 assertEquals(FILE_DATA[5], mInput.read());
85 assertEquals(FILE_END, mInput.read());
96 method = "read",
103 assertEquals(FILE_DATA[i], mInput.read());
105 assertEquals(FILE_END, mInput.read());
116 method = "read",
124 assertEquals(FILE_DATA[i], mInput.read());
126 assertEquals(FILE_END, mInput.read());
    [all...]
  /external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
CipherInputStreamTest.java 61 if ((byte) cis.read() != data[i]) {
66 if (cis.read() != -1) {
72 * read() method testing. Tests that method returns the correct value
81 if ((res = (byte) cis.read()) != data[i]) {
82 fail("read() returned the incorrect value. " + "Expected: "
86 if (cis.read() != -1) {
87 fail("read() should return -1 at the end of the stream.");
92 * read(byte[] b) method testing. Tests that method returns the correct
105 int got = cis.read(result); // the number of got bytes
109 fail("read(byte[] b) returned incorrect data.")
    [all...]
  /dalvik/libdex/
DexClass.h 59 /* Read and verify the header of a class_data_item. This updates the
60 * given data pointer to point past the end of the read data and
65 /* Read and verify an encoded_field. This updates the
66 * given data pointer to point past the end of the read data and
70 * a list is read. It is updated as fields are read and used in the
79 /* Read and verify an encoded_method. This updates the
80 * given data pointer to point past the end of the read data and
84 * a list is read. It is updated as fields are read and used in th
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldSequenceInputStreamTest.java 56 si.read();
57 assertEquals("Test 1: Incorrect char read;",
58 s1.charAt(1), (char) si.read());
63 assertEquals("Test 2: Incorrect char read;",
64 s1.charAt(2), (char) si.read());
71 si.read();
79 si.read();
80 si.read();
84 si.read();
93 assertEquals("Test 6: Incorrect char read;",
    [all...]
OldBufferedReaderTest.java 58 br.read();
59 fail("Test 1: Read on closed stream.");
87 br.read(buf, 0, 500);
97 br.read(buf, 0, 1000);
111 in.read(new char[14], 0, 14);
113 assertTrue("Wrong chars", in.read() == (char) 6
114 && in.read() == (char) 7);
125 assertTrue("Wrong chars 2", in.read() == (char) 6
126 && in.read() == (char) 7);
142 int r = br.read();
    [all...]
OldInputStreamReaderTest.java 74 reader.read(new char[3], -1, 0);
80 reader.read(new char[3], 0, -1);
86 reader.read(new char[3], 4, 0);
92 reader.read(new char[3], 3, 1);
98 reader.read(new char[3], 1, 3);
104 reader.read(new char[3], 0, 4);
111 reader.read(null, 0, 0);
117 assertEquals(0, reader.read(new char[3], 3, 0));
119 assertEquals(0, reader.read(chars, 0, 0));
121 assertEquals(3, reader.read(chars, 0, 3))
    [all...]
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...]
  /libcore/luni/src/main/java/java/nio/channels/
ScatteringByteChannel.java 23 * The interface for channels that can read data into a set of buffers in a
32 * This method is equivalent to {@code read(buffers, 0, buffers.length);}
35 * the array of byte buffers to store the bytes being read.
36 * @return the number of bytes actually read.
38 * if the channel is closed by another thread during this read
52 public long read(ByteBuffer[] buffers) throws IOException; method in interface:ScatteringByteChannel
55 * Attempts to read all {@code remaining()} bytes from {@code length} byte
57 * bytes actually read is returned.
59 * If a read operation is in progress, subsequent threads will block until
60 * the read is completed and will then contend for the ability to read
88 public long read(ByteBuffer[] buffers, int offset, int length) method in interface:ScatteringByteChannel
    [all...]
  /packages/apps/Email/emailcommon/src/org/apache/james/mime4j/
RootInputStream.java 44 * @param in the stream to read from.
52 * (the number of <code>\r\n</code> read so far plus 1).
62 * call to {@link #read()}, {@link #read(byte[]) or
63 * {@link #read(byte[], int, int)} will return
71 * @see java.io.InputStream#read()
73 public int read() throws IOException { method in class:RootInputStream
78 int b = is.read();
88 * @see java.io.InputStream#read(byte[], int, int)
90 public int read(byte[] b, int off, int len) throws IOException { method in class:RootInputStream
108 public int read(byte[] b) throws IOException { method in class:RootInputStream
    [all...]
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);
  /external/chromium/net/socket/
deterministic_socket_data_unittest.cc 109 // Issue the read, which will complete immediately
116 // Issue the read, which will be completed asynchronously
123 // Now the read should complete
131 ASSERT_EQ(rv, sock_->Read(read_buf_, len, &read_callback_));
150 // Issue the read, which will be completed asynchronously
165 // Issue the read, which will complete asynchronously
169 // ----------- Read
173 MockRead(false, kMsg1, kLen1, 0), // Sync Read
185 MockRead(false, kMsg1, kLen1, 1), // Sync Read
198 MockRead(false, kMsg1, kLen1, 0), // Sync Read
    [all...]
  /libcore/luni/src/main/java/libcore/net/http/
FixedLengthInputStream.java 39 @Override public int read(byte[] buffer, int offset, int count) throws IOException { method in class:FixedLengthInputStream
45 int read = in.read(buffer, offset, Math.min(count, bytesRemaining)); local
46 if (read == -1) {
50 bytesRemaining -= read;
51 cacheWrite(buffer, offset, read);
55 return read;
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
InputStreamReaderTest.java 41 // A ByteArrayInputStream that only returns a single byte per read
69 public int read() { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
78 public int read(byte[] buffer, int offset, int length) { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
145 is.read();
172 int count = reader.read(new char[1]);
178 reader.read();
326 * @tests java.io.InputStreamReader#read()
329 assertEquals('T', (char) reader.read());
330 assertEquals('h', (char) reader.read());
331 assertEquals('i', (char) reader.read());
    [all...]
BufferedInputStreamTest.java 50 str.read();
63 str.read();
73 // Ensure buffer gets filled by evaluating one read
74 is.read();
78 // Read the remaining buffered characters, no IOException should
81 is.read();
83 // is.read should now throw an exception because it will have to
85 is.read();
86 fail("Exception should have been triggered by read()");
150 public int read() {
    [all...]
FileInputStreamTest.java 116 is.read();
128 fis1.read();
142 stdin.read();
159 * @tests java.io.FileInputStream#read()
163 int c = isr.read();
165 assertTrue("read returned incorrect char", c == fileString.charAt(0));
169 * @tests java.io.FileInputStream#read(byte[])
175 is.read(buf1);
177 assertTrue("Failed to read correct data", new String(buf1, 0,
182 * @tests java.io.FileInputStream#read(byte[], int, int
    [all...]
PushbackInputStreamTest.java 58 str.read();
99 str.read();
128 * @tests java.io.PushbackInputStream#read()
131 // Test for method int java.io.PushbackInputStream.read()
133 assertTrue("Incorrect byte read", pis.read() == fileString
136 fail("Exception during read test : " + e.getMessage());
141 * @tests java.io.PushbackInputStream#read(byte[], int, int)
144 // Test for method int java.io.PushbackInputStream.read(byte [], int,
148 pis.read(buf, 0, buf.length)
    [all...]
SequenceInputStreamTest.java 90 si.read(buf, 0, s1.length());
91 si.read(buf, s1.length(), s2.length());
92 assertTrue("Read incorrect bytes: " + new String(buf), new String(
95 fail("IOException during read test : " + e.getMessage());
124 * @tests java.io.SequenceInputStream#read()
127 // Test for method int java.io.SequenceInputStream.read()
129 si.read();
130 assertTrue("Read incorrect char", (char) si.read() == s1.charAt(1));
132 fail("IOException during read test: " + e.getMessage())
    [all...]
  /external/srec/tools/thirdparty/OpenFst/fst/lib/
expanded-fst.h 37 // Read an ExpandedFst from an input stream; return NULL on error.
38 static ExpandedFst<A> *Read(istream &strm, const FstReadOptions &opts) {
44 if (!hdr.Read(strm, opts.source))
49 LOG(ERROR) << "ExpandedFst::Read: Not an ExpandedFst: " << ropts.source;
56 LOG(ERROR) << "ExpandedFst::Read: Unknown FST type \"" << hdr.FstType()
65 // Read an ExpandedFst from a file; return NULL on error.
66 static ExpandedFst<A> *Read(const string &filename) {
69 LOG(ERROR) << "ExpandedFst::Read: Can't open file: " << filename;
72 return Read(strm, FstReadOptions(filename));
  /external/valgrind/main/exp-ptrcheck/tests/
syscall.c 43 // error (read) (will fail due to -1, as we want -- don't want any
45 mywrite(buf+3, 5); // error (read)
46 mywrite(buf-1, 5); // error (read)
47 mywrite(buf+1, diff); // error (read)
56 mywrite(buf+1, diff); // error (read)
  /libcore/luni/src/main/java/java/lang/
Readable.java 23 * Represents a sequence of characters that can be incrementally read (copied)
30 * number of characters read is {@code CharBuffer.remaining()}.
33 * the buffer to be filled with characters read.
34 * @return the number of characters actually read, or -1 if this
39 int read(CharBuffer cb) throws IOException; method in interface:Readable
  /packages/apps/Email/emailcommon/src/org/apache/commons/io/input/
TeeInputStream.java 24 * InputStream proxy that transparently writes a copy of all bytes read
40 * The output stream that will receive a copy of all bytes read from the
53 * and copies all read bytes to the given {@link OutputStream}. The given
57 * @param branch output stream that will receive a copy of all bytes read
65 * and copies all read bytes to the given {@link OutputStream}. The given
70 * @param branch output stream that will receive a copy of all bytes read
103 * @throws IOException if the stream could not be read (or written)
105 public int read() throws IOException { method in class:TeeInputStream
106 int ch = super.read();
114 * Reads bytes from the proxied input stream and writes the read bytes
123 public int read(byte[] bts, int st, int end) throws IOException { method in class:TeeInputStream
139 public int read(byte[] bts) throws IOException { method in class:TeeInputStream
    [all...]
  /external/apache-http/src/org/apache/http/impl/io/
ContentLengthInputStream.java 42 * gets called. Instead, it will read until the "end" of its chunking on
44 * requests, while not requiring the client to remember to read the entire
75 * The maximum number of bytes that can be read from the stream. Subsequent
76 * read operations will return -1.
95 * @param contentLength The maximum number of bytes that can be read from
96 * the stream. Subsequent read operations will return -1.
121 while (read(buffer) >= 0) {
125 // to read after closed!
133 * Read the next byte from the stream
136 * @see java.io.InputStream#read()
138 public int read() throws IOException { method in class:ContentLengthInputStream
162 public int read (byte[] b, int off, int len) throws java.io.IOException { method in class:ContentLengthInputStream
187 public int read(byte[] b) throws IOException { method in class:ContentLengthInputStream
    [all...]
  /external/llvm/lib/Target/MBlaze/
MBlazeSchedule3.td 19 // two source operands are read during the decode stage and the result is
26 , 1 // first operand read after one cycle
27 , 1 ]>, // second operand read after one cycle
33 // two source operands are read during the decode stage and the result is
40 , 1 // first operand read after one cycle
41 , 1 ]>, // second operand read after one cycle
46 // source operands are read during the decode stage and the result is ready
53 , 1 // first operand read after one cycle
54 , 1 ]>, // second operand read after one cycle
60 // are read during the decode stage and the result is ready after the execut
    [all...]
MBlazeSchedule5.td 19 // two source operands are read during the decode stage and the result is
28 , 1 // first operand read after one cycle
29 , 1 ]>, // second operand read after one cycle
34 // pipeline stages. The two source operands are read during the decode stage
43 , 1 // first operand read after one cycle
44 , 1 ]>, // second operand read after one cycle
49 // source operands are read during the decode stage and the result is ready
58 , 1 // first operand read after one cycle
59 , 1 ]>, // second operand read after one cycle
64 // The two source operands are read during the decode stage and the result i
    [all...]
  /libcore/luni/src/main/java/java/io/
Reader.java 29 * needs to be subclassed, and at least the {@link #read(char[], int, int)} and
80 * indicates how many characters can be read before the mark is invalidated.
88 * the number of characters that can be read before the mark is
117 * @return the character read or -1 if the end of the reader has been
122 public int read() throws IOException { method in class:Reader
125 if (read(charArray, 0, 1) != -1) {
135 * actually read or -1 if the end of the reader has been reached.
138 * character array to store the characters read.
139 * @return the number of characters read or -1 if the end of the reader has
144 public int read(char[] buf) throws IOException method in class:Reader
166 public abstract int read(char[] buf, int offset, int count) throws IOException; method in class:Reader
    [all...]

Completed in 427 milliseconds

1 2 3 45 6 7 8 91011>>