/frameworks/base/obex/javax/obex/ |
H A D | ObexPacket.java | 35 * @param is the input stream to read from. 36 * @return the OBEX packet read. 37 * @throws IOException if an IO exception occurs during read. 39 public static ObexPacket read(InputStream is) throws IOException { method in class:ObexPacket 40 int headerId = is.read(); 41 return read(headerId, is); 46 * @param headerId the headerId already read from the stream. 47 * @param is the stream to read from, assuming 1 byte have already been read. 48 * @return the OBEX packet read 51 public static ObexPacket read(int headerId, InputStream is) throws IOException { method in class:ObexPacket [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 50 * 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. 57 public int read() throws IOException { method in class:BluetoothInputStream 59 int ret = mSocket.read(b, 0, 1); 71 * @param b the byte array in which to store the bytes read. 72 * @param offset the initial position in {@code buffer} to store the bytes read from this 75 * @return the number of bytes actually read or -1 if the end of the stream has been reached. 81 public int read(byte[] b, int offset, int length) throws IOException { method in class:BluetoothInputStream 88 return mSocket.read(b, offset, length);
|
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/ |
H A D | StreamUtil.java | 34 public int read() throws IOException { 35 return is.read(); 40 public int read(byte[] b) throws IOException { 41 return read(b, 0, b.length); 46 public int read(byte[] b, int off, int len) throws IOException { 48 byte[] read = is.read(off, len); 49 int actualLength = Math.min(len, read.length); 50 System.arraycopy(read, 0, b, off, actualLength);
|
H A D | RemoteInputStream.java | 24 int read() throws IOException; method in interface:RemoteInputStream 26 byte[] read(int off, int len) throws IOException; method in interface:RemoteInputStream
|
H A D | RemoteInputStreamAdapter.java | 40 public int read() throws IOException { method in class:RemoteInputStreamAdapter 41 return mDelegate.read(); 45 public byte[] read(int off, int len) throws IOException, RemoteException { method in class:RemoteInputStreamAdapter 47 if (mDelegate.read(buffer, off, len) == -1) {
|
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 50 int read = klogctl(/* SYSLOG_ACTION_READ_ALL */ 3, buf, size); local 51 if (read < 0) { 52 ALOGD("can't read logs - %d", read); 56 ALOGV("read %d bytes", read); 59 if (read != size) { 60 ALOGV("read %d bytes, expecting %d", read, size); 63 JNIObject<jbyteArray> result = helper.newByteArray(read); [all...] |
/frameworks/data-binding/extensions/library/src/androidTest/java/android/databinding/ |
H A D | ObservableParcelTest.java | 36 ObservableInt read = parcelAndUnparcel(observableInt, ObservableInt.class); 37 assertEquals(Integer.MAX_VALUE - 1, read.get()); 42 ObservableBoolean read = parcelAndUnparcel(obj, ObservableBoolean.class); 43 assertFalse(read.get()); 52 ObservableByte read = parcelAndUnparcel(obj, ObservableByte.class); 53 assertEquals((byte) 7, read.get()); 58 ObservableChar read = parcelAndUnparcel(obj, ObservableChar.class); 59 assertEquals('y', read.get()); 64 ObservableDouble read = parcelAndUnparcel(obj, ObservableDouble.class); 65 assertEquals(Double.MAX_VALUE, read [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | MacAuthenticatedInputStream.java | 62 public int read() throws IOException { method in class:MacAuthenticatedInputStream 63 final int b = super.read(); 71 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:MacAuthenticatedInputStream 72 int numRead = super.read(buffer, offset, count);
|
H A D | LimitedLengthInputStream.java | 9 * A class that limits the amount of data that is read from an InputStream. When 17 * The end of the stream where we don't want to allow more data to be read. 58 public synchronized int read() throws IOException { method in class:LimitedLengthInputStream 64 return super.read(); 68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { method in class:LimitedLengthInputStream 84 final int numRead = super.read(buffer, offset, byteCount); 91 public int read(byte[] buffer) throws IOException { method in class:LimitedLengthInputStream 92 return read(buffer, 0, buffer.length);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | LocalSocketTest.java | 46 // Test trivial read and write 49 assertEquals(42, ls1.getInputStream().read()); 62 assertEquals(42, ls1.getInputStream().read()); 71 assertEquals(1, ls.getInputStream().read()); 77 countRead = ls.getInputStream().read(buffer, 1, 15); 87 ls.getInputStream().read(buffer, 1, 16); 115 ls.getInputStream().read(buffer, -1, 15); 122 ls.getInputStream().read(buffer, 0, -1); 128 // Try read of length 0 130 countRead = ls1.getInputStream().read(buffe [all...] |
/frameworks/base/core/java/android/service/persistentdata/ |
H A D | IPersistentDataBlockService.aidl | 31 byte[] read();
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInputStream.java | 28 * 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/com/android/internal/util/ |
H A D | SizedInputStream.java | 26 * bytes have been read. 44 public int read() throws IOException { method in class:SizedInputStream 49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:SizedInputStream 56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
|
/frameworks/base/media/java/android/media/ |
H A D | ResampleInputStream.java | 49 // helper for bytewise read() 71 public int read() throws IOException { method in class:ResampleInputStream 72 int rtn = read(mOneByte, 0, 1); 77 public int read(byte[] b) throws IOException { method in class:ResampleInputStream 78 return read(b, 0, b.length); 82 public int read(byte[] b, int offset, int length) throws IOException { method in class:ResampleInputStream 95 // read until we have enough data for at least one output sample 103 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount);
|
/frameworks/av/media/libstagefright/ |
H A D | CallbackMediaSource.cpp | 39 status_t CallbackMediaSource::read(MediaBufferBase **buffer, const ReadOptions *options) { function in class:android::CallbackMediaSource 40 return mSource->read(buffer, reinterpret_cast<const ReadOptions*>(options));
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 31 public int read() { method in class:ByteBufferInputStream 39 public int read(byte[] bytes, int off, int len) { method in class:ByteBufferInputStream
|
H A D | CountedDataInputStream.java | 44 public int read(byte[] b) throws IOException { method in class:CountedDataInputStream 45 int r = in.read(b); 51 public int read(byte[] b, int off, int len) throws IOException { method in class:CountedDataInputStream 52 int r = in.read(b, off, len); 58 public int read() throws IOException { method in class:CountedDataInputStream 59 int r = in.read(); 83 int r = read(b, off, len);
|
/frameworks/av/media/mtp/ |
H A D | MtpResponsePacket.h | 39 // read our buffer with the given request 40 int read(struct usb_request *request);
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
H A D | ZipUtilTest.java | 75 int read = raf.read(dirData, off, length); 79 length -= read; 80 off += read; 122 int read = in.read(buffer); 123 while (read != -1) { 124 out.write(buffer, 0, read); 125 read = in.read(buffe [all...] |
/frameworks/ex/framesequence/jni/ |
H A D | Stream.cpp | 28 jmethodID read; member in struct:__anon1298 51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining); local 53 mPeekSize = peek_remaining + read; 60 size_t Stream::read(void* buffer, size_t size) { function in class:Stream 129 gInputStreamClassInfo.read, mByteArray, 0, requested); 150 gInputStreamClassInfo.read = env->GetMethodID(inputStreamClazz, "read", "([BII)I"); 152 if (!gInputStreamClassInfo.read || !gInputStreamClassInfo.reset) {
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProviderTest.java | 42 int count = in.read(buf); 44 assertEquals(-1, in.read()); 60 int count = in.read(buf); 75 int count = in.read(buf); 77 assertEquals(-1, in.read());
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsHeader.java | 132 int id = inStream.read(); 133 int length = inStream.read(); 139 concatRef.refNumber = inStream.read(); 140 concatRef.msgCount = inStream.read(); 141 concatRef.seqNumber = inStream.read(); 150 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); 151 concatRef.msgCount = inStream.read(); 152 concatRef.seqNumber = inStream.read(); 161 portAddrs.destPort = inStream.read(); [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ParserFactory.java | 113 // get the size to read. 117 // create the initial buffer and read it. 119 int read = stream.read(buffer); 122 if (read == intSize) { 126 // check if there is more to read (read() does not necessarily read all that 129 if (read + avail > buffer.length) { 132 byte[] moreBuffer = new byte[read [all...] |
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_composer_client.cpp | 72 auto err = mVrHal.setLayerInfo(mCurrentDisplay, mCurrentLayer, read(), read()); 108 .width = read(), 109 .height = read(), 110 .stride = read(), 111 .layerCount = read(),
|
/frameworks/av/media/libnbaio/ |
H A D | MonoPipeReader.cpp | 46 ssize_t MonoPipeReader::read(void *buffer, size_t count) function in class:android::MonoPipeReader 49 ssize_t actual = mFifoReader.read(buffer, count);
|