HomeSort by relevance Sort by last modified time
    Searched refs:read (Results 501 - 525 of 7502) sorted by null

<<21222324252627282930>>

  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
BluetoothConnection.java 143 * To test if the next data is ready to be read
145 * @return Boolean TRUE if data is ready to be read
155 * Read an array of data
157 * @return byte[] the buffer read
164 * Read an array of data of given size
166 * @param bufferSize the size to read
168 * @return byte[] the buffer containing read data
173 int bytesRead = mInputStream.read(buffer);
175 Log.e("Read failed.");
176 throw new IOException("Read failed.")
192 public String read() throws IOException { method in class:BluetoothConnection
203 public String read(int bufferSize) throws IOException { method in class:BluetoothConnection
    [all...]
  /external/syslinux/gpxe/src/interface/efi/
efi_io.c 74 * Read from device
78 * @ret data Value read
81 EFI_CPU_IO_PROTOCOL_IO_MEM read; local
85 read = ( IS_PORT_ADDRESS ( io_addr ) ?
86 cpu_io->Io.Read : cpu_io->Mem.Read );
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
    [all...]
  /frameworks/base/media/java/android/media/
AmrInputStream.java 50 // helper for bytewise read()
90 public int read() throws IOException { method in class:AmrInputStream
91 int rtn = read(mOneByte, 0, 1);
99 public int read(byte[] b) throws IOException { method in class:AmrInputStream
100 return read(b, 0, b.length);
107 public int read(byte[] b, int offset, int length) throws IOException { method in class:AmrInputStream
126 int n = mInputStream.read(mBuf, numRead, SAMPLES_PER_FRAME * 2 - numRead);
143 // now read encoded data from the encoder
  /libcore/luni/src/test/java/libcore/java/util/zip/
DeflaterOutputStreamTest.java 47 assertEquals(1, in.read());
48 assertEquals(2, in.read());
49 assertEquals(3, in.read());
56 in.read();
69 * stream is read, that read will fail when no bytes are available. Failing
73 * the dry read to block indefinitely.
151 int n = iis.read(input, total, input.length - total);
158 iis.read();
  /libcore/ojluni/src/main/java/sun/nio/ch/
SourceChannelImpl.java 40 // Used to make native read and write calls
50 // ID of native thread doing read, for signalling
158 public int read(ByteBuffer dst) throws IOException { method in class:SourceChannelImpl
171 n = IOUtil.read(fd, dst, -1, nd);
182 public long read(ByteBuffer[] dsts, int offset, int length) method in class:SourceChannelImpl
187 return read(Util.subsequence(dsts, offset, length));
190 public long read(ByteBuffer[] dsts) throws IOException { method in class:SourceChannelImpl
202 n = IOUtil.read(fd, dsts, nd);
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
FatFileSystem.java 59 * @param readOnly if this FS should be read-lonly
61 * @throws IOException on read error
69 this.bs = BootSector.read(device);
76 this.fat = Fat.read(bs, 0);
80 final Fat tmpFat = Fat.read(bs, i);
92 this.fsiSector = FsInfoSector.read(f32bs);
101 Fat16RootDirectory.read((Fat16BootSector) bs,readOnly);
111 * and returns a fresh {@code FatFileSystem} instance to read or modify
115 * @param readOnly if the {@code FatFileSystem} should be in read-only mode
117 * @throws IOException on read error or if the file system structure coul
120 public static FatFileSystem read(BlockDevice device, boolean readOnly) method in class:FatFileSystem
    [all...]
  /external/okhttp/okio/okio/src/test/java/okio/
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); local
307 assertEquals(1, read);
311 assertEquals(3, read);
321 int read = source.read(sink); local
337 int read = source.read(sink, 2, 3); local
549 int read = in.read(bytes); local
573 int read = in.read(bytes, 1, 3); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
UsbAccessoryTestActivity.java 130 int numRead = is.read(buffer32);
139 numRead = is.read(buffer16);
143 // If a transfer was only partially read, the rest of the transfer is
144 // lost. We cannot read the second part, hence proceed to the next test.
152 numRead = is.read(buffer32);
162 // Even though the buffer would hold 32 bytes the input stream will read
164 numRead = is.read(buffer32);
169 numRead = is.read(buffer32);
179 numRead = is.read(bufferMax);
194 numRead = is.read(bufferMax)
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
AssetFileDescriptor_AutoCloseOutputStreamTest.java 73 assertEquals(FILE_DATA[i], inputStream.read());
76 assertEquals(FILE_DATA[i], inputStream.read());
78 assertEquals(FILE_END, inputStream.read());
  /external/brotli/java/org/brotli/dec/
BrotliInputStream.java 44 * <p> For byte-by-byte reading ({@link #read()}) internal buffer with
59 * <p> For byte-by-byte reading ({@link #read()}) internal buffer of specified size is
97 public int read() throws IOException { method in class:BrotliInputStream
99 remainingBufferBytes = read(buffer, 0, buffer.length);
112 public int read(byte[] destBuffer, int destOffset, int destLen) throws IOException { method in class:BrotliInputStream
SetDictionaryTest.java 49 assertEquals(3, decoder.read(buffer, 0, buffer.length));
57 decoder.read(buffer, 0, buffer.length);
72 assertEquals(4, decoder.read(buffer, 0, buffer.length));
  /external/emma/core/java12/com/vladium/emma/rt/
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/guava/guava/src/com/google/common/io/
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/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
RemoteControlReaderWriterTest.java 49 reader.read();
83 assertFalse(reader.read());
91 assertTrue(reader.read());
  /external/libbrillo/brillo/streams/
stream_utils.h 23 // Generates "Read past end of stream" error and returns false.
61 // Checks if |mode| allows read access.
63 return mode == Stream::AccessMode::READ ||
73 // Make the access mode based on read/write rights requested.
74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) {
75 CHECK(read || write); // Either read or write (or both) must be specified.
76 if (read && write)
78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ;
87 // data from the input stream is read. The function takes ownership of bot
    [all...]
  /external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/
UnicodeReader.java 65 * InputStream to be read
73 * read() method to initialize it.
80 * Read-ahead four bytes and check for BOM marks. Extra bytes are unread
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/
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/
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);
  /frameworks/av/media/mtp/
MtpFfsHandle.h 51 int doAsync(void* data, size_t len, bool read, bool zero_packet);
76 int iobufSubmit(struct io_buffer *buf, int fd, unsigned length, bool read);
86 int read(void *data, size_t len) override;
  /frameworks/base/core/java/android/util/
Base64InputStream.java 24 * An InputStream that does Base64 decoding on the data read through
39 * An InputStream that performs Base64 decoding on the data read
42 * @param in the InputStream to read the source data from
51 * Performs Base64 encoding or decoding on the data read from the
54 * @param in the InputStream to read the source data from
108 public int read() throws IOException { method in class:Base64InputStream
119 public int read(byte[] b, int off, int len) throws IOException { method in class:Base64InputStream
133 * Read data from the input stream into inputBuffer, then
139 int bytesRead = in.read(inputBuffer);
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
ExifReader.java 44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, method in class:ExifReader
73 if (buf.length == parser.read(buf)) {
76 Log.w(TAG, "Failed to read the compressed thumbnail");
81 if (buf.length == parser.read(buf)) {
84 Log.w(TAG, "Failed to read the strip bytes");
  /frameworks/native/libs/binder/
IProcessInfoService.cpp 46 if (replyLen > 0 && (err = reply.read(states, length * sizeof(*states))) != NO_ERROR) {
71 if (replyLen > 0 && (err = reply.read(
79 if (replyLen > 0 && (err = reply.read(
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
FileReaderTest.java 48 int r = br.read(buf);
50 assertEquals("Failed to read correct chars", " After test string",
64 int r = br.read(buf);
67 assertEquals("Failed to read correct chars", " After test string",
80 int r = br.read(buf);
82 assertEquals("Failed to read correct chars", " After test string",
  /libcore/luni/src/test/java/libcore/java/io/
ObjectOutputStreamTest.java 104 Serializable read; local
107 read = (Serializable) ois.readObject();
109 return read;
  /libcore/luni/src/test/java/libcore/java/util/jar/
OldJarInputStreamTest.java 72 jis.read(b, 0, 100);
78 jis.read(b, 0, 100);
86 jis.read(b, 0, 100); // But RI here, only!

Completed in 1079 milliseconds

<<21222324252627282930>>