Home
last modified time | relevance | path

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

123456

/external/rappor/client/java/com/google/android/rappor/
DHmacDrbg.java182 int bytesWritten = 0; in hmacDrbgGenerate() local
185 while (bytesWritten < count) { in hmacDrbgGenerate()
191 int bytesToWrite = Math.min(count - bytesWritten, DIGEST_NUM_BYTES); in hmacDrbgGenerate()
192 System.arraycopy(value, 0, out, start + bytesWritten, bytesToWrite); in hmacDrbgGenerate()
193 bytesWritten += bytesToWrite; in hmacDrbgGenerate()
238 int bytesWritten = 0; in nextBytes() local
239 while (bytesWritten < count) { in nextBytes()
240 int bytesToWrite = Math.min(count - bytesWritten, MAX_BYTES_PER_REQUEST); in nextBytes()
241 hmacDrbgGenerate(out, start + bytesWritten, bytesToWrite); in nextBytes()
242 bytesWritten += bytesToWrite; in nextBytes()
/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/
DWriter32Test.cpp17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
45 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
52 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten()); in test_rewind()
54 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten()); in test_rewind()
65 REPORTER_ASSERT(reporter, 100*4 == writer.bytesWritten()); in test_rewind()
69 REPORTER_ASSERT(reporter, writer.bytesWritten() < 16); in test_rewind()
87 size_t size = writer.bytesWritten(); in test_ptr()
104 REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); in test1()
110 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->bytesWritten()); in test1()
124 REPORTER_ASSERT(reporter, writer->bytesWritten() == len); in test2()
[all …]
DSerializationTest.cpp161 size_t bytesWritten = writer.bytesWritten(); in TestObjectSerializationNoAlign() local
162 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
170 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
176 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
185 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten); in TestObjectSerializationNoAlign()
199 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
200 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
202 SkASSERT(bytesWritten <= 4096); in TestFlattenableSerialization()
207 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
214 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
[all …]
DPDFGlyphsToUnicodeTest.cpp25 const size_t streamSize = stream.bytesWritten(); in stream_equals()
96 buffer.bytesWritten())); in DEF_TEST()
114 buffer.bytesWritten())); in DEF_TEST()
128 buffer.bytesWritten())); in DEF_TEST()
145 buffer.bytesWritten())); in DEF_TEST()
182 buffer2.bytesWritten())); in DEF_TEST()
DPDFOpaqueSrcModeToSrcOverTest.cpp36 REPORTER_ASSERT(r, srcMode.bytesWritten() == srcOverMode.bytesWritten()); in DEF_TEST()
45 REPORTER_ASSERT(r, srcMode.bytesWritten() > srcOverMode.bytesWritten()); in DEF_TEST()
DPipeTest.cpp59 size_t offset0 = stream.bytesWritten(); in DEF_TEST()
66 size_t offset1 = stream.bytesWritten(); in DEF_TEST()
110 size_t offset2 = stream.bytesWritten(); in DEF_TEST()
130 size_t offset0 = stream.bytesWritten(); in DEF_TEST()
137 size_t offset1 = stream.bytesWritten(); in DEF_TEST()
185 size_t offset2 = stream.bytesWritten(); in DEF_TEST()
/external/skqp/tests/
DWriter32Test.cpp17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
45 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
52 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten()); in test_rewind()
54 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten()); in test_rewind()
65 REPORTER_ASSERT(reporter, 100*4 == writer.bytesWritten()); in test_rewind()
69 REPORTER_ASSERT(reporter, writer.bytesWritten() < 16); in test_rewind()
87 size_t size = writer.bytesWritten(); in test_ptr()
104 REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); in test1()
110 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->bytesWritten()); in test1()
124 REPORTER_ASSERT(reporter, writer->bytesWritten() == len); in test2()
[all …]
DSerializationTest.cpp161 size_t bytesWritten = writer.bytesWritten(); in TestObjectSerializationNoAlign() local
162 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
170 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
176 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
185 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten); in TestObjectSerializationNoAlign()
199 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
200 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
202 SkASSERT(bytesWritten <= 4096); in TestFlattenableSerialization()
207 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
214 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
[all …]
DPDFGlyphsToUnicodeTest.cpp25 const size_t streamSize = stream.bytesWritten(); in stream_equals()
96 buffer.bytesWritten())); in DEF_TEST()
114 buffer.bytesWritten())); in DEF_TEST()
128 buffer.bytesWritten())); in DEF_TEST()
145 buffer.bytesWritten())); in DEF_TEST()
182 buffer2.bytesWritten())); in DEF_TEST()
DPDFOpaqueSrcModeToSrcOverTest.cpp36 REPORTER_ASSERT(r, srcMode.bytesWritten() == srcOverMode.bytesWritten()); in DEF_TEST()
45 REPORTER_ASSERT(r, srcMode.bytesWritten() > srcOverMode.bytesWritten()); in DEF_TEST()
DPipeTest.cpp59 size_t offset0 = stream.bytesWritten(); in DEF_TEST()
66 size_t offset1 = stream.bytesWritten(); in DEF_TEST()
110 size_t offset2 = stream.bytesWritten(); in DEF_TEST()
130 size_t offset0 = stream.bytesWritten(); in DEF_TEST()
137 size_t offset1 = stream.bytesWritten(); in DEF_TEST()
185 size_t offset2 = stream.bytesWritten(); in DEF_TEST()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipher.java319 final int bytesWritten; in engineUpdate() local
321 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
327 if (output.length == bytesWritten) { in engineUpdate()
329 } else if (bytesWritten == 0) { in engineUpdate()
332 return Arrays.copyOfRange(output, 0, bytesWritten); in engineUpdate()
350 int bytesWritten; in engineDoFinal() local
353 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineDoFinal()
359 bytesWritten = 0; in engineDoFinal()
363 bytesWritten += doFinalInternal(output, bytesWritten, maximumLen - bytesWritten); in engineDoFinal()
369 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/mesa3d/src/mesa/main/
Dperformance_monitor.c610 GLint *bytesWritten) in _mesa_GetPerfMonitorCounterDataAMD() argument
632 if (bytesWritten != NULL) in _mesa_GetPerfMonitorCounterDataAMD()
633 *bytesWritten = 0; in _mesa_GetPerfMonitorCounterDataAMD()
644 if (bytesWritten != NULL) in _mesa_GetPerfMonitorCounterDataAMD()
645 *bytesWritten = sizeof(GLuint); in _mesa_GetPerfMonitorCounterDataAMD()
652 if (bytesWritten != NULL) in _mesa_GetPerfMonitorCounterDataAMD()
653 *bytesWritten = sizeof(GLuint); in _mesa_GetPerfMonitorCounterDataAMD()
657 if (bytesWritten != NULL) in _mesa_GetPerfMonitorCounterDataAMD()
658 *bytesWritten = sizeof(GLuint); in _mesa_GetPerfMonitorCounterDataAMD()
661 ctx->Driver.GetPerfMonitorResult(ctx, m, dataSize, data, bytesWritten); in _mesa_GetPerfMonitorCounterDataAMD()
[all …]
/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/skqp/src/core/
DSkWriteBuffer.cpp121 size_t bytesWritten = fWriter.readFromStream(stream, length); in writeStream() local
122 if (bytesWritten < length) { in writeStream()
123 fWriter.reservePad(length - bytesWritten); in writeStream()
125 return bytesWritten; in writeStream()
275 size_t offset = fWriter.bytesWritten(); in writeFlattenable()
278 size_t objSize = fWriter.bytesWritten() - offset; in writeFlattenable()
/external/skia/src/core/
DSkWriteBuffer.cpp121 size_t bytesWritten = fWriter.readFromStream(stream, length); in writeStream() local
122 if (bytesWritten < length) { in writeStream()
123 fWriter.reservePad(length - bytesWritten); in writeStream()
125 return bytesWritten; in writeStream()
275 size_t offset = fWriter.bytesWritten(); in writeFlattenable()
278 size_t objSize = fWriter.bytesWritten() - offset; in writeFlattenable()
/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/android_icu4j/src/main/java/android/icu/impl/
DTrie2_32.java154 int bytesWritten = 0; in serialize() local
156 bytesWritten += serializeHeader(dos); in serialize()
160 bytesWritten += dataLength*4; in serialize()
161 return bytesWritten; in serialize()
DTrie2_16.java157 int bytesWritten = 0; in serialize() local
159 bytesWritten += serializeHeader(dos); in serialize()
163 bytesWritten += dataLength*2; in serialize()
164 return bytesWritten; in serialize()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
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()
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()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedOutputStream.cs610 int bytesWritten = limit - position; in WriteRawBytes()
611 ByteArray.Copy(value, offset, buffer, position, bytesWritten); in WriteRawBytes()
612 offset += bytesWritten; in WriteRawBytes()
613 length -= bytesWritten; in WriteRawBytes()

123456