/frameworks/av/media/libstagefright/ |
SurfaceMediaSource.cpp | 272 status_t SurfaceMediaSource::read( MediaBuffer **buffer, function in class:android::SurfaceMediaSource 275 ALOGV("read"); 298 err = item.mFence->waitForever("SurfaceMediaSource::read"); 300 ALOGW("read: failed to wait for buffer fence: %d", err); 330 ALOGE("read: acquire failed with error code %d", err); 339 ALOGV("Read: SurfaceMediaSource is stopped. Returning ERROR_END_OF_STREAM.");
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
AACEncoder.cpp | 215 status_t AACEncoder::read( function in class:android::AACEncoder 245 if (mSource->read(&mInputBuffer, options) != OK) {
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
AnotherPacketSource.cpp | 129 status_t AnotherPacketSource::read( function in class:android::AnotherPacketSource
|
MPEG2TSExtractor.cpp | 49 virtual status_t read( 84 status_t MPEG2TSSource::read( function in class:android::MPEG2TSSource 106 return mImpl->read(out, options);
|
/frameworks/base/core/java/android/speech/srec/ |
WaveHeader.java | 176 * Read and initialize a WaveHeader. 177 * @param in {@link java.io.InputStream} to read from. 181 public int read(InputStream in) throws IOException { method in class:WaveHeader 212 if (id.charAt(i) != in.read()) throw new IOException( id + " tag not present"); 217 return in.read() | (in.read() << 8) | (in.read() << 16) | (in.read() << 24); 221 return (short)(in.read() | (in.read() << 8)) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
ProcFileReader.java | 40 /** Flag when last read token finished current line. */ 51 // read enough to answer hasMoreData 56 * Read more data from {@link #mStream} into internal buffer. 64 final int read = mStream.read(mBuffer, mTail, length); local 65 if (read != -1) { 66 mTail += read; 68 return read; 76 // TODO: consider moving to read pointer, but for now traceview says
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsCollectionTest.java | 69 // verify that history read correctly 82 // and read back into structure, verifying that totals are same 83 collection.read(new ByteArrayInputStream(bos.toByteArray())); 95 // verify that history read correctly 108 // and read back into structure, verifying that totals are same 109 collection.read(new ByteArrayInputStream(bos.toByteArray())); 121 // verify that history read correctly 134 // and read back into structure, verifying that totals are same 135 collection.read(new ByteArrayInputStream(bos.toByteArray()));
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ParserFactory.java | 89 // get the size to read. 93 // create the initial buffer and read it. 95 int read = stream.read(buffer); local 98 if (read == intSize) { 102 // check if there is more to read (read() does not necessarily read all that 105 if (read + avail > buffer.length) { 108 byte[] moreBuffer = new byte[read + avail] [all...] |
/frameworks/compile/mclinker/lib/LD/ |
EhFrameReader.cpp | 91 bool EhFrameReader::read<32, true>(Input& pInput, EhFrame& pEhFrame) function in class:EhFrameReader
|
/frameworks/native/include/binder/ |
Parcel.h | 144 status_t read(void* outData, size_t len) const; 165 status_t read(Flattenable<T>& val) const; 168 status_t read(LightFlattenable<T>& val) const; 173 // response headers. Callers should use this to read & parse the 299 status_t read(FlattenableHelperInterface& val) const; 342 status_t Parcel::read(Flattenable<T>& val) const { function in class:android::Parcel 344 return read(helper); 348 status_t Parcel::read(LightFlattenable<T>& val) const { function in class:android::Parcel
|
/frameworks/native/opengl/libs/EGL/ |
egl_object.h | 152 void onMakeCurrent(EGLSurface draw, EGLSurface read); 157 EGLSurface read; member in class:android::egl_context_t
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
InputStreamBuffer.java | 26 * Wrapper for {@link InputStream} that allows you to read bytes from it like a byte[]. An 91 * @param autoAdvance Determines the behavior when you need to read an index that is beyond 290 // Read from input stream to fill buffer. 291 int read = -1; local 293 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled); 297 if (read != -1) { 298 mFilled = mFilled + read;
|
/hardware/samsung_slsi/exynos5/mobicore/daemon/Kernel/Platforms/Generic/ |
CMcKMod.cpp | 174 int CMcKMod::read(addr_t buffer, uint32_t len) function in class:CMcKMod 183 ret = ::read(fdKMod, buffer, len); 185 LOG_ERRNO("read"); 195 if (read(&cnt, sizeof(cnt)) != sizeof(cnt)) {
|
/libcore/luni/src/main/java/java/io/ |
BufferedInputStream.java | 40 * The buffer containing the current bytes read from the target InputStream. 70 * {@code BufferedInputStream}. All read operations on such a stream will 84 * {@code BufferedInputStream}. All read operations on such a stream will 100 * Returns an estimated number of bytes that can be read or skipped without blocking for more 142 int result = localIn.read(localBuf); 168 int bytesread = localIn.read(localBuf, pos, localBuf.length - pos); 175 * indicates how many bytes can be read before a mark is invalidated. 182 * the number of bytes that can be read before the mark is 211 * @return the byte read or -1 if the end of the source stream has been 217 public synchronized int read() throws IOException method in class:BufferedInputStream 245 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:BufferedInputStream 277 int read; local 366 long read = count - pos; local [all...] |
BufferedReader.java | 44 * The characters that can be read and refilled in bulk. We maintain three 52 * must be {@link #fillBuf() filled} before characters can be read. 76 * the same line ending. Both readLine and all read methods are supposed 137 * @return the number of chars read into the buffer, or -1 if the end of the 145 int result = in.read(buf, 0, buf.length); 172 int count = in.read(buf, pos, buf.length - pos); 191 * indicates how many characters can be read before the mark is invalidated. 196 * the number of characters that can be read before the mark is 244 * @return the character read or -1 if the end of the source reader has been 250 public int read() throws IOException method in class:BufferedReader 284 public int read(char[] buffer, int offset, int length) throws IOException { method in class:BufferedReader 485 long read = end - pos; local [all...] |
DataInputStream.java | 29 * be read include byte, 16-bit short, 32-bit int, 32-bit float, 64-bit long, 41 * reads are then filtered through this stream. Note that data read by this 58 @Override public final int read(byte[] buffer) throws IOException { method in class:DataInputStream 59 return super.read(buffer); 62 @Override public final int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:DataInputStream 63 return in.read(buffer, byteOffset, byteCount); 67 int temp = in.read(); 75 int temp = in.read(); 116 int nextByte = in.read(); 157 int temp = in.read(); [all...] |
InputStreamReader.java | 31 * A class for turning a byte stream into a character stream. Data read from the 35 * of bytes read from the source stream and converts these into characters as 56 * the input stream from which to read characters. 69 * the InputStream from which to read characters. 100 * the source InputStream from which to read characters. 117 * the source InputStream from which to read characters. 171 * @return the character read or -1 if the end of the reader has been 177 public int read() throws IOException { method in class:InputStreamReader 183 return read(buf, 0, 1) != -1 ? buf[0] : -1; 190 * the number of characters actually read or -1 if the end of the reader ha 201 public int read(char[] buffer, int offset, int count) throws IOException { method in class:InputStreamReader [all...] |
PipedReader.java | 39 * The circular buffer through which data is passed. Data is read from the 64 * The index in {@code buffer} where the next character will be read. 80 * must be connected to a {@code PipedWriter} before data may be read from 87 * {@code out}. Any data written to the writer can be read from the this 102 * data may be read from it. 117 * with the given buffer size. Any data written to the writer can be read from 133 * the pipe and notifies all threads waiting to read or write. 185 * Separate threads should be used to read from a {@code PipedReader} and to 189 * @return the character read or -1 if the end of the reader has been 195 public int read() throws IOException method in class:PipedReader 224 @Override public synchronized int read(char[] buffer, int offset, int count) throws IOException { method in class:PipedReader [all...] |
/libcore/luni/src/main/java/java/util/jar/ |
JarInputStream.java | 29 * The input stream from which the JAR file to be read may be fetched. It is 134 * {@code buffer} starting at {@code byteOffset}. Returns the number of uncompressed bytes read. 140 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:JarInputStream 144 int r = super.read(buffer, byteOffset, byteCount);
|
/libcore/luni/src/main/java/java/util/zip/ |
DeflaterInputStream.java | 27 * An {@code InputStream} filter to compress data. Callers read 100 * data corresponding to an uncompressed byte or bytes read from the underlying stream. 104 @Override public int read() throws IOException { method in class:DeflaterInputStream 110 * data corresponding to an uncompressed byte or bytes read from the underlying stream. 111 * Returns the number of bytes read or -1 if the end of the compressed input 114 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:DeflaterInputStream 128 // read data from input stream 129 int bytesRead = in.read(buf);
|
GZIPInputStream.java | 28 * The {@code GZIPInputStream} class is used to read data stored in the GZIP 72 * Construct a {@code GZIPInputStream} to read from GZIP data from the 76 * the {@code InputStream} to read data from. 85 * Construct a {@code GZIPInputStream} to read from GZIP data from the 89 * the {@code InputStream} to read data from. 91 * the internal read buffer size. 116 int result = in.read(buf, 0, max); 152 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:GZIPInputStream 163 bytesRead = super.read(buffer, byteOffset, byteCount); 165 eos = eof; // update eos after every read(), even when it throw [all...] |
InflaterInputStream.java | 69 * InputStream} from which the compressed data is to be read from. Default 74 * the {@code InputStream} to read data from. 85 * the {@code InputStream} to read data from. 98 * the {@code InputStream} to read data from. 125 * @return the byte read. 129 @Override public int read() throws IOException { method in class:InflaterInputStream 135 * {@code buffer} starting at {@code byteOffset}. Returns the number of uncompressed bytes read, 139 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:InflaterInputStream 156 // It may also be true if the next read() should return -1. 194 if ((len = in.read(buf)) > 0) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
BlockGuardOs.java | 142 @Override public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException { method in class:BlockGuardOs 144 return os.read(fd, buffer); 147 @Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { method in class:BlockGuardOs 149 return os.read(fd, bytes, byteOffset, byteCount);
|
Streams.java | 35 * Implements InputStream.read(int) in terms of InputStream.read(byte[], int, int). 36 * InputStream assumes that you implement InputStream.read(int) and provides default 41 int result = in.read(buffer, 0, 1); 81 int bytesRead = in.read(dst, offset, byteCount); 108 while ((count = in.read(buffer)) != -1) { 122 while ((count = reader.read(buffer)) != -1) { 134 } while (in.read() != -1); 138 * Call {@code in.read()} repeatedly until either the stream is exhausted or 139 * {@code byteCount} bytes have been read 158 int read = in.read(buffer, 0, toRead); local [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidBufferedInputStreamTest.java | 41 Assert.assertEquals(str, read(a)); 48 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 62 assertEquals('A', d.read()); 64 assertEquals('b', d.read()); 65 assertEquals('C', d.read()); 67 assertEquals('b', d.read()); 76 assertEquals(str, read(e, 10000)); 82 public static String read(InputStream a) throws IOException { method in class:OldAndroidBufferedInputStreamTest 86 r = a.read(); 98 r = a.read(); 105 public static String read(InputStream a, int x) throws IOException { method in class:OldAndroidBufferedInputStreamTest [all...] |