Home
last modified time | relevance | path

Searched refs:writeBytes (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/
DCircularByteBufferTest.java35 public void writeBytes() { in writeBytes() method in CircularByteBufferTest
44 buffer.writeBytes(writeBuffer, 0, writeBuffer.length); in writeBytes()
114 accessor.writeBytes(buffer, writeBuffer, 1, writeLen); in doTestReadWrite()
167 buffer.writeBytes(dataBuffer, 0, dataBuffer.length - 2); in readBytes_overflow()
185 buffer.writeBytes(dataBuffer, 0, dataBuffer.length); in writeBytes_overflow()
188 buffer.writeBytes(dataBuffer, 0, dataBuffer.length); in writeBytes_overflow()
229 void writeBytes(CircularByteBuffer buffer, byte[] src, int pos, int len) { in writeBytes() method in CircularByteBufferTest.BufferAccessor
244 buffer.writeBytes(src, pos, len); in writeBytes()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/audio/
DWavWriter.java66 stream.writeBytes("RIFF"); in writeFileHeader()
70 stream.writeBytes("WAVE"); in writeFileHeader()
72 stream.writeBytes("fmt "); in writeFileHeader()
92 stream.writeBytes("data"); in writeFileHeader()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/system/development/audio/
DWavWriter.java66 stream.writeBytes("RIFF"); in writeFileHeader()
70 stream.writeBytes("WAVE"); in writeFileHeader()
72 stream.writeBytes("fmt "); in writeFileHeader()
92 stream.writeBytes("data"); in writeFileHeader()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/storage/block/write/
DBlockFileWriter.java116 bos.writeBytes(new byte[10]); // Reserved in writeHeaderAndAppendTempFile()
157 outputStream.writeBytes(buffer, 0, bytesRead); in copyAll()
172 outputStream.writeBytes(buffer, 0, byteCount); in copyAll()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsPacketWriter.java142 public void writeBytes(byte[] data) throws IOException { in writeBytes() method in MdnsPacketWriter
157 writeBytes(utf8); in writeString()
163 writeBytes(bytes); in writeTextEntry()
DMdnsKeyRecord.java75 writer.writeBytes(rData); in writeData()
DMdnsInetAddressRecord.java126 writer.writeBytes(buf); in writeData()
DMdnsNsecRecord.java144 writer.writeBytes(bytes); in writeTypeBlock()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DThreadUnsafeByteArrayOutputStreamTest.java50 mOutputStream.writeBytes(data); in testWriteBytes()
71 mOutputStream.writeBytes(data); in testGetBytesReturnsCopy()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/
DCarWatchdogTestFragment.java397 int writeBytes = Math.toIntExact(Math.min(totalFreeMemory, remainingBytes)); in writeToFos() local
399 fos.write(new byte[writeBytes]); in writeToFos()
404 Log.e(TAG, "I/O exception while writing " + writeBytes + " to disk", e); in writeToFos()
407 totalBytesWritten += writeBytes; in writeToFos()
408 remainingBytes -= writeBytes; in writeToFos()
409 if (writeBytes > 0 && remainingBytes > 0) { in writeToFos()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/storage/io/write/
DTypedOutputStream.java92 public void writeBytes(byte[] bytes) throws IOException { in writeBytes() method in TypedOutputStream
99 public void writeBytes(byte[] bytes, int off, int len) throws IOException { in writeBytes() method in TypedOutputStream
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DBufferedFile.java223 mOutboundBuffer.writeBytes(data1, pos1, len1); in enqueueOutboundData()
226 mOutboundBuffer.writeBytes(buffer2, pos2, len2); in enqueueOutboundData()
DCircularByteBuffer.java144 public void writeBytes(byte[] buffer, int pos, int len) { in writeBytes() method in CircularByteBuffer
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DTestToPhoneFileCopier.kt38 dstFile.writeBytes( in getDst()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/wear/
DNetPacketHelpersTest.java43 buffer.writeBytes(data, 0, data.length); in decodeNetworkUnsignedInt16()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/
DThreadUnsafeByteArrayOutputStream.java59 public void writeBytes(byte[] bytes) { in writeBytes() method in ThreadUnsafeByteArrayOutputStream
DSignedContextualAdsHashUtil.java222 mByteArrayStream.writeBytes(value.getBytes(StandardCharsets.UTF_8)); in writeString()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/
DBackAndRestoreRule.kt62 file.writeBytes( in uploadDatabase()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfileData.java157 mOut.writeBytes(String.format("0x%x %s\n", entry.getValue(), entry.getKey())); in writeAllSymbols()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/read/
DBlockDataTest.java88 typedOutputStream.writeBytes(bytes); in typedRandomAccess()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java216 file.writeQueue.writeBytes(buffer, pos, writeCount); in write()
271 dst.readQueue.writeBytes(mTmpBuffer, 0, allowedCopyCount); in copyFileBuffers()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/io/
DTypedStreamsTest.java57 tos.writeBytes(new byte[] { 0x11, 0x22, 0x00, 0x7F, -0x80 }); in writeReadOk()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DInjectMotionTestFragment.java210 mOutStreamForShell.writeBytes(sb.toString()); in injectMotionByShell()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DActiveOperationalDatasetTest.java100 os.writeBytes(value); in removeTlv()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseDecoderTests.java615 writer.writeBytes(record); in makeResponsePacket()

12