Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 628) sorted by relevance

12345678910>>...26

/frameworks/data-binding/extensions/library/src/androidTest/java/android/databinding/
DObservableParcelTest.java36 ObservableInt read = parcelAndUnparcel(observableInt, ObservableInt.class); in testParcelInt() local
37 assertEquals(Integer.MAX_VALUE - 1, read.get()); in testParcelInt()
42 ObservableBoolean read = parcelAndUnparcel(obj, ObservableBoolean.class); in testParcelBoolean() local
43 assertFalse(read.get()); in testParcelBoolean()
52 ObservableByte read = parcelAndUnparcel(obj, ObservableByte.class); in testParcelByte() local
53 assertEquals((byte) 7, read.get()); in testParcelByte()
58 ObservableChar read = parcelAndUnparcel(obj, ObservableChar.class); in testParcelChar() local
59 assertEquals('y', read.get()); in testParcelChar()
64 ObservableDouble read = parcelAndUnparcel(obj, ObservableDouble.class); in testParcelDouble() local
65 assertEquals(Double.MAX_VALUE, read.get()); in testParcelDouble()
[all …]
/frameworks/base/obex/javax/obex/
DObexPacket.java39 public static ObexPacket read(InputStream is) throws IOException { in read() method in ObexPacket
40 int headerId = is.read(); in read()
41 return read(headerId, is); in read()
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { in read() method in ObexPacket
53 int length = is.read(); in read()
54 length = (length << 8) + is.read(); in read()
63 bytesReceived = is.read(temp); in read()
65 bytesReceived += is.read(temp, bytesReceived, temp.length - bytesReceived); in read()
DServerSession.java98 int requestType = mInput.read(); in run()
137 int length = mInput.read(); in run()
138 length = (length << 8) + mInput.read(); in run()
140 mInput.read(); in run()
168 int length = mInput.read(); in handleAbortRequest()
169 length = (length << 8) + mInput.read(); in handleAbortRequest()
174 mInput.read(); in handleAbortRequest()
308 length = mInput.read(); in handleSetPathRequest()
309 length = (length << 8) + mInput.read(); in handleSetPathRequest()
310 flags = mInput.read(); in handleSetPathRequest()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java49 assertEquals(42, ls1.getInputStream().read()); in testBasic()
62 assertEquals(42, ls1.getInputStream().read()); in testBasic()
71 assertEquals(1, ls.getInputStream().read()); in testBasic()
77 countRead = ls.getInputStream().read(buffer, 1, 15); in testBasic()
87 ls.getInputStream().read(buffer, 1, 16); in testBasic()
115 ls.getInputStream().read(buffer, -1, 15); in testBasic()
122 ls.getInputStream().read(buffer, 0, -1); in testBasic()
130 countRead = ls1.getInputStream().read(buffer, 0, 0); in testBasic()
132 assertEquals(42, ls1.getInputStream().read()); in testBasic()
150 ls.getInputStream().read(); in testBasic()
[all …]
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp50 int read = klogctl(/* SYSLOG_ACTION_READ_ALL */ 3, buf, size); in android_net_wifi_readKernelLog() local
51 if (read < 0) { in android_net_wifi_readKernelLog()
52 ALOGD("can't read logs - %d", read); in android_net_wifi_readKernelLog()
56 ALOGV("read %d bytes", read); in android_net_wifi_readKernelLog()
59 if (read != size) { in android_net_wifi_readKernelLog()
60 ALOGV("read %d bytes, expecting %d", read, size); in android_net_wifi_readKernelLog()
63 JNIObject<jbyteArray> result = helper.newByteArray(read); in android_net_wifi_readKernelLog()
70 helper.setByteArrayRegion(result, 0, read, (jbyte*)buf); in android_net_wifi_readKernelLog()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java132 int id = inStream.read(); in fromByteArray()
133 int length = inStream.read(); in fromByteArray()
139 concatRef.refNumber = inStream.read(); in fromByteArray()
140 concatRef.msgCount = inStream.read(); in fromByteArray()
141 concatRef.seqNumber = inStream.read(); in fromByteArray()
150 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
151 concatRef.msgCount = inStream.read(); in fromByteArray()
152 concatRef.seqNumber = inStream.read(); in fromByteArray()
161 portAddrs.destPort = inStream.read(); in fromByteArray()
162 portAddrs.origPort = inStream.read(); in fromByteArray()
[all …]
/frameworks/multidex/library/test/src/android/support/multidex/
DZipUtilTest.java75 int read = raf.read(dirData, off, length); in testCrcRange() local
79 length -= read; in testCrcRange()
80 off += read; in testCrcRange()
122 int read = in.read(buffer); in testCrcValue() local
123 while (read != -1) { in testCrcValue()
124 out.write(buffer, 0, read); in testCrcValue()
125 read = in.read(buffer); in testCrcValue()
152 int read = in.read(buffer); in testInvalidCrcValue() local
153 while (read != -1) { in testInvalidCrcValue()
154 out.write(buffer, 0, read); in testInvalidCrcValue()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java119 int read = stream.read(buffer); in readAndClose() local
122 if (read == intSize) { in readAndClose()
129 if (read + avail > buffer.length) { in readAndClose()
132 byte[] moreBuffer = new byte[read + avail]; in readAndClose()
133 System.arraycopy(buffer, 0, moreBuffer, 0, read); in readAndClose()
137 read += stream.read(buffer, read, avail); in readAndClose()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DBearerData.java957 int paramBits = inStream.read(8) * 8; in decodeMessageId()
961 bData.messageType = inStream.read(4); in decodeMessageId()
962 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
963 bData.messageId |= inStream.read(8); in decodeMessageId()
964 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
981 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
1000 int paramBits = inStream.read(8) * 8; in decodeUserData()
1002 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
1008 bData.userData.msgType = inStream.read(8); in decodeUserData()
1011 bData.userData.numFields = inStream.read(8); in decodeUserData()
[all …]
/frameworks/base/core/java/android/content/pm/
DLimitedLengthInputStream.java58 public synchronized int read() throws IOException { in read() method in LimitedLengthInputStream
64 return super.read(); in read()
68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { in read() method in LimitedLengthInputStream
84 final int numRead = super.read(buffer, offset, byteCount); in read()
91 public int read(byte[] buffer) throws IOException { in read() method in LimitedLengthInputStream
92 return read(buffer, 0, buffer.length); in read()
DMacAuthenticatedInputStream.java62 public int read() throws IOException { in read() method in MacAuthenticatedInputStream
63 final int b = super.read(); in read()
71 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in MacAuthenticatedInputStream
72 int numRead = super.read(buffer, offset, count); in read()
/frameworks/native/libs/gui/
DLayerState.cpp52 status_t layer_state_t::read(const Parcel& input) in read() function in android::layer_state_t
71 input.read(crop); in read()
72 input.read(finalCrop); in read()
80 input.read(transparentRegion); in read()
89 status_t ComposerState::read(const Parcel& input) { in read() function in android::ComposerState
91 return state.read(input); in read()
118 status_t DisplayState::read(const Parcel& input) { in read() function in android::DisplayState
124 input.read(viewport); in read()
125 input.read(frame); in read()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DMetadataListReader.java68 static MetadataList read(InputStream inputStream) throws IOException { in read() method in MetadataListReader
75 final int numRead = inputStream.read(buffer.array()); in read()
88 static MetadataList read(final ByteBuffer byteBuffer) throws IOException { in read() method in MetadataListReader
104 static MetadataList read(AssetManager assetManager, String assetPath) in read() method in MetadataListReader
107 return read(inputStream); in read()
257 read(UINT16_BYTE_COUNT); in readUnsignedShort()
264 read(UINT32_BYTE_COUNT); in readUnsignedInt()
271 read(UINT32_BYTE_COUNT); in readTag()
292 private void read(@IntRange(from = 0, to = UINT32_BYTE_COUNT) final int numOfBytes) in read() method in MetadataListReader.InputStreamOpenTypeReader
294 if (mInputStream.read(mByteArray, 0, numOfBytes) != numOfBytes) { in read()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DCountedDataInputStream.java44 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
45 int r = in.read(b); in read()
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
52 int r = in.read(b, off, len); in read()
58 public int read() throws IOException { in read() method in CountedDataInputStream
59 int r = in.read(); in read()
83 int r = read(b, off, len); in readOrThrow()
/frameworks/ex/framesequence/jni/
DStream.cpp28 jmethodID read; member
51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining); in peek() local
53 mPeekSize = peek_remaining + read; in peek()
60 size_t Stream::read(void* buffer, size_t size) { in read() function in Stream
129 gInputStreamClassInfo.read, mByteArray, 0, requested); in doRead()
150 gInputStreamClassInfo.read = env->GetMethodID(inputStreamClazz, "read", "([BII)I"); in JavaStream_OnLoad()
152 if (!gInputStreamClassInfo.read || !gInputStreamClassInfo.reset) { in JavaStream_OnLoad()
/frameworks/base/media/java/android/media/
DResampleInputStream.java71 public int read() throws IOException { in read() method in ResampleInputStream
72 int rtn = read(mOneByte, 0, 1); in read()
77 public int read(byte[] b) throws IOException { in read() method in ResampleInputStream
78 return read(b, 0, b.length); in read()
82 public int read(byte[] b, int offset, int length) throws IOException { in read() method in ResampleInputStream
103 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
DAmrInputStream.java87 public int read() throws IOException { in read() method in AmrInputStream
88 int rtn = read(mOneByte, 0, 1); in read()
93 public int read(byte[] b) throws IOException { in read() method in AmrInputStream
94 return read(b, 0, b.length); in read()
98 public int read(byte[] b, int offset, int length) throws IOException { in read() method in AmrInputStream
117 int n = mInputStream.read(mBuf, numRead, SAMPLES_PER_FRAME * 2 - numRead); in read()
/frameworks/base/core/java/android/bluetooth/
DBluetoothInputStream.java58 public int read() throws IOException { in read() method in BluetoothInputStream
60 int ret = mSocket.read(b, 0, 1); in read()
89 public int read(byte[] b, int offset, int length) throws IOException { in read() method in BluetoothInputStream
96 return mSocket.read(b, offset, length); in read()
/frameworks/support/room/runtime/src/androidTest/java/android/arch/persistence/room/migration/
DTableInfoTest.java57 TableInfo info = TableInfo.read(mDb, "foo"); in readSimple()
69 TableInfo info = TableInfo.read(mDb, "foo"); in multiplePrimaryKeys()
82 TableInfo info = TableInfo.read(mDb, "foo"); in alteredTable()
94 TableInfo info = TableInfo.read(mDb, "foo"); in nonNull()
104 TableInfo info = TableInfo.read(mDb, "foo"); in defaultValue()
117 TableInfo info = TableInfo.read(mDb, "bar"); in foreignKey()
135 TableInfo info = TableInfo.read(mDb, "bar"); in multipleForeignKeys()
159 TableInfo info = TableInfo.read(mDb, "bar"); in compositeForeignKey()
175 TableInfo info = TableInfo.read(mDb, "foo"); in caseInsensitiveTypeName()
/frameworks/native/libs/sensor/
DSensor.cpp527 FlattenableUtils::read(buffer, size, mVersion); in unflatten()
528 FlattenableUtils::read(buffer, size, mHandle); in unflatten()
529 FlattenableUtils::read(buffer, size, mType); in unflatten()
530 FlattenableUtils::read(buffer, size, mMinValue); in unflatten()
531 FlattenableUtils::read(buffer, size, mMaxValue); in unflatten()
532 FlattenableUtils::read(buffer, size, mResolution); in unflatten()
533 FlattenableUtils::read(buffer, size, mPower); in unflatten()
534 FlattenableUtils::read(buffer, size, mMinDelay); in unflatten()
535 FlattenableUtils::read(buffer, size, mFifoReservedEventCount); in unflatten()
536 FlattenableUtils::read(buffer, size, mFifoMaxEventCount); in unflatten()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java89 assertEquals(length, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
94 assertEquals(-1, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
139 assertEquals(length, is.read(temp)); in checkReadBytes_WithString1()
144 assertEquals(-1, is.read(temp)); in checkReadBytes_WithString1()
171 assertEquals(TEST_STRING1[offset + i], is.read()); in checkSingleByteRead_WithString1()
174 assertEquals(-1, is.read()); in checkSingleByteRead_WithString1()
/frameworks/native/opengl/libs/EGL/
Degl_object.cpp99 config(config), read(0), draw(0), cnx(cnx), version(version) { in egl_context_t()
103 read = NULL; in onLooseCurrent()
107 void egl_context_t::onMakeCurrent(EGLSurface draw, EGLSurface read) { in onMakeCurrent() argument
108 this->read = read; in onMakeCurrent()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java42 int count = in.read(buf); in testRead()
44 assertEquals(-1, in.read()); in testRead()
60 int count = in.read(buf); in testClose()
75 int count = in.read(buf); in testFile()
77 assertEquals(-1, in.read()); in testFile()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DXmpDepthDecode.java56 XMPMeta meta = read(is, false); in XmpDepthDecode()
133 static XMPMeta read(InputStream is, boolean skipExtendedContent) { in read() method in XmpDepthDecode
204 if (is.read() != 0xff || is.read() != M_SOI) { in parse()
208 while ((c = is.read()) != -1) { in parse()
213 while ((c = is.read()) == 0xff) { in parse()
227 is.read(section.data, 0, section.data.length); in parse()
232 int lh = is.read(); in parse()
233 int ll = is.read(); in parse()
291 is.read(section.data, 0, length - 2); in readSection()
296 is.read(header, 0, header.length); in readSection()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc56 "can not read symbol[%0] in file %1",
57 "can not read symbol[%0] in file %1")
60 "can not read section `%0'.",
61 "can not read section `%0'.")
64 "can not read target-dependent section `%0'.",
65 "can not read target-dependent section `%0'.")
68 "can not read the section being relocated in file %0.\ninvalid sh_info: "
70 "can not read the section being relocated in file %0.\ninvalid sh_info: "
120 "cannot read file %0 from offset %1 to length %2.",
121 "cannot read file %0 from offset %1 to length %2.")
[all …]

12345678910>>...26