Home
last modified time | relevance | path

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

/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/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java562 final byte[] readBytes = new byte[5]; in testOpenDocument()
564 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
565 assertTrue(Arrays.equals("world".getBytes(), readBytes)); in testOpenDocument()
568 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
569 assertTrue(Arrays.equals("Hello".getBytes(), readBytes)); in testOpenDocument()
600 final byte[] readBytes = new byte[1024 * 1024]; in testOpenDocument_shortBytes()
601 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/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/
DTranscodeTest.java876 byte[] readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
882 writeBytes[i] = (byte) ~readBytes[i]; in testWriteSuccessfulToTranscodedContent()
887 readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
890 assertTrue(Arrays.equals(readBytes, writeBytes)); in testWriteSuccessfulToTranscodedContent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java713 for (int readBytes = in.read(buffer); readBytes >= 0; readBytes = in.read(buffer)) in copyFileFallback()
714 out.write(buffer, 0, readBytes); in copyFileFallback()
/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/Permission/PermissionController/tests/outofprocess/src/com/android/permissioncontroller/tests/outofprocess/
DDumpTest.kt41 val dump = AutoCloseInputStream(dumpFile).readBytes() in getDump()
/packages/modules/adb/
Dtest_device.py1511 readBytes = sock.recv(4096)
1512 self.assertEqual(b"foo\n", readBytes)
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNative.java3505 int readBytes;
3517 " writtenBytes: " + writtenBytes + " readBytes: " + readBytes +