Searched refs:read (Results 26 - 50 of 436) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/speech/srec/
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);
H A DWaveHeader.java177 * @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));
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
/frameworks/av/include/media/nbaio/
H A DLibsndfileSource.h46 virtual ssize_t read(void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
/frameworks/av/media/mtp/
H A DMtpDeviceInfo.h47 void read(MtpDataPacket& packet);
H A DMtpStorageInfo.h42 void read(MtpDataPacket& packet);
/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
H A DServerSession.java94 int requestType = mInput.read();
130 * just going to read the packet and send a not implemented
133 int length = mInput.read();
134 length = (length << 8) + mInput.read();
136 mInput.read();
151 * Handles a ABORT request from a client. This method will read the rest of
164 int length = mInput.read();
165 length = (length << 8) + mInput.read();
170 mInput.read();
282 * Handles a SETPATH request from a client. This method will read th
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DPrefs.java25 public static SharedPreferences read(Context context) { method in class:Prefs
/frameworks/rs/cpu_ref/linkloader/include/
H A DELFSectionStrTab.h39 static ELFSectionStrTab *read(Archiver &AR, ELFSectionHeaderTy const *sh);
/frameworks/rs/cpu_ref/linkloader/include/impl/
H A DELFSectionNoBits.hxx30 ELFSectionNoBits<Bitwidth>::read(Archiver &AR, ELFSectionHeaderTy const *sh) { function in class:ELFSectionNoBits
/frameworks/rs/
H A DrsFifo.h40 size_t virtual read(void *data, size_t bytes, bool doWait = true, uint64_t timeToWait = 0) = 0;
H A DrsThreadIO.cpp76 //ALOGV("core read %p %i", data, (int)len);
77 mToCore.read(data, len);
138 r = mToCore.read(&buf[0], sizeof(CoreCmdHeader));
139 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
145 r = mToCore.read((void *)&cmd->cmdID, sizeof(cmd->cmdID));
188 mToClient.read(&mLastClientHeader, sizeof(mLastClientHeader));
205 mToClient.read(data, receiveLen[0]);
/frameworks/base/core/tests/coretests/src/android/content/
H A DAssetTest.java41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
51 readCount = is.read(buffer, 0, buffer.length);
55 readCount = is.read(buffer, buffer.length, 0);
/frameworks/base/media/java/android/media/videoeditor/
H A DWaveformData.java83 audioGraphFileReadHandle.read(tempFrameDuration, 0, 4);
98 audioGraphFileReadHandle.read(tempFramesCount, 0, 4);
111 mGains[i] = (short)audioGraphFileReadHandle.read();
/frameworks/native/libs/gui/
H A DSensor.cpp164 FlattenableUtils::read(buffer, size, len);
175 FlattenableUtils::read(buffer, size, len);
191 FlattenableUtils::read(buffer, size, mVersion);
192 FlattenableUtils::read(buffer, size, mHandle);
193 FlattenableUtils::read(buffer, size, mType);
194 FlattenableUtils::read(buffer, size, mMinValue);
195 FlattenableUtils::read(buffer, size, mMaxValue);
196 FlattenableUtils::read(buffer, size, mResolution);
197 FlattenableUtils::read(buffer, size, mPower);
198 FlattenableUtils::read(buffe
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DProcFileReader.java40 /** Flag when last read token finished current line. */
51 // read enough to answer hasMoreData
64 final int read = mStream.read(mBuffer, mTail, length);
65 if (read != -1) {
66 mTail += read;
68 return read;
76 // TODO: consider moving to read pointer, but for now traceview says
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java89 assertEquals(length, is.read(temp, 0, temp.length));
94 assertEquals(-1, is.read(temp, 0, temp.length));
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10));
139 assertEquals(length, is.read(temp));
144 assertEquals(-1, is.read(temp));
171 assertEquals(TEST_STRING1[offset + i], is.read());
174 assertEquals(-1, is.read());
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java319 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) {
323 throw new IOException("Expected " + length + " bytes, read " + pos + " bytes");
374 * @param is The InputStream to read from.
441 public int read() throws IOException { method in class:DiskBasedCache.CountingInputStream
442 int result = super.read();
450 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:DiskBasedCache.CountingInputStream
451 int result = super.read(buffer, offset, count);
467 * Simple wrapper around {@link InputStream#read()} that throws EOFException
470 private static int read(InputStream is) throws IOException { method in class:DiskBasedCache
471 int b = is.read();
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java561 * extended with byte-wise reversed endianness read/write
965 int paramBits = inStream.read(8) * 8;
969 bData.messageType = inStream.read(4);
970 bData.messageId = inStream.read(8) << 8;
971 bData.messageId |= inStream.read(8);
972 bData.hasUserDataHeader = (inStream.read(1) == 1);
989 int subparamLen = inStream.read(8); // SUBPARAM_LEN
1008 int paramBits = inStream.read(8) * 8;
1010 bData.userData.msgEncoding = inStream.read(5);
1016 bData.userData.msgType = inStream.read(
[all...]
/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/core/jni/android/graphics/
H A DUtils.cpp62 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { function in class:AssetStreamAdaptor
84 amount = fAsset->read(buffer, size);
86 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
115 off64_t len = asset->read(data, size);
117 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifReader.java44 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/include/private/gui/
H A DLayerState.h64 status_t read(const Parcel& input);
86 // non POD must be last. see write/read
94 status_t read(const Parcel& input);
122 status_t read(const Parcel& input);

Completed in 535 milliseconds

1234567891011>>