Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/external/tensorflow/tensorflow/lite/micro/
Dmicro_string_test.cc26 int bytes_written = MicroSnprintf(buffer, kBufferLen, "Int: %d", 55); in TF_LITE_MICRO_TEST() local
27 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
35 int bytes_written = MicroSnprintf(buffer, kBufferLen, "Int: %d", -55); in TF_LITE_MICRO_TEST() local
36 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
44 int bytes_written = MicroSnprintf(buffer, kBufferLen, "UInt: %u", 12345); in TF_LITE_MICRO_TEST() local
45 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
53 int bytes_written = MicroSnprintf(buffer, kBufferLen, "Hex: %x", 0x12345); in TF_LITE_MICRO_TEST() local
54 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
62 int bytes_written = MicroSnprintf(buffer, kBufferLen, "Float: %f", 16.); in TF_LITE_MICRO_TEST() local
63 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
[all …]
/external/libaom/libaom/test/
Daom_integer_test.cc54 size_t bytes_written = 0; in TEST() local
56 &bytes_written), in TEST()
58 ASSERT_EQ(bytes_written, 3u); in TEST()
59 for (size_t i = 0; i < bytes_written; ++i) { in TEST()
68 size_t bytes_written = 0; in TEST() local
70 &bytes_written), in TEST()
72 ASSERT_EQ(bytes_written, 3u); in TEST()
75 aom_uleb_decode(&write_buffer[0], bytes_written, &decoded_value, in TEST()
78 ASSERT_EQ(bytes_written, decoded_length); in TEST()
86 size_t bytes_written = 0; in TEST() local
[all …]
Dav1_config_test.cc101 size_t bytes_written = 0; in TEST() local
105 ASSERT_EQ(-1, write_av1config(&av1_config, 0, &bytes_written, NULL)); in TEST()
108 write_av1config(&av1_config, 0, &bytes_written, &av1c_buffer[0])); in TEST()
109 ASSERT_EQ(-1, write_av1config(&av1_config, 4, &bytes_written, NULL)); in TEST()
141 size_t bytes_written = 0; in TEST() local
143 ASSERT_EQ(0, write_av1config(&av1_config, sizeof(av1c_buffer), &bytes_written, in TEST()
145 ASSERT_EQ(kAv1cNoConfigObusSize, bytes_written); in TEST()
156 ASSERT_EQ(0, write_av1config(&av1_config, sizeof(av1c_buffer), &bytes_written, in TEST()
/external/e2fsprogs/resize/
Dresource_track.c44 track->bytes_written = 0; in init_resource_track()
49 track->bytes_written = io_start->bytes_written; in init_resource_track()
106 unsigned long long bytes_written = 0; in print_resource_track() local
111 bytes_written = delta->bytes_written - in print_resource_track()
112 track->bytes_written; in print_resource_track()
113 if (bytes_read == 0 && bytes_written == 0) in print_resource_track()
120 mbytes(bytes_written), in print_resource_track()
121 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetLMBCS.java942 int bytes_written; in encodeLoop() local
978 bytes_written = 0; in encodeLoop()
992 bytes_written = 1; in encodeLoop()
995 if (bytes_written == 0) { in encodeLoop()
999 bytes_written = LMBCSConvertUni(LMBCS, uniChar); in encodeLoop()
1009 bytes_written = pLMBCS; in encodeLoop()
1012bytes_written = LMBCSConversionWorker(group, LMBCS, uniChar, lastConverterIndex, groups_tried); in encodeLoop()
1014 if (bytes_written == 0) { /* the ambiguous group cases (Strategy 3) */ in encodeLoop()
1020bytes_written = LMBCSConversionWorker (ULMBCS_GRP_L1, LMBCS, uniChar, lastConverterIndex, groups_t… in encodeLoop()
1022 if(bytes_written == 0) { in encodeLoop()
[all …]
/external/icu/icu4c/source/common/
Ducnv_lmb.cpp859 int32_t bytes_written; in _LMBCSFromUnicode() local
901 bytes_written = 0; in _LMBCSFromUnicode()
920 bytes_written = 1; in _LMBCSFromUnicode()
924 if (!bytes_written) in _LMBCSFromUnicode()
933 bytes_written = (int32_t)(pLMBCS - LMBCS); in _LMBCSFromUnicode()
948 bytes_written = (int32_t)(pLMBCS - LMBCS); in _LMBCSFromUnicode()
953 bytes_written = (int32_t)LMBCSConversionWorker ( in _LMBCSFromUnicode()
957 if (!bytes_written) /* the ambiguous group cases (Strategy 3) */ in _LMBCSFromUnicode()
969 bytes_written = (int32_t)LMBCSConversionWorker (extraInfo, in _LMBCSFromUnicode()
973 if(!bytes_written) in _LMBCSFromUnicode()
[all …]
/external/libchrome/base/files/
Dfile_posix.cc277 int bytes_written = 0; in Write() local
285 rv = HANDLE_EINTR(pwrite64(file_.get(), data + bytes_written, in Write()
286 size - bytes_written, offset + bytes_written)); in Write()
288 rv = HANDLE_EINTR(pwrite(file_.get(), data + bytes_written, in Write()
289 size - bytes_written, offset + bytes_written)); in Write()
294 bytes_written += rv; in Write()
295 } while (bytes_written < size); in Write()
297 return bytes_written ? bytes_written : rv; in Write()
308 int bytes_written = 0; in WriteAtCurrentPos() local
311 rv = HANDLE_EINTR(write(file_.get(), data + bytes_written, in WriteAtCurrentPos()
[all …]
/external/pigweed/pw_hdlc/
Drpc_channel_test.cc69 ASSERT_EQ(memory_writer.bytes_written(), expected.size());
72 memory_writer.data(), expected.data(), memory_writer.bytes_written()),
97 ASSERT_EQ(memory_writer.bytes_written(), 10u); in TEST()
100 memory_writer.data(), expected.data(), memory_writer.bytes_written()), in TEST()
120 ASSERT_EQ(memory_writer.bytes_written(), expected.size());
123 memory_writer.data(), expected.data(), memory_writer.bytes_written()),
147 ASSERT_EQ(memory_writer.bytes_written(), expected.size()); in TEST()
150 memory_writer.data(), expected.data(), memory_writer.bytes_written()), in TEST()
/external/ltp/testcases/kernel/fs/fs_di/
Dfrag.c48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; in main() local
84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); in main()
85 if (bytes_read != bytes_written) { in main()
90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); in main()
91 if (bytes_read != bytes_written) { in main()
/external/gflags/src/
Dutil.h282 int bytes_written = vsnprintf(space, sizeof(space), format, backup_ap);
285 if ((bytes_written >= 0) && (static_cast<size_t>(bytes_written) < sizeof(space))) {
286 output->append(space, bytes_written);
293 if (bytes_written < 0) {
298 length = bytes_written+1;
304 bytes_written = vsnprintf(buf, length, format, backup_ap);
307 if ((bytes_written >= 0) && (bytes_written < length)) {
308 output->append(buf, bytes_written);
/external/webrtc/test/testsupport/
Dy4m_frame_writer.cc34 int bytes_written = fprintf(output_file_, "YUV4MPEG2 W%d H%d F%d:1 C420\n", in Init() local
36 if (bytes_written < 0) { in Init()
50 int bytes_written = fprintf(output_file_, "FRAME\n"); in WriteFrame() local
51 if (bytes_written < 0) { in WriteFrame()
/external/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc83 int bytes_written; in AddressIsReadable() local
116 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
117 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
118 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
131 return bytes_written == 1; in AddressIsReadable()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc84 int bytes_written; in AddressIsReadable() local
117 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
118 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
119 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
132 return bytes_written == 1; in AddressIsReadable()
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc83 int bytes_written; in AddressIsReadable() local
116 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
117 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
118 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
131 return bytes_written == 1; in AddressIsReadable()
/external/openscreen/third_party/abseil/src/absl/debugging/internal/
Daddress_is_readable.cc84 int bytes_written; in AddressIsReadable() local
117 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
118 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
119 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
132 return bytes_written == 1; in AddressIsReadable()
/external/angle/third_party/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc84 int bytes_written; in AddressIsReadable() local
117 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
118 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
119 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
132 return bytes_written == 1; in AddressIsReadable()
/external/libtextclassifier/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc84 int bytes_written; in AddressIsReadable() local
117 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
118 } while (bytes_written == -1 && errno == EINTR); in AddressIsReadable()
119 if (bytes_written == 1) { // remove the byte from the pipe in AddressIsReadable()
132 return bytes_written == 1; in AddressIsReadable()
/external/webrtc/api/crypto/
Dframe_decryptor_interface.h42 Result(Status status, size_t bytes_written) in Result()
43 : status(status), bytes_written(bytes_written) {} in Result()
48 const size_t bytes_written; member
/external/image_io/src/base/
Dostream_ref_data_destination.cc16 size_t bytes_written = 0; in Transfer() local
24 bytes_written = ostream_ref_.tellp() - prewrite_pos; in Transfer()
25 bytes_transferred_ += bytes_written; in Transfer()
28 if (bytes_written != bytes_to_write) { in Transfer()
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc225 size_t bytes_written = 0; in alts_iovec_record_protocol_integrity_only_protect() local
230 &bytes_written, error_details); in alts_iovec_record_protocol_integrity_only_protect()
234 if (bytes_written != rp->tag_length) { in alts_iovec_record_protocol_integrity_only_protect()
278 size_t bytes_written = 0; in alts_iovec_record_protocol_integrity_only_unprotect() local
282 1, plaintext, &bytes_written, error_details); in alts_iovec_record_protocol_integrity_only_unprotect()
283 if (status != GRPC_STATUS_OK || bytes_written != 0) { in alts_iovec_record_protocol_integrity_only_unprotect()
338 size_t bytes_written = 0; in alts_iovec_record_protocol_privacy_integrity_protect() local
343 ciphertext, &bytes_written, error_details); in alts_iovec_record_protocol_privacy_integrity_protect()
347 if (bytes_written != data_length + rp->tag_length) { in alts_iovec_record_protocol_privacy_integrity_protect()
409 size_t bytes_written = 0; in alts_iovec_record_protocol_privacy_integrity_unprotect() local
[all …]
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc223 size_t bytes_written = 0; in alts_iovec_record_protocol_integrity_only_protect() local
228 &bytes_written, error_details); in alts_iovec_record_protocol_integrity_only_protect()
232 if (bytes_written != rp->tag_length) { in alts_iovec_record_protocol_integrity_only_protect()
276 size_t bytes_written = 0; in alts_iovec_record_protocol_integrity_only_unprotect() local
280 1, plaintext, &bytes_written, error_details); in alts_iovec_record_protocol_integrity_only_unprotect()
281 if (status != GRPC_STATUS_OK || bytes_written != 0) { in alts_iovec_record_protocol_integrity_only_unprotect()
336 size_t bytes_written = 0; in alts_iovec_record_protocol_privacy_integrity_protect() local
341 ciphertext, &bytes_written, error_details); in alts_iovec_record_protocol_privacy_integrity_protect()
345 if (bytes_written != data_length + rp->tag_length) { in alts_iovec_record_protocol_privacy_integrity_protect()
407 size_t bytes_written = 0; in alts_iovec_record_protocol_privacy_integrity_unprotect() local
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSignatureRawECDSA.java95 int bytes_written = in engineSign() local
97 if (bytes_written < 0) { in engineSign()
103 if (bytes_written != output_size) { in engineSign()
104 byte[] newBuffer = new byte[bytes_written]; in engineSign()
105 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLSignatureRawECDSA.java93 int bytes_written = in engineSign() local
95 if (bytes_written < 0) { in engineSign()
101 if (bytes_written != output_size) { in engineSign()
102 byte[] newBuffer = new byte[bytes_written]; in engineSign()
103 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
/external/webrtc/rtc_base/memory/
Dfifo_buffer.cc77 size_t* bytes_written) { in WriteOffset() argument
79 return WriteOffsetLocked(buffer, bytes, offset, bytes_written); in WriteOffset()
115 size_t* bytes_written, in Write() argument
126 if (bytes_written) { in Write()
127 *bytes_written = copy; in Write()
223 size_t* bytes_written) { in WriteOffsetLocked() argument
241 if (bytes_written) { in WriteOffsetLocked()
242 *bytes_written = copy; in WriteOffsetLocked()
/external/nanopb-c/tests/fuzztest/
Dfuzztest.c87 while(stream.bytes_written < min_bytes) in rand_fill_protobuf()
118 if (min_bytes > stream.bytes_written) in rand_fill_protobuf()
119 len = rand_len(min_bytes - stream.bytes_written); in rand_fill_protobuf()
131 return stream.bytes_written; in rand_fill_protobuf()
191 assert(stream.bytes_written <= BUFSIZE); in do_static_encode()
192 assert(stream.bytes_written <= alltypes_static_AllTypes_size); in do_static_encode()
194 *msglen = stream.bytes_written; in do_static_encode()
294 msglen2 = stream.bytes_written; in do_static_roundtrip()
307 msglen3 = stream.bytes_written; in do_static_roundtrip()
341 msglen2 = stream.bytes_written; in do_pointer_roundtrip()
[all …]

12345678910>>...15