Searched refs:read (Results 26 - 50 of 2793) sorted by relevance

1234567891011>>

/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
H A Dbuffered_stream_test.py21 self.assertEqual('', bs.read(0))
27 self.assertEqual(self.value, bs.read(len(self.value)))
34 self.assertEqual(self.value[0:50], bs.read(50))
36 self.assertEqual('', bs.read(0))
37 self.assertEqual('', bs.read(100))
43 self.assertEqual(self.value, bs.read(100))
44 self.assertEqual('', bs.read(0))
45 self.assertEqual('', bs.read(100))
50 bs.read()
52 bs.read(siz
[all...]
/external/guava/guava-testlib/test/com/google/common/testing/
H A DFakeTickerTest.java47 assertEquals(0, ticker.read());
49 assertEquals(10, ticker.read());
51 assertEquals(1000010L, ticker.read());
61 assertEquals(0, ticker.read());
62 assertEquals(10, ticker.read());
63 assertEquals(20, ticker.read());
68 assertEquals(0, ticker.read());
69 assertEquals(1000000, ticker.read());
70 assertEquals(2000000, ticker.read());
75 assertEquals(0, ticker.read());
[all...]
/external/guava/guava/src/com/google/common/io/
H A DMultiInputStream.java81 @Override public int read() throws IOException { method in class:MultiInputStream
85 int result = in.read();
88 return read();
93 @Override public int read(@Nullable byte[] b, int off, int len) throws IOException { method in class:MultiInputStream
97 int result = in.read(b, off, len);
100 return read(b, off, len);
113 if (read() == -1) {
/external/opencv3/3rdparty/openexr/IlmImf/
H A DImfKeyCodeAttribute.cpp75 Xdr::read <StreamIO> (is, tmp);
78 Xdr::read <StreamIO> (is, tmp);
81 Xdr::read <StreamIO> (is, tmp);
84 Xdr::read <StreamIO> (is, tmp);
87 Xdr::read <StreamIO> (is, tmp);
90 Xdr::read <StreamIO> (is, tmp);
93 Xdr::read <StreamIO> (is, tmp);
H A DImfBoxAttribute.cpp73 Xdr::read <StreamIO> (is, _value.min.x);
74 Xdr::read <StreamIO> (is, _value.min.y);
75 Xdr::read <StreamIO> (is, _value.max.x);
76 Xdr::read <StreamIO> (is, _value.max.y);
103 Xdr::read <StreamIO> (is, _value.min.x);
104 Xdr::read <StreamIO> (is, _value.min.y);
105 Xdr::read <StreamIO> (is, _value.max.x);
106 Xdr::read <StreamIO> (is, _value.max.y);
H A DImfRationalAttribute.cpp68 Xdr::read <StreamIO> (is, _value.n);
69 Xdr::read <StreamIO> (is, _value.d);
H A DImfPreviewImageAttribute.cpp82 Xdr::read <StreamIO> (is, width);
83 Xdr::read <StreamIO> (is, height);
92 Xdr::read <StreamIO> (is, pixels[i].r);
93 Xdr::read <StreamIO> (is, pixels[i].g);
94 Xdr::read <StreamIO> (is, pixels[i].b);
95 Xdr::read <StreamIO> (is, pixels[i].a);
H A DImfVecAttribute.cpp75 Xdr::read <StreamIO> (is, _value.x);
76 Xdr::read <StreamIO> (is, _value.y);
101 Xdr::read <StreamIO> (is, _value.x);
102 Xdr::read <StreamIO> (is, _value.y);
127 Xdr::read <StreamIO> (is, _value.x);
128 Xdr::read <StreamIO> (is, _value.y);
154 Xdr::read <StreamIO> (is, _value.x);
155 Xdr::read <StreamIO> (is, _value.y);
156 Xdr::read <StreamIO> (is, _value.z);
182 Xdr::read <StreamI
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DCountingInputStreamTest.java38 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
H A DCharSequenceReaderTest.java54 // 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();
[all...]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
H A Dresponse.py41 body = json.loads(http_response.read().decode('utf-8'))
47 def read(self, amt=None): member in class:GlacierResponse
49 return self.http_response.read(amt)
/external/autotest/site_utils/rpm_control_system/
H A Dconfig.py10 rpm_config.read(CONFIG_FILE
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/io/
H A DDigestInputStream.java22 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);
H A DMacInputStream.java22 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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/s3/
H A Dtest_keyfile.py44 self.assertEqual(self.keyfile.read(len(self.contents)), self.contents)
47 self.assertEqual(self.keyfile.read(5), self.contents[:5])
48 self.assertEqual(self.keyfile.read(5), self.contents[5:])
52 self.keyfile.read(4)
54 self.keyfile.read(6)
63 self.assertEqual(self.keyfile.read(4), self.contents[:4])
65 self.assertEqual(self.keyfile.read(4), self.contents[:4])
67 self.assertEqual(self.keyfile.read(5), self.contents[5:])
76 self.keyfile.read(10)
77 self.assertEqual(self.keyfile.read(2
[all...]
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
H A DCodeInput.java26 * Returns whether there are any more code units to read. This
34 public int read() throws EOFException; method in interface:CodeInput
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
H A DStreamEncoder.java22 int read;
23 while ((read = data.read(buffer)) != -1) {
24 os.write(buffer, 0, read);
/external/google-breakpad/src/testing/scripts/generator/cpp/
H A Dutils.py35 return fp.read()
/external/oauth/core/src/main/java/net/oauth/client/
H A DExcerptInputStream.java23 int read;
24 while ((read = read(excerpt, total, LIMIT - total)) != -1 && ((total += read) < LIMIT));
/external/okhttp/okio/okio/src/main/java/okio/
H A DSource.java22 * 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.
/external/proguard/src/proguard/io/
H A DJarReader.java27 * 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/skia/src/svg/parser/
H A DSkSVG.cpp22 size_t size = stream->read(nil, 0);
25 size_t actual = stream->read(data, size);
/external/smali/util/src/main/java/org/jf/util/
H A DRandomAccessFileInputStream.java48 @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);
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DRecyclableBufferedInputStream.java44 * The buffer containing the current bytes read from the target InputStream.
78 * Returns an estimated number of bytes that can be read or skipped without blocking for more
132 int result = localIn.read(localBuf);
144 // read is called.
166 int bytesread = localIn.read(localBuf, pos, localBuf.length - pos);
173 * indicates how many bytes can be read before a mark is invalidated.
180 * the number of bytes that can be read before the mark is
213 * @return the byte read or -1 if the end of the source stream has been
219 public synchronized int read() throws IOException { method in class:RecyclableBufferedInputStream
251 * number of bytes actually read o
269 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { method in class:RecyclableBufferedInputStream
[all...]
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DCipherInputStreamTest.java61 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(byt
[all...]

Completed in 1157 milliseconds

1234567891011>>