HomeSort by relevance Sort by last modified time
    Searched defs:read (Results 276 - 300 of 1637) sorted by null

<<11121314151617181920>>

  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
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);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
multifile.py 13 "read some lines from fp"
16 "read lines from fp until it returns an empty string" (A)
19 "read remaining lines from fp until it returns an empty string"
120 def read(self): # Note: no size argument -- read until EOF only! member in class:MultiFile
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
multifile.py 13 "read some lines from fp"
16 "read lines from fp until it returns an empty string" (A)
19 "read remaining lines from fp until it returns an empty string"
120 def read(self): # Note: no size argument -- read until EOF only! member in class:MultiFile
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
PipedReaderTest.java 130 preader.read(c, 0, 11);
132 assertEquals("Read incorrect chars", "Hello World", new String(c));
147 preader.read(c, 0, 11);
149 assertEquals("Read incorrect chars", "Hello World", new String(c));
159 * @tests java.io.PipedReader#read()
169 c[i] = (char) preader.read();
171 assertEquals("Read incorrect chars", "Hello World", new String(c));
175 * @tests java.io.PipedReader#read(char[], int, int)
187 n = preader.read(c, x, 11 - x);
190 assertEquals("Read incorrect chars", "Hello World", new String(c))
    [all...]
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...]
StringBufferInputStreamTest.java 45 * @tests java.io.StringBufferInputStream#read()
48 // Test for method int java.io.StringBufferInputStream.read()
51 sbis.read(buf, 0, 5);
56 * @tests java.io.StringBufferInputStream#read(byte[], int, int)
59 // Test for method int java.io.StringBufferInputStream.read(byte [],
61 assertEquals("Read returned incorrect char", 'H', sbis.read());
72 assertEquals("Failed to reset", 'H', sbis.read());
82 assertEquals("Skip positioned at incorrect char", 'W', sbis.read());
  /libcore/luni/src/test/java/libcore/java/io/
FileInputStreamTest.java 63 assertEquals(count, is.read(buffer));
77 assertEquals(-1, fis.read());
116 fis2.read();
121 fis2.read(new byte[1], 0, 1);
131 assertFalse(fis1.read() == -1);
141 fis1.read();
146 fis1.read(new byte[1], 0, 1);
172 fis.read();
177 fis.read(new byte[1], 0, 1);
193 fis.read(new byte[0], 0, 0)
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
Fat.java 55 * @param fatNr the number of the {@code Fat} to read
56 * @return the {@code Fat} that was read
57 * @throws IOException on read error
61 public static Fat read(BootSector bs, int fatNr) method in class:Fat
72 result.read();
172 * Read the contents of this FAT from the given device at the given offset.
174 * @param offset the byte offset where to read the FAT from the device
175 * @throws IOException on read error
177 private void read() throws IOException { method in class:Fat
179 device.read(offset, ByteBuffer.wrap(data))
    [all...]
  /bootable/recovery/
bootloader.cpp 81 MtdReadContext *read = mtd_read_partition(part); local
82 if (read == NULL) {
89 ssize_t r = mtd_read_data(read, data, size);
90 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno));
91 mtd_read_close(read);
107 MtdReadContext *read = mtd_read_partition(part); local
108 if (read == NULL) {
115 ssize_t r = mtd_read_data(read, data, size);
116 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno));
117 mtd_read_close(read);
    [all...]
  /build/tools/zipalign/
ZipEntry.cpp 47 /* read the CDE */
48 result = mCDE.read(fp);
50 ALOGD("mCDE.read failed\n");
64 result = mLFH.read(fp);
66 ALOGD("mLFH.read failed\n");
76 * We *might* need to read the Data Descriptor at this point and
397 * Read a local file header.
402 status_t ZipEntry::LocalFileHeader::read(FILE* fp) function in class:ZipEntry::LocalFileHeader
530 * Read the central dir entry that appears next in the file.
536 status_t ZipEntry::CentralDirEntry::read(FILE* fp function in class:ZipEntry::CentralDirEntry
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
AccessPrivateDataTest.java 62 inputStream.read();
  /cts/suite/audio_quality/lib/src/
ClientSocket.cpp 75 // make non-blocking mode only during read. This allows supporting time-out for read
96 int read; local
112 LOGE("socket read timeout");
117 read = recv(mSocket, (void*)data, toRead, 0);
118 if (read > 0) {
119 toRead -= read;
120 data += read;
121 } else if (read == 0) {
122 // in blocking mode, zero read mean's peer closed
    [all...]
RWBuffer.h 87 template <typename T> T read() { function in class:RWBuffer
  /cts/suite/audio_quality/test/
TaskTest.cpp 116 android::String8 read; local
122 ASSERT_TRUE(task->findStringAttributePublic(AAA, read));
123 ASSERT_TRUE(read == aaaVal);
124 ASSERT_TRUE(task->findStringAttributePublic(BBB, read));
125 ASSERT_TRUE(read == bbbVal);
128 ASSERT_TRUE(!task->findStringAttributePublic(VERSION, read));
129 ASSERT_TRUE(!task->findStringAttributePublic(NAME, read));
  /development/ndk/platforms/android-3/include/linux/
android_pmem.h 46 ssize_t (*read) (struct file *, char __user *, size_t, long long *); member in struct:pmem_file_operations
  /device/generic/goldfish/opengl/shared/OpenglCodecCommon/
Win32PipeStream.cpp 93 PIPE_ACCESS_DUPLEX, // read-write access
137 GENERIC_READ | GENERIC_WRITE, // read & write
220 const unsigned char *Win32PipeStream::read( void *buf, size_t *inout_len) function in class:Win32PipeStream
  /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...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_StringReader.java 48 * longer read from it. Only the first invocation of this method has any
112 * @return the character read or -1 if end of reader.
118 public int read() throws IOException { method in class:Support_StringReader
133 * <code>buf</code>. Returns the number of characters actually read or -1
137 * character array to store the read characters
139 * offset in buf to store the read characters
141 * maximum number of characters to read
142 * @return the number of characters read or -1 if end of reader.
148 public int read(char buf[], int offset, int count) throws IOException { method in class:Support_StringReader
160 int read = end - pos local
    [all...]
  /external/apache-http/src/org/apache/http/conn/
EofSensorInputStream.java 80 * All read operations will indicate EOF without accessing
81 * the underlying stream. After closing this stream, read
117 * Checks whether the underlying stream can be read from.
127 throw new IOException("Attempted read on closed stream.");
135 public int read() throws IOException { method in class:EofSensorInputStream
140 l = wrappedStream.read();
154 public int read(byte[] b, int off, int len) throws IOException { method in class:EofSensorInputStream
159 l = wrappedStream.read(b, off, len);
173 public int read(byte[] b) throws IOException { method in class:EofSensorInputStream
178 l = wrappedStream.read(b)
    [all...]
  /external/arduino/hardware/arduino/cores/arduino/
HardwareSerial.cpp 39 // is the index of the location from which to read.
246 int HardwareSerial::read(void) function in class:HardwareSerial
  /external/arduino/libraries/Wire/
Wire.cpp 82 // perform blocking read into buffer
83 uint8_t read = twi_readFrom(address, rxBuffer, quantity); local
86 rxBufferLength = read;
88 return read;
215 // meaning, they may not have read all the master requestFrom() data yet
219 // copy twi rx buffer into local read buffer
252 // sets function called on slave read
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/io/
CipherInputStream.java 12 * that read() methods return data that are read in from the
18 * CipherInputStream will attempt to read in data and decrypt them,
72 // must always try to read 1 byte!
81 available = super.read(inBuf, 0, inBuf.length);
85 available = super.read(inBuf, 0, available);
141 if (maxBuf == 0) // not enough bytes read for first block...
150 public int read() method in class:CipherInputStream
164 public int read( method in class:CipherInputStream
168 return read(b, 0, b.length)
171 public int read( method in class:CipherInputStream
    [all...]
  /external/chromium/third_party/libjingle/source/talk/examples/login/
xmppsocket.cc 184 bool XmppSocket::Read(char * data, size_t len, size_t* len_read) {
186 int read = cricket_socket_->Recv(data, len); local
187 if (read > 0) {
188 *len_read = (size_t)read;
192 talk_base::StreamResult result = stream_->Read(data, len, len_read, NULL);
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
mock.py 66 This enables tests to specify what should be read from a (mock) mp_conn as
74 read_data: bytes that should be returned when read* methods are
92 def read(self, length): member in class:MockConn
93 """Override mod_python.apache.mp_conn.read."""
109 This enables tests to specify what should be read from a (mock) mp_conn as
111 Callers of read* methods will block if there is no bytes available.
127 def read(self, length): member in class:MockBlockingConn
128 """Override mod_python.apache.mp_conn.read."""
136 """Put bytes to be read from this mock.
139 bytes: bytes to be read
    [all...]
  /external/chromium_org/media/base/
container_names_unittest.cc 114 int read = base::ReadFile(filename, buffer, read_size); local
118 DetermineContainer(reinterpret_cast<const uint8*>(buffer), read))

Completed in 938 milliseconds

<<11121314151617181920>>