Home
last modified time | relevance | path

Searched refs:readBytes (Results 1 – 25 of 38) sorted by relevance

12

/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtils.java197 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/
DCircularByteBufferTest.java132 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()
DBufferedFileTest.java297 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/
DMtpDocumentsProviderTest.java563 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java485 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/
DUidIoUsageStats.aidl33 PerStateBytes readBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DUidIoUsageStats.aidl37 android.automotive.watchdog.PerStateBytes readBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DUidIoUsageStats.aidl37 android.automotive.watchdog.PerStateBytes readBytes;
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DReadableByteBuffer.java47 void readBytes(byte[] dst, int dstPos, int dstLen); in readBytes() method
DCircularByteBuffer.java71 public void readBytes(byte[] dst, int dstPos, int dstLen) { in readBytes() method in CircularByteBuffer
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DTestToPhoneFileCopier.kt39 InstrumentationRegistry.getInstrumentation().context.assets.open(src).readBytes() in getDst()
/packages/modules/Permission/PermissionController/tests/outofprocess/src/com/android/permissioncontroller/tests/outofprocess/
DDumpTest.kt44 val dump = AutoCloseInputStream(dumpFile).readBytes() in getDump()
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java984 int readBytes = 0; in getDataWithFd() local
993 readBytes += chunkLen; in getDataWithFd()
995 if (readBytes != expectedReportSize) { in getDataWithFd()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsKeyRecord.java69 reader.readBytes(rData); in readData()
DMdnsInetAddressRecord.java99 reader.readBytes(buf); in readData()
DMdnsNsecRecord.java85 reader.readBytes(bitmap); in readTypes()
DMdnsPacketReader.java237 public void readBytes(byte[] bytes) throws EOFException { in readBytes() method in MdnsPacketReader
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java707 for (int readBytes = in.read(buffer); readBytes >= 0; readBytes = in.read(buffer)) in copyFileFallback()
708 out.write(buffer, 0, readBytes); in copyFileFallback()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/
DBackAndRestoreRule.kt67 .readBytes() in uploadDatabase()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java1736 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/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureManager.java287 return readBytes(resourceInput); in getPlaceholderPictureAsBytes()
293 private static byte[] readBytes(InputStream inputStream) throws Exception { in readBytes() method in CallComposerPictureManager
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/wear/
DStreamingPacketFile.java166 mInboundBuffer.readBytes(mTempPacketReadBuffer, 0, totalLength); in extractOnePacket()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java894 int readBytes = 0; in getDataFdFromStatsd() local
903 readBytes += chunkLen; in getDataFdFromStatsd()
905 if (readBytes != expectedReportSize) { in getDataFdFromStatsd()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java187 file.readQueue.readBytes(buffer, pos, readCount); in read()
270 src.writeQueue.readBytes(mTmpBuffer, 0, allowedCopyCount); in copyFileBuffers()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DConnectUtil.kt99 ParcelFileDescriptor.AutoCloseInputStream(pfd).use { it.readBytes() } in ensureWifiConnected()

12