/packages/modules/Connectivity/service/src/com/android/server/net/ |
D | L2capPacketForwarder.java | 255 int readBytes = mReadFd.read(mBuffer, 0 /*off*/, mBuffer.length); in run() local 257 if (readBytes <= 0) { in run() 258 Log.w(mLogTag, "Zero-byte read encountered: " + readBytes); in run() 264 readBytes = decompress6lowpan(mBuffer, readBytes); in run() 266 readBytes = compress6lowpan(mBuffer, readBytes); in run() 273 if (readBytes <= 0 || readBytes > MTU) continue; in run() 275 mWriteFd.write(mBuffer, 0 /*off*/, readBytes); in run()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtils.java | 197 int readBytes = 0; in readStreamExhaustively() local 199 while (readBytes != outBuffer.length) { in readStreamExhaustively() 200 readBytesLastCycle = inputStream.read(outBuffer, readBytes, in readStreamExhaustively() 201 outBuffer.length - readBytes); in readStreamExhaustively() 204 + " (expected " + outBuffer.length + ", read " + readBytes + ")"); in readStreamExhaustively() 205 readBytes += readBytesLastCycle; in readStreamExhaustively() 211 for (int readBytes = input.read(buffer); readBytes >= 0; readBytes = input.read(buffer)) { in copy() 212 output.write(buffer, 0, readBytes); in copy()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 132 accessor.readBytes(buffer, readBuffer, 1, readLen); in doTestReadWrite() 170 buffer.readBytes(dataBuffer, 0, dataBuffer.length); in readBytes_overflow() 248 void readBytes(CircularByteBuffer buffer, byte[] dst, int pos, int len) { in readBytes() method in CircularByteBufferTest.BufferAccessor 263 buffer.readBytes(dst, pos, len); in readBytes()
|
D | BufferedFileTest.java | 297 inboundBuffer.readBytes(tmp, 0, data1.length); in enableReadEvents() 302 inboundBuffer.readBytes(tmp, 0, data2.length); in enableReadEvents()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 563 final byte[] readBytes = new byte[5]; in testOpenDocument() 565 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument() 566 assertTrue(Arrays.equals("world".getBytes(), readBytes)); in testOpenDocument() 569 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument() 570 assertTrue(Arrays.equals("Hello".getBytes(), readBytes)); in testOpenDocument() 601 final byte[] readBytes = new byte[1024 * 1024]; in testOpenDocument_shortBytes() 602 assertEquals(11, Os.read(fd.getFileDescriptor(), readBytes, 0, readBytes.length)); in testOpenDocument_shortBytes()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/ |
D | NetworkStackUtilsIntegrationTest.kt | 534 var readBytes: Int in assertUntilPacketEquals() variable 537 .also { readBytes = it } > 0 in assertUntilPacketEquals() 539 actualPkt = buffer.copyOfRange(0, readBytes) in assertUntilPacketEquals() 554 var readBytes: Int in assertUntilSocketReadErrno() variable 558 .also { readBytes = it } > 0 in assertUntilSocketReadErrno() 560 actualPkt = buffer.copyOfRange(0, readBytes) in assertUntilSocketReadErrno()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryFileDumper.java | 485 for (int readBytes = input.read(buffer); readBytes >= 0; readBytes = input.read(buffer)) { in checkMagicAndCopyFileTo() 486 output.write(buffer, 0, readBytes); in checkMagicAndCopyFileTo()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | UidIoUsageStats.aidl | 33 PerStateBytes readBytes;
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/ |
D | ReadableByteBuffer.java | 47 void readBytes(byte[] dst, int dstPos, int dstLen); in readBytes() method
|
D | CircularByteBuffer.java | 71 public void readBytes(byte[] dst, int dstPos, int dstLen) { in readBytes() method in CircularByteBuffer
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | TestToPhoneFileCopier.kt | 39 InstrumentationRegistry.getInstrumentation().context.assets.open(src).readBytes() in getDst()
|
/packages/modules/StatsD/framework/java/android/app/ |
D | StatsManager.java | 984 int readBytes = 0; in getDataWithFd() local 993 readBytes += chunkLen; in getDataWithFd() 995 if (readBytes != expectedReportSize) { in getDataWithFd()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | UpdateHandler.java | 707 for (int readBytes = in.read(buffer); readBytes >= 0; readBytes = in.read(buffer)) in copyFileFallback() 708 out.write(buffer, 0, readBytes); in copyFileFallback()
|
/packages/modules/Permission/PermissionController/tests/outofprocess/src/com/android/permissioncontroller/tests/outofprocess/ |
D | DumpTest.kt | 44 val dump = AutoCloseInputStream(dumpFile).readBytes() in getDump()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsKeyRecord.java | 69 reader.readBytes(rData); in readData()
|
D | MdnsInetAddressRecord.java | 96 reader.readBytes(buf); in readData()
|
D | MdnsPacketReader.java | 237 public void readBytes(byte[] bytes) throws EOFException { in readBytes() method in MdnsPacketReader
|
D | MdnsNsecRecord.java | 85 reader.readBytes(bitmap); in readTypes()
|
/packages/modules/Media/apex/framework/java/android/media/ |
D | MediaParser.java | 1736 data.readBytes(mScratchIvSpace, /* offset= */ 0, mEncryptionVectorSize); in sampleData() 1900 int readBytes = 0; in read() local 1901 readBytes = mDataReader.read(buffer, offset, readLength); in read() 1902 mCurrentPosition += readBytes; in read() 1903 return readBytes; in read() 1933 mByteArray.readBytes(buffer, offset, readLength); in read()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/ |
D | BackAndRestoreRule.kt | 67 .readBytes() in uploadDatabase()
|
/packages/services/Telephony/src/com/android/phone/callcomposer/ |
D | CallComposerPictureManager.java | 287 return readBytes(resourceInput); in getPlaceholderPictureAsBytes() 293 private static byte[] readBytes(InputStream inputStream) throws Exception { in readBytes() method in CallComposerPictureManager
|
/packages/modules/StatsD/service/java/com/android/server/stats/ |
D | StatsManagerService.java | 894 int readBytes = 0; in getDataFdFromStatsd() local 903 readBytes += chunkLen; in getDataFdFromStatsd() 905 if (readBytes != expectedReportSize) { in getDataFdFromStatsd()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/wear/ |
D | StreamingPacketFile.java | 166 mInboundBuffer.readBytes(mTempPacketReadBuffer, 0, totalLength); in extractOnePacket()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/ |
D | FakeOsAccess.java | 187 file.readQueue.readBytes(buffer, pos, readCount); in read() 270 src.writeQueue.readBytes(mTmpBuffer, 0, allowedCopyCount); in copyFileBuffers()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | SliceCacheManager.kt | 48 data = path.toFile().readBytes() in <lambda>()
|