Searched refs:read (Results 126 - 150 of 642) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java36 throw new Exception("readBytes did not read back what writeBytes wrote");
91 is.read(buffer);
97 is.read(buffer);
122 // Tests for the IndexOutOfBoundsException cases in read().
132 is.read(buffer, offset, count);
147 "read() with negative offset should throw IndexOutOfBoundsException");
153 "read() with negative length should throw IndexOutOfBoundsException");
159 "read() with offset outside buffer should throw IndexOutOfBoundsException");
165 "read() with offset + count outside buffer should throw IndexOutOfBoundsException");
168 // Test behavior of read() a
[all...]
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncLogger.java266 int read;
267 while ((read = in.read(buffer)) >= 0) {
268 if (read > 0) {
269 pw.write(buffer, 0, read);
/frameworks/native/libs/gui/
H A DLayerDebugInfo.cpp74 RETURN_ON_ERROR(parcel->read(mTransparentRegion));
75 RETURN_ON_ERROR(parcel->read(mVisibleRegion));
76 RETURN_ON_ERROR(parcel->read(mSurfaceDamageRegion));
83 RETURN_ON_ERROR(parcel->read(mCrop));
84 RETURN_ON_ERROR(parcel->read(mFinalCrop));
H A DFrameTimestamps.cpp586 FlattenableUtils::read(buffer, size, mFrameNumber);
590 FlattenableUtils::read(buffer, size, temp16);
596 FlattenableUtils::read(buffer, size, temp8);
598 FlattenableUtils::read(buffer, size, temp8);
601 FlattenableUtils::read(buffer, size, mPostedTime);
602 FlattenableUtils::read(buffer, size, mRequestedPresentTime);
603 FlattenableUtils::read(buffer, size, mLatchTime);
604 FlattenableUtils::read(buffer, size, mFirstRefreshStartTime);
605 FlattenableUtils::read(buffer, size, mLastRefreshStartTime);
606 FlattenableUtils::read(buffe
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DInputStreamBuffer.java26 * 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
293 int read = -1;
295 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled);
299 if (read != -1) {
300 mFilled = mFilled + read;
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DInputStreamBuffer.java26 * 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
293 int read = -1;
295 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled);
299 if (read != -1) {
300 mFilled = mFilled + read;
/frameworks/av/media/libstagefright/bqhelper/
H A DConversion.cpp55 * \param[in] index The index of the file descriptor in \p nh to read from. This
263 * not expose ways to read or write their fields to the public. To pass an
292 * - For `unflatten()`, `buffer` is the pointer to the non-fd buffer to be read
294 * `buffer`, `fds` is the pointer to the fd buffer to be read from, and
380 FlattenableUtils::read(buffer, size, numFdsInHandle);
643 FlattenableUtils::read(buffer, size, state);
656 FlattenableUtils::read(buffer, size, t->signalTimeNs);
737 FlattenableUtils::read(buffer, size, t->frameNumber);
741 FlattenableUtils::read(buffer, size, temp);
748 FlattenableUtils::read(buffe
[all...]
/frameworks/base/core/java/android/os/
H A DFileBridge.java99 while (IoBridge.read(mServer, temp, 0, MSG_LENGTH) == MSG_LENGTH) {
105 int n = IoBridge.read(mServer, temp, 0, Math.min(temp.length, len));
170 if (IoBridge.read(mClient, mTemp, 0, MSG_LENGTH) == MSG_LENGTH) {
H A DMemoryFile.java36 * After a file is purged, attempts to read or write the file will
77 * After this method has been called, read and write operations through this object
176 * @param buffer byte array to read bytes into.
177 * @param srcOffset offset into the memory file to read from.
178 * @param destOffset offset into the byte array buffer to read into.
179 * @param count number of bytes to read.
180 * @return number of bytes read.
271 public int read() throws IOException { method in class:MemoryFile.MemoryInputStream
275 int result = read(mSingleByte, 0, 1);
283 public int read(byt method in class:MemoryFile.MemoryInputStream
[all...]
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/
H A DUsbAoapHostTestActivity.java145 int read = mUsbConnection.bulkTransfer(mBulkIn, mBuffer, mBuffer.length,
147 if (read < 0) {
148 throw new RuntimeException("bulkTransfer failed, read = " + read);
/frameworks/native/include/gui/
H A DLayerState.h83 status_t read(const Parcel& input);
119 // non POD must be last. see write/read
127 status_t read(const Parcel& input);
160 status_t read(const Parcel& input);
/frameworks/native/libs/gui/include/gui/
H A DLayerState.h83 status_t read(const Parcel& input);
119 // non POD must be last. see write/read
127 status_t read(const Parcel& input);
160 status_t read(const Parcel& input);
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DMetadataRepo.java101 * @param inputStream InputStream to read emoji metadata from
105 return new MetadataRepo(typeface, MetadataListReader.read(inputStream));
113 * @param byteBuffer ByteBuffer to read emoji metadata from
117 return new MetadataRepo(typeface, MetadataListReader.read(byteBuffer));
130 return new MetadataRepo(typeface, MetadataListReader.read(assetManager, assetPath));
/frameworks/av/media/libaudiohal/2.0/
H A DStreamHalLocal.cpp286 status_t StreamInHalLocal::read(void *buffer, size_t bytes, size_t *read) { argument
287 ssize_t readResult = mStream->read(mStream, buffer, bytes);
289 *read = readResult;
290 mStreamPowerLog.log( buffer, *read);
293 *read = 0;
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp47 if (length == read(fd, (void*) bytes, length)) {
69 if (length != read(fd, (void*) *buffer, length)) {
/frameworks/av/drm/libmediadrm/
H A DICrypto.cpp211 reply.read(vector.editArray(), size);
229 data.read(vector.editArray(), size);
252 data.read(uuid, sizeof(uuid));
263 data.read(uuid, sizeof(uuid));
278 data.read(opaqueData, opaqueSize);
319 data.read(key, sizeof(key));
322 data.read(iv, sizeof(iv));
347 data.read(subSamples.get(),
/frameworks/av/media/libaudioclient/
H A DIEffectClient.cpp120 data.read(cmd, cmdSize);
126 data.read(resp, replySize);
/frameworks/base/apct-tests/perftests/core/src/android/database/
H A DCursorWindowPerfTest.java107 reader.read();
115 reader.read();
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DSmsMessage.java497 dis.read(addr.origBytes, 0, length); // digits
514 dis.read(env.bearerData, 0, bearerDataLength);
570 dis.read(parameterData, 0, parameterLen);
572 addr.digitMode = addrBis.read(1);
573 addr.numberMode = addrBis.read(1);
576 numberType = addrBis.read(3);
580 addr.numberPlan = addrBis.read(4);
583 addr.numberOfDigits = addrBis.read(8);
591 b = (byte) (0xF & addrBis.read(4));
599 b = (byte) (0xFF & addrBis.read(
[all...]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DPortableFloatMap.java29 while ((c = in.read()) != -1 && c != 0xa && c != 0x20) {
71 nRead = in.read(row, offset, bytesPerRow - offset);
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DEmojiRepo.java45 read(context);
53 private static void read(Context context) throws IOException { method in class:EmojiRepo
/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DEmojiRepo.java45 read(context);
53 private static void read(Context context) throws IOException { method in class:EmojiRepo
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigStoreTest.java282 // Verify correct data are loaded to the data container after a read.
283 mWifiConfigStore.read();
289 * Tests the read API behaviour after a write to the store files.
290 * Expected behaviour: The read should return the same data that was last written.
300 // Verify no data is read.
310 mWifiConfigStore.read();
316 * Tests the read API behaviour when the shared store file is empty and the user store
318 * Expected behaviour: The read should return an empty store data instance when the file not
329 mWifiConfigStore.read();
339 * Tests the read AP
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduParser.java902 pduDataStream.read(partData, 0, dataLength);
969 int temp = pduDataStream.read();
977 temp = pduDataStream.read();
1005 int temp = pduDataStream.read();
1033 int temp = pduDataStream.read();
1092 int temp = pduDataStream.read();
1195 int temp = pduDataStream.read();
1209 temp = pduDataStream.read();
1228 int temp = pduDataStream.read();
1248 int temp = pduDataStream.read();
[all...]
/frameworks/av/include/media/
H A DMediaTrack.h54 // Any blocking read call returns immediately with a result of NO_INIT.
65 // Options that modify read() behaviour. The default is to
113 virtual status_t read(

Completed in 1468 milliseconds

1234567891011>>