Home
last modified time | relevance | path

Searched refs:bytesWritten (Results 1 – 25 of 80) sorted by relevance

1234

/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DCountOutputStream.java26 private int bytesWritten = 0; field in CountOutputStream
46 bytesWritten += len; in write()
57 bytesWritten += buf.length; in write()
68 bytesWritten++; in write()
77 return bytesWritten; in getBytesWritten()
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DCountingOutputStream.java28 private long bytesWritten = 0; field in CountingOutputStream
43 return bytesWritten; in getNumBytesWritten()
48 bytesWritten++; in write()
54 bytesWritten += b.length; in write()
60 bytesWritten += len; in write()
/external/skia/tests/
DSerializationTest.cpp143 size_t bytesWritten = writer.bytesWritten(); in TestObjectSerializationNoAlign() local
144 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
152 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
158 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
167 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten); in TestObjectSerializationNoAlign()
181 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
182 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
185 SkASSERT(bytesWritten <= sizeof(dataWritten)); in TestFlattenableSerialization()
189 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
196 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
[all …]
DWriter32Test.cpp16 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
44 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
51 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten()); in test_rewind()
53 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten()); in test_rewind()
64 REPORTER_ASSERT(reporter, 100*4 == writer.bytesWritten()); in test_rewind()
68 REPORTER_ASSERT(reporter, writer.bytesWritten() < 16); in test_rewind()
86 size_t size = writer.bytesWritten(); in test_ptr()
103 REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); in test1()
109 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->bytesWritten()); in test1()
123 REPORTER_ASSERT(reporter, writer->bytesWritten() == len); in test2()
[all …]
DPDFDocumentTest.cpp23 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); in test_empty()
36 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); in test_abort()
104 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0); in test_close()
146 return stream.bytesWritten(); in count_bytes()
DImageIsOpaqueTest.cpp24 SkASSERT(wb.bytesWritten() < sizeof(storage)); in test_flatten()
26 SkReadBuffer rb(storage, wb.bytesWritten()); in test_flatten()
33 REPORTER_ASSERT(reporter, rb.offset() == wb.bytesWritten()); in test_flatten()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLCipher.java306 final int bytesWritten; in engineUpdate() local
308 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
314 if (output.length == bytesWritten) { in engineUpdate()
316 } else if (bytesWritten == 0) { in engineUpdate()
319 return Arrays.copyOfRange(output, 0, bytesWritten); in engineUpdate()
337 int bytesWritten; in engineDoFinal() local
340 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineDoFinal()
346 bytesWritten = 0; in engineDoFinal()
350 bytesWritten += doFinalInternal(output, bytesWritten, maximumLen - bytesWritten); in engineDoFinal()
356 if (bytesWritten == output.length) { in engineDoFinal()
[all …]
/external/sonic/
Dwave.c23 int bytesWritten; /* The number of bytes written so far, including header */ member
34 size_t bytesWritten; in writeBytes() local
39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); in writeBytes()
40 if(bytesWritten != length) { in writeBytes()
44 file->bytesWritten += bytesWritten; in writeBytes()
302 writeInt(file, file->bytesWritten - 8); in closeWaveFile()
312 writeInt(file, file->bytesWritten - 48); in closeWaveFile()
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioTrack.java92 int bytesWritten = 0; in run() local
94 bytesWritten = writeOnLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
96 bytesWritten = writePreLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
98 if (bytesWritten != sizeInBytes) { in run()
99 Logging.e(TAG, "AudioTrack.write failed: " + bytesWritten); in run()
100 if (bytesWritten == AudioTrack.ERROR_INVALID_OPERATION) { in run()
/external/protobuf/java/src/main/java/com/google/protobuf/
DCodedOutputStream.java1086 final int bytesWritten = limit - position; in writeRawBytesInternal() local
1087 value.get(buffer, position, bytesWritten); in writeRawBytesInternal()
1088 length -= bytesWritten; in writeRawBytesInternal()
1090 totalBytesWritten += bytesWritten; in writeRawBytesInternal()
1121 final int bytesWritten = limit - position; in writeRawBytes() local
1122 System.arraycopy(value, offset, buffer, position, bytesWritten); in writeRawBytes()
1123 offset += bytesWritten; in writeRawBytes()
1124 length -= bytesWritten; in writeRawBytes()
1126 totalBytesWritten += bytesWritten; in writeRawBytes()
1155 final int bytesWritten = limit - position; in writeRawBytes() local
[all …]
/external/webrtc/webrtc/modules/media_file/
Dmedia_file_impl.cc634 int32_t bytesWritten = 0; in IncomingAudioData() local
643 bytesWritten = _ptrFileUtilityObj->WritePCMData( in IncomingAudioData()
649 if(bytesWritten > 0) in IncomingAudioData()
651 samplesWritten = bytesWritten/sizeof(int16_t); in IncomingAudioData()
655 bytesWritten = _ptrFileUtilityObj->WriteCompressedData( in IncomingAudioData()
659 bytesWritten = _ptrFileUtilityObj->WriteWavData( in IncomingAudioData()
663 if(bytesWritten > 0 && STR_NCASE_CMP(codec_info_.plname, in IncomingAudioData()
667 samplesWritten = bytesWritten/sizeof(int16_t); in IncomingAudioData()
671 bytesWritten = _ptrFileUtilityObj->WritePreEncodedData( in IncomingAudioData()
687 bytesWritten = static_cast<int32_t>(bufferLengthInBytes); in IncomingAudioData()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2_32.java150 int bytesWritten = 0; in serialize() local
152 bytesWritten += serializeHeader(dos); in serialize()
156 bytesWritten += dataLength*4; in serialize()
157 return bytesWritten; in serialize()
DTrie2_16.java153 int bytesWritten = 0; in serialize() local
155 bytesWritten += serializeHeader(dos); in serialize()
159 bytesWritten += dataLength*2; in serialize()
160 return bytesWritten; in serialize()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2_32.java152 int bytesWritten = 0; in serialize() local
154 bytesWritten += serializeHeader(dos); in serialize()
158 bytesWritten += dataLength*4; in serialize()
159 return bytesWritten; in serialize()
DTrie2_16.java155 int bytesWritten = 0; in serialize() local
157 bytesWritten += serializeHeader(dos); in serialize()
161 bytesWritten += dataLength*2; in serialize()
162 return bytesWritten; in serialize()
/external/skia/src/core/
DSkWriteBuffer.cpp134 size_t bytesWritten = fWriter.readFromStream(stream, length); in writeStream() local
135 if (bytesWritten < length) { in writeStream()
136 fWriter.reservePad(length - bytesWritten); in writeStream()
138 return bytesWritten; in writeStream()
334 size_t offset = fWriter.bytesWritten(); in writeFlattenable()
337 size_t objSize = fWriter.bytesWritten() - offset; in writeFlattenable()
DSkPictureRecord.h47 this->validate(fWriter.bytesWritten(), 0); in opData()
49 if (fWriter.bytesWritten() == 0) { in opData()
54 return SkData::NewWithCopy(fWriter.contiguousArray(), fWriter.bytesWritten()); in opData()
100 size_t offset = fWriter.bytesWritten(); in addDraw()
149 SkASSERT(fWriter.bytesWritten() == initialOffset + size); in validate()
/external/skia/include/core/
DSkStream.h196 virtual size_t bytesWritten() const = 0;
364 size_t bytesWritten() const override;
376 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
392 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
439 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
/external/dng_sdk/source/
Ddng_file_stream.cpp124 uint32 bytesWritten = (uint32) fwrite (data, 1, count, fFile); in DoWrite() local
126 if (bytesWritten != count) in DoWrite()
/external/skia/third_party/ktx/
Dktx.cpp102 size_t bytesWritten = 0; in writeKeyAndValueForKTX() local
107 bytesWritten += 4; in writeKeyAndValueForKTX()
119 bytesWritten += keySize; in writeKeyAndValueForKTX()
126 bytesWritten += valueSize; in writeKeyAndValueForKTX()
128 size_t bytesWrittenPadFour = (bytesWritten + 3) & ~3; in writeKeyAndValueForKTX()
131 size_t padding = bytesWrittenPadFour - bytesWritten; in writeKeyAndValueForKTX()
/external/rmi4utils/rmidevice/
Dhiddevice.cpp229 size_t bytesWritten; in Read() local
261 for (bytesWritten = 0; bytesWritten < m_outputReportSize; bytesWritten += count) { in Read()
263 count = write(m_fd, m_outputReport + bytesWritten, in Read()
264 m_outputReportSize - bytesWritten); in Read()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
DExhaustiveTest.java102 int bytesWritten = 0; in myMultipassTest() local
121 bytesWritten = myCompressor.compress(chars, totalCharsCompressed, in myMultipassTest()
126 totalBytesWritten, bytesWritten); in myMultipassTest()
132 totalBytesWritten += bytesWritten; in myMultipassTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DExhaustiveTest.java106 int bytesWritten = 0; in myMultipassTest() local
125 bytesWritten = myCompressor.compress(chars, totalCharsCompressed, in myMultipassTest()
130 totalBytesWritten, bytesWritten); in myMultipassTest()
136 totalBytesWritten += bytesWritten; in myMultipassTest()
/external/icu/icu4c/source/tools/genbrk/
Dgenbrk.cpp313 size_t bytesWritten; in main() local
326 bytesWritten = udata_finish(pData, &status); in main()
332 if (bytesWritten != outDataSize) { in main()
/external/icu/icu4c/source/tools/gencfu/
Dgencfu.cpp271 size_t bytesWritten; in main() local
284 bytesWritten = udata_finish(pData, &status); in main()
290 if (bytesWritten != outDataSize) { in main()

1234