/dalvik/dx/src/com/android/dx/util/ |
ByteArray.java | 24 * Wrapper for a {@code byte[]}, which provides read-only access and 304 public int read() throws IOException { method in class:ByteArray.MyInputStream 314 public int read(byte[] arr, int offset, int length) { method in class:ByteArray.MyInputStream
|
/development/ndk/platforms/android-3/include/linux/ |
sysfs.h | 45 ssize_t (*read)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
|
/device/google/accessory/arduino/AndroidAccessory/ |
AndroidAccessory.cpp | 89 Serial.print("could not read device protocol version\n"); 263 int AndroidAccessory::read(void *buff, int len, unsigned int nakLimit) function in class:AndroidAccessory
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
FilterInputStreamTest.java | 59 is.read(); 60 fail("Able to read from closed stream"); 81 * @tests java.io.FilterInputStream#read() 84 int c = is.read(); 85 assertTrue("read returned incorrect char", c == fileString.charAt(0)); 89 * @tests java.io.FilterInputStream#read(byte[]) 93 is.read(buf1); 94 assertTrue("Failed to read correct data", new String(buf1, 0, 99 * @tests java.io.FilterInputStream#read(byte[], int, int) 105 is.read(buf1, 0, buf1.length) [all...] |
FilterOutputStreamTest.java | 85 bis.read(wbytes, 0, fileString.length()); 102 bis.read(wbytes, 0, fileString.length()); 118 bis.read(wbytes, 0, 1);
|
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...] |
LineNumberReaderTest.java | 82 * @tests java.io.LineNumberReader#read() 87 int c = lnr.read(); 88 assertEquals("Read returned incorrect character", '0', c); 90 lnr.read(); 91 assertEquals("Read failed to inc lineNumber", 1, lnr.getLineNumber()); 95 * @tests java.io.LineNumberReader#read(char[], int, int) 100 lnr.read(c, 0, 4); 101 assertTrue("Read returned incorrect characters", "0\n1\n" 103 assertEquals("Read failed to inc lineNumber", 2, lnr.getLineNumber()); 124 assertEquals('\n', reader.read()); [all...] |
StringReaderTest.java | 46 sr.read(buf, 0, 2); 64 sr.read(buf, 0, 2); 80 * @tests java.io.StringReader#read() 83 // Test for method int java.io.StringReader.read() 85 int r = sr.read(); 86 assertEquals("Failed to read char", 'T', r); 88 assertTrue("Wrong double byte char", sr.read() == '\u8765'); 92 * @tests java.io.StringReader#read(char[], int, int) 95 // Test for method int java.io.StringReader.read(char [], int, int) 98 int r = sr.read(buf, 0, testString.length()) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 55 * Chunk size for read(byte, off, len) tests 114 * Test #1 for <code>read()</code> method<br> 116 * Assertion: returns the byte read<br> 127 // check that read() returns valid values 128 assertTrue("retval", ((byte)dis.read() == myMessage[i])); 144 * Test #2 for <code>read()</code> method<br> 147 * reached but not read before method call<br> 150 * reached but not read before method call<br> 160 dis.read(); 162 // check that subsequent read() calls return -1 (eos [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedInputStream.java | 50 * transfer coding. After the stream is read to the end, it provides access 54 * gets called. Instead, it will read until the "end" of its chunking on 56 * requests, while not requiring the client to remember to read the entire 110 * <p> Trailer headers are read automcatically at the end of the stream and 117 public int read() throws IOException { method in class:ChunkedInputStream 119 throw new IOException("Attempted read from closed stream."); 131 return in.read(); 135 * Read some bytes from the stream. 142 * @see java.io.InputStream#read(byte[], int, int) 145 public int read (byte[] b, int off, int len) throws IOException method in class:ChunkedInputStream 174 public int read (byte[] b) throws IOException { method in class:ChunkedInputStream [all...] |
/external/chromium/net/tools/dump_cache/ |
dump_files.cc | 36 int read = file.Read(header, header_size, NULL); local 37 if (read != header_size) { 38 printf("Unable to read file %ls\n", name.c_str());
|
/external/chromium_org/chrome/browser/diagnostics/ |
diagnostics_writer.cc | 92 DWORD read = arraysize(buf); local 93 ::ReadConsoleW(std_in_, buf, read, &read, NULL);
|
/external/chromium_org/chrome/browser/safe_browsing/ |
prefix_set.cc | 168 size_t read = fread(&header, sizeof(header), 1, file.get()); local 169 if (read != 1) 193 // Read the index vector. Herb Sutter indicates that vectors are 198 read = fread(&(index[0]), sizeof(index[0]), index.size(), file.get()); 199 if (read != index.size()) 206 // Read vector of deltas. 209 read = fread(&(deltas[0]), sizeof(deltas[0]), deltas.size(), file.get()); 210 if (read != deltas.size()) 221 read = fread(&file_digest, sizeof(file_digest), 1, file.get()); 222 if (read != 1 [all...] |
/external/chromium_org/chrome_frame/ |
urlmon_bind_status_callback.cc | 72 // Read is the only call that we expect. Return E_PENDING if there 74 // read with 0 bytes indicating that no more data is available. 75 STDMETHODIMP CacheStream::Read(void* pv, ULONG cb, ULONG* read) { 76 if (!pv || !read) 80 *read = 0; 87 *read = std::min(size_ - position_, size_t(cb)); 88 memcpy(pv, cache_ .get() + position_, *read); 89 position_ += *read; 128 DWORD read = 0 local [all...] |
/external/chromium_org/net/tools/balsa/ |
balsa_frame_test.cc | 96 size_t read = frame_->ProcessInput(input, strlen(input)); local 97 EXPECT_EQ(2u, read); 142 size_t read = frame_->ProcessInput(input, strlen(input)); local 143 ASSERT_EQ(strlen(input), read); local 192 size_t read = frame_->ProcessInput(input, strlen(input)); local 193 ASSERT_EQ(strlen(input), read); local 256 size_t read = frame_->ProcessInput(input, strlen(input)); local 257 ASSERT_EQ(65u, read); 260 read += frame_->ProcessInput(&input[read], strlen(input) - read) 261 ASSERT_EQ(strlen(input), read); local 293 size_t read = frame_->ProcessInput(input, strlen(input)); local 294 ASSERT_EQ(strlen(input), read); local 320 size_t read = frame_->ProcessInput(input, strlen(input)); local 344 size_t read = frame_->ProcessInput(input, strlen(input)); local 371 size_t read = frame_->ProcessInput(input, strlen(input)); local 391 size_t read = frame_->ProcessInput(input, strlen(input)); local 433 size_t read = frame_->ProcessInput(input, strlen(input)); local 434 ASSERT_EQ(strlen(input), read); local 488 size_t read = frame_->ProcessInput(input, strlen(input)); local 493 ASSERT_EQ(strlen(input), read); local 498 ASSERT_EQ(strlen(input2), read); local 534 size_t read = frame_->ProcessInput(input, strlen(input)); local 539 ASSERT_EQ(strlen(input), read); local 578 size_t read = frame_->ProcessInput(input, strlen(input)); local 583 ASSERT_EQ(strlen(input), read); local [all...] |
/external/chromium_org/net/tools/dump_cache/ |
dump_files.cc | 41 int read = file.ReadSync(header, header_size); local 42 if (read != header_size) { 43 printf("Unable to read file %s\n", name.MaybeAsASCII().c_str()); 80 if (!file->Read(buffer.get(), length, offset))
|
/external/chromium_org/net/tools/flip_server/ |
http_interface_test.cc | 187 size_t read = interface_->ProcessReadInput(data.data(), data.size()); local 188 ASSERT_EQ(39u, read); 190 read += interface_->ProcessReadInput(&data.data()[read], data.size() - read); 191 ASSERT_EQ(data.size(), read);
|
/external/chromium_org/net/tools/quic/ |
quic_server.cc | 176 bool read = true; local 177 while (read) { 178 read = ReadAndDispatchSinglePacket( 225 return false; // We failed to read.
|
/external/chromium_org/remoting/base/ |
compound_buffer.cc | 256 int read = std::min(count, chunk.size - current_chunk_position_); local 259 current_chunk_position_ += read; 260 position_ += read; 261 count -= read; 263 // If the current buffer is fully read, then advance to the next buffer.
|
/external/chromium_org/sandbox/win/src/ |
service_resolver_64.cc | 121 SIZE_T read; local 123 sizeof(function_code), &read)) 126 if (sizeof(function_code) != read)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
data.py | 71 def read(self): member in class:CoverageData 72 """Read coverage data from the coverage data file (if it exists).""" 135 """Read the coverage data from `filename`."""
|
html.py | 24 return data_file.read() 71 # Read the status data. 72 self.status.read(config.html_dir) 116 source = source_file.read() 244 def read(self, directory): member in class:HtmlStatus 245 """Read the last status in `directory`."""
|
/external/chromium_org/third_party/freetype/include/freetype/ |
ftsystem.h | 13 /* this file you indicate that you have read the license and */ 223 * A function used to seek and read data from a given input stream. 230 * The offset of read in stream (always from start). 233 * The address of the read buffer. 236 * The number of bytes to read from the stream. 239 * The number of bytes effectively read by the stream. 301 * read :: 329 FT_Stream_IoFunc read; member in struct:FT_StreamRec_
|
/external/chromium_org/third_party/freetype/src/smooth/ |
ftsmooth.c | 13 /* this file you indicate that you have read the license and */ 348 FT_Byte* read = bitmap->buffer + ( height - height_org ) * pitch; local 355 ft_memcpy( write, read, pitch ); 358 ft_memcpy( write, read, pitch ); 361 ft_memcpy( write, read, pitch ); 363 read += pitch;
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stream_unittest.cc | 42 virtual StreamResult Read(void* buffer, size_t buffer_len, 43 size_t* read, int* error) { 48 if (read) 49 *read = buffer_len; 97 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 105 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 132 // Read a lot of bytes 133 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 140 // Read a bunch more bytes 141 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS) 441 size_t read; local [all...] |