Searched defs:read (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp31 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { function in class:AssetStreamAdaptor
53 amount = fAsset->read(buffer, size);
55 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
/frameworks/base/libs/surfaceflinger_client/
H A DLayerState.cpp44 status_t layer_state_t::read(const Parcel& input) function in class:android::layer_state_t
51 err = transparentRegion.read(buf);
57 input.read(this, size);
/frameworks/base/tests/CoreTests/android/core/
H A DIOUtil.java36 public static String read(InputStream a) throws IOException { method in class:IOUtil
40 r = a.read();
54 public static String read(Reader a) throws IOException { method in class:IOUtil
58 r = a.read();
69 * @param x number of characters to read.
73 public static String read(InputStream a, int x) throws IOException { method in class:IOUtil
75 int len = a.read(b, 0, x);
86 * @param x the number of characters to read.
90 public static String read(Reader a, int x) throws IOException { method in class:IOUtil
92 int len = a.read(
[all...]
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java28 * is called, the current entity's header has already been read from the underlying
33 * source, nor read more than {@link #size()} bytes from the stream.</p>
54 * are read from the stream, the output of this method is undefined.
56 * @return The byte read, or undefined if the end of the stream has been reached.
58 public int read() throws IOException { method in class:BackupDataInputStream
71 * @param b Byte array into which the data will be read
74 * @param size The number of bytes to read in this operation. If insufficient
76 * will be read as is available.
77 * @return The number of bytes of data read, or zero if all of the entity's
78 * data has already been read
80 public int read(byte[] b, int offset, int size) throws IOException { method in class:BackupDataInputStream
93 public int read(byte[] b) throws IOException { method in class:BackupDataInputStream
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java50 * reached. Blocks until one byte has been read, the end of the source
53 * @return the byte read or -1 if the end of stream has been reached.
58 public int read() throws IOException { method in class:BluetoothInputStream
60 int ret = mSocket.read(b, 0, 1);
73 * the byte array in which to store the bytes read.
76 * read from this stream.
79 * @return the number of bytes actually read or -1 if the end of the stream
89 public int read(byte[] b, int offset, int length) throws IOException { method in class:BluetoothInputStream
96 return mSocket.read(b, offset, length);
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java20 * An object that provides bitwise incremental read access to a byte array.
29 // The byte array being read from.
71 * @param bits the amount of data to read (gte 0, lte 8)
72 * @return byte of read data (possibly partially filled, from lsb)
74 public int read(int bits) throws AccessException { method in class:BitwiseInputStream
78 throw new AccessException("illegal read " +
92 * @param bits the amount of data to read
93 * @return newly allocated byte array of read data
100 arr[i] = (byte)(read(increment) << (8 - increment));
/frameworks/base/libs/gui/
H A DSensorChannel.cpp73 ssize_t SensorChannel::read(void* vaddr, size_t size) function in class:android::SensorChannel
75 ssize_t len = ::read(mReceiveFd, vaddr, size);
H A DSensor.cpp147 size_t read(void const* buffer, size_t offset, String8* value, int32_t len) { function in namespace:android
153 size_t read(void const* buffer, size_t offset, float* value) { function in namespace:android
159 size_t read(void const* buffer, size_t offset, int32_t* value) { function in namespace:android
169 offset += read(buffer, offset, &len);
170 offset += read(buffer, offset, &mName, len);
171 offset += read(buffer, offset, &len);
172 offset += read(buffer, offset, &mVendor, len);
173 offset += read(buffer, offset, &mHandle);
174 offset += read(buffer, offset, &mType);
175 offset += read(buffe
[all...]
H A DSensorEventQueue.cpp70 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) function in class:android::SensorEventQueue
72 ssize_t size = mSensorChannel->read(events, numEvents*sizeof(events[0]));
74 "SensorChannel::read error (%s)", strerror(-size));
77 // partial read!!! should never happen.
78 LOGE("SensorEventQueue partial read (event-size=%u, read=%d)",
82 // returns number of events read
/frameworks/base/media/jni/soundpool/
H A DSoundPoolThread.cpp38 const SoundPoolMsg SoundPoolThread::read() { function in class:android::SoundPoolThread
84 SoundPoolMsg msg = read();
/frameworks/base/obex/javax/obex/
H A DPrivateInputStream.java54 * Creates an input stream for the <code>Operation</code> to read from
65 * Returns the number of bytes that can be read (or skipped over) from this
69 * @return the number of bytes that can be read from this input stream
85 * @return the byte read from the input stream or -1 if it reaches the end of
90 public synchronized int read() throws IOException { method in class:PrivateInputStream
101 public int read(byte[] b) throws IOException { method in class:PrivateInputStream
102 return read(b, 0, b.length);
106 public synchronized int read(byte[] b, int offset, int length) throws IOException { method in class:PrivateInputStream
/frameworks/base/cmds/stagefright/
H A DSineSource.cpp60 status_t SineSource::read( function in class:android::SineSource
/frameworks/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java57 public int read() throws IOException { method in class:MicrophoneInputStream
64 public int read(byte[] b) throws IOException { method in class:MicrophoneInputStream
70 public int read(byte[] b, int offset, int length) throws IOException { method in class:MicrophoneInputStream
H A DUlawEncoderInputStream.java141 public int read(byte[] buf, int offset, int length) throws IOException { method in class:UlawEncoderInputStream
146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount));
163 public int read(byte[] buf) throws IOException { method in class:UlawEncoderInputStream
164 return read(buf, 0, buf.length);
168 public int read() throws IOException { method in class:UlawEncoderInputStream
169 int n = read(mOneByte, 0, 1);
/frameworks/base/core/java/android/util/
H A DBase64InputStream.java24 * 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
139 int bytesRead = in.read(inputBuffer);
/frameworks/base/libs/utils/
H A DStreamingZipInflater.cpp97 mInflateState.avail_in = 0; // set when a chunk is read in
112 * a. if there is no input data to decode, read some into the input buffer
117 ssize_t StreamingZipInflater::read(void* outBuf, size_t count) { function in class:StreamingZipInflater
135 // if we don't have any data to decode, read some in. If we're working
175 // not try to read any further, so just wind things up.
194 ssize_t didRead = ::read(mFd, mInBuf, toRead);
220 read(NULL, absoluteInputPosition);
222 read(NULL, absoluteInputPosition - mOutCurPosition);
/frameworks/base/media/java/android/media/
H A DAmrInputStream.java52 // helper for bytewise read()
66 public int read() throws IOException { method in class:AmrInputStream
67 int rtn = read(mOneByte, 0, 1);
72 public int read(byte[] b) throws IOException { method in class:AmrInputStream
73 return read(b, 0, b.length);
77 public int read(byte[] b, int offset, int length) throws IOException { method in class:AmrInputStream
88 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i);
H A DResampleInputStream.java52 // helper for bytewise read()
74 public int read() throws IOException { method in class:ResampleInputStream
75 int rtn = read(mOneByte, 0, 1);
80 public int read(byte[] b) throws IOException { method in class:ResampleInputStream
81 return read(b, 0, b.length);
85 public int read(byte[] b, int offset, int length) throws IOException { method in class:ResampleInputStream
98 // read until we have enough data for at least one output sample
106 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount);
/frameworks/base/media/libstagefright/
H A DShoutcastSource.cpp89 status_t ShoutcastSource::read( function in class:android::ShoutcastSource
H A DThreadedSource.cpp88 status_t ThreadedSource::read( function in class:android::ThreadedSource
170 status_t err = mSource->read(&buffer, &options);
/frameworks/base/media/libstagefright/codecs/amrnb/dec/
H A DAMRNBDecoder.cpp113 status_t AMRNBDecoder::read( function in class:android::AMRNBDecoder
135 err = mSource->read(&mInputBuffer, options);
/frameworks/base/media/libstagefright/codecs/mp3dec/
H A DMP3Decoder.cpp118 status_t MP3Decoder::read( function in class:android::MP3Decoder
144 err = mSource->read(&mInputBuffer, options);
/frameworks/base/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp51 status_t AnotherPacketSource::read( function in class:android::AnotherPacketSource
/frameworks/base/media/libstagefright/rtsp/
H A DVideoSource.h57 virtual status_t read( function in class:android::VideoSource
64 // printf("VideoSource::read\n");
78 // printf("VideoSource::read - returning buffer\n");
79 // LOG(INFO)("VideoSource::read - returning buffer");
/frameworks/base/media/libstagefright/codecs/aacdec/
H A DAACDecoder.cpp157 status_t AACDecoder::read( function in class:android::AACDecoder
183 err = mSource->read(&mInputBuffer, options);

Completed in 714 milliseconds

1234