/external/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 330 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) { 334 throw new IOException("Expected " + length + " bytes, read " + pos + " bytes"); 389 * @param is The InputStream to read from. 460 public int read() throws IOException { method in class:DiskBasedCache.CountingInputStream 461 int result = super.read(); 469 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:DiskBasedCache.CountingInputStream 470 int result = super.read(buffer, offset, count); 486 * Simple wrapper around {@link InputStream#read()} that throws EOFException 489 private static int read(InputStream is) throws IOException { method in class:DiskBasedCache 490 int b = is.read(); [all...] |
/external/tremolo/Tremolo/ |
H A D | dpen.s | 59 SUBS r4,r4,#1 @ r4 = --read 62 MOV r1,r4 @ r1 = read 71 LDMIA r0,{r4,r6,r7} @ r4 = read = book->max_length 77 MOV r1,r4 @ r1 = read 84 @ r4 = read 96 RSB r1, r4, #0 @ r1 = i-read = 0-read 102 ADDS r1, r1, #1 @ r1 = i-read++ (i-read<0 => i<read) [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
H A D | Http1xStream.java | 51 * <li>Open a source to read the response body. Either {@link 388 @Override public long read(Buffer sink, long byteCount) throws IOException { method in class:Http1xStream.FixedLengthSource 393 long read = source.read(sink, Math.min(bytesRemaining, byteCount)); 394 if (read == -1) { 399 bytesRemaining -= read; 403 return read; 429 @Override public long read(Buffer sink, long byteCount) throws IOException { method in class:Http1xStream.ChunkedSource 439 long read = source.read(sin 483 @Override public long read(Buffer sink, long byteCount) method in class:Http1xStream.UnknownLengthSource [all...] |
/external/guava/guava/src/com/google/common/io/ |
H A D | CharStreams.java | 58 * @param from the object to read from 68 while (from.read(buf) != -1) { 81 * @param r the object to read from 93 * @param r the object to read from 112 * @param r the object to read from 128 * returns {@code false} or all lines have been read and returning the result 156 * @param reader the reader to read from 167 // force a blocking read 168 if (reader.read() == -1) { 272 public int read(cha [all...] |
H A D | CharSequenceReader.java | 62 public synchronized int read(CharBuffer target) throws IOException { method in class:CharSequenceReader 76 public synchronized int read() throws IOException { method in class:CharSequenceReader 82 public synchronized int read(char[] cbuf, int off, int len) throws IOException { method in class:CharSequenceReader
|
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | FileBackedOutputStreamTest.java | 103 assertTrue(Arrays.equals(data, source.read())); 133 assertTrue(Arrays.equals(data, source.read())); 144 assertTrue(Arrays.equals(data, source.read())); 154 assertTrue(Arrays.equals(data, source.read())); 157 assertTrue(Arrays.equals(new byte[0], source.read())); 160 assertTrue(Arrays.equals(data, source.read()));
|
H A D | IoTestCase.java | 169 for (int read = in.read(buf); read != -1; read = in.read(buf)) { 170 out.write(buf, 0, read);
|
/external/replicaisland/src/com/replica/replicaisland/ |
H A D | LevelSystem.java | 105 signature = (byte)byteStream.read(); 107 final int layerCount = (byte)byteStream.read(); 108 final int backgroundIndex = (byte)byteStream.read(); 117 final int type = (byte)byteStream.read(); 118 final int tileIndex = (byte)byteStream.read(); 119 byteStream.read(mWorkspaceBytes, 0, 4);
|
/external/syslinux/gpxe/src/interface/efi/ |
H A D | efi_io.c | 78 * @ret data Value read 81 EFI_CPU_IO_PROTOCOL_IO_MEM read; local 85 read = ( IS_PORT_ADDRESS ( io_addr ) ? 88 if ( ( efirc = read ( cpu_io, efi_width ( size ), 91 DBG ( "EFI I/O read at %p failed: %s\n", 123 * String read from device 128 * @v count Number of values to read 132 EFI_CPU_IO_PROTOCOL_IO_MEM read; local 135 read = ( IS_PORT_ADDRESS ( io_addr ) ? 138 if ( ( efirc = read ( cpu_i [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
H A D | BufferedSourceTest.java | 74 @Override public long read(Buffer sink, long byteCount) throws IOException { 75 return super.read(sink, Math.min(byteCount, 1L)); 238 assertEquals(-1, source.read(sink, 10)); 249 assertEquals(-1, source.read(sink, 0)); 271 // Verify we read all that we could from the source. 297 // Verify we read all that we could from the source. 305 int read = source.read(sink); 307 assertEquals(1, read); 311 assertEquals(3, read); [all...] |
/external/autotest/client/site_tests/hardware_SAT/ |
H A D | hardware_SAT.py | 19 mchbar = struct.unpack('=I', fd.read(4))[0] 26 mad_chnl = struct.unpack('=I', fd.read(4))[0] 28 channel_hash = struct.unpack('=I', fd.read(4))[0]
|
/external/autotest/client/site_tests/kernel_CpufreqMinMax/ |
H A D | kernel_CpufreqMinMax.py | 65 if ('intel_pstate\n' == f.read()): 68 available_freqs = map(int, [fmin.read(), fmax.read()])
|
/external/emma/core/java12/com/vladium/emma/rt/ |
H A D | ClassPathProcessorST.java | 135 // [original class def read into m_readbuf] 234 // [original class def read into m_readbuf] 324 for (int read; 325 (totalread < length) && (read = in.read (m_readbuf, totalread, length - totalread)) >= 0; 326 totalread += read); 348 for (int read; 349 (totalread < length) && (read = in.read (m_readbuf, totalread, length - totalread)) >= 0; 350 totalread += read); [all...] |
/external/fmtlib/test/ |
H A D | gtest-extra.cc | 80 return content; // Already read. 85 count = read_end_.read(buffer, BUFFER_SIZE); 92 std::string read(File &f, std::size_t count) { function 96 n = f.read(&buffer[offset], count - offset); 97 // We can't read more than size_t bytes since count has type size_t.
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/ |
H A D | RemoteControlReaderWriterTest.java | 49 reader.read(); 83 assertFalse(reader.read()); 91 assertTrue(reader.read());
|
/external/libbrillo/brillo/streams/ |
H A D | stream_utils.h | 61 // Checks if |mode| allows read access. 73 // Make the access mode based on read/write rights requested. 74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) { argument 75 CHECK(read || write); // Either read or write (or both) must be specified. 76 if (read && write) 87 // data from the input stream is read. The function takes ownership of both 103 // |buffer_size| specifies the size of the read buffer to use for the operation.
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/ |
H A D | UnicodeReader.java | 65 * InputStream to be read 73 * read() method to initialize it. 90 n = internalIn.read(bom, 0, bom.length); 121 public int read(char[] cbuf, int off, int len) throws IOException { method in class:UnicodeReader 123 return internalIn2.read(cbuf, off, len);
|
/external/testng/src/main/java/org/testng/reporters/ |
H A D | Files.java | 53 int count = from.read(buffer); 56 count = from.read(buffer); 69 while ((n = reader.read(buffer)) != -1) {
|
/external/vogar/src/vogar/monitor/ |
H A D | InterleavedReader.java | 68 public Object read() throws IOException { method in class:InterleavedReader 81 int r = reader.read(buffer, count, buffer.length - count); 99 // the buffer contains only the prefix of a marker so we must read more 103 // we've read a marker so return the value that follows 115 count = reader.read(buffer, 0, textEnd);
|
/external/autotest/client/tests/kernel_sysrq_info/ |
H A D | kernel_sysrq_info.py | 31 return f.read()
|
/external/chromium-trace/catapult/devil/devil/android/sdk/ |
H A D | aapt.py | 24 cmd = [_aapt_path.read()] + args
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
H A D | trace_profiler_unittest.py | 24 self.assertTrue(f.read())
|
/external/clang/test/SemaCXX/ |
H A D | incomplete-call.cpp | 56 void basic_istream<CharT>::read() { // expected-error{{out-of-line definition of 'read' from class 'basic_istream<CharT>' without definition}} function in class:pr18542::X::basic_istream
|
/external/compiler-rt/test/tsan/ |
H A D | fd_dup_norace.cc | 13 read(fds[0], &buf, 1);
|
H A D | fd_dup_norace2.cc | 8 // dup2(oldfd, newfd) races with read(newfd). 18 int n = read(fd, &buf, 1); 20 // This read can "legitimately" fail regadless of the fact that glibc claims 28 // [pid 122382] read(3, <unfinished ...> 30 // [pid 122382] <... read resumed> 0x7fcd139960b7, 1) = -1 EBADF (Bad file descriptor) 32 // read failed: n=-1 errno=9 34 // The failing read does not interfere with what this test tests, 37 // exit(printf("read failed: n=%d errno=%d\n", n, errno));
|