/external/libaom/libaom/test/ |
D | aom_integer_test.cc | 54 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 …]
|
D | av1_config_test.cc | 101 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/ |
D | resource_track.c | 44 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/ |
D | CharsetLMBCS.java | 942 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() 1012 … bytes_written = LMBCSConversionWorker(group, LMBCS, uniChar, lastConverterIndex, groups_tried); in encodeLoop() 1014 if (bytes_written == 0) { /* the ambiguous group cases (Strategy 3) */ in encodeLoop() 1020 …bytes_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/ |
D | ucnv_lmb.cpp | 859 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/ |
D | file_posix.cc | 277 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 …]
|
D | file_unittest.cc | 178 int bytes_written = file.Write(0, data_to_write, 0); in TEST() local 179 EXPECT_EQ(0, bytes_written); in TEST() 182 bytes_written = file.Write(0, nullptr, 0); in TEST() 183 EXPECT_EQ(0, bytes_written); in TEST() 186 bytes_written = file.Write(0, data_to_write, kTestDataSize); in TEST() 187 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 220 bytes_written = file.Write(kOffsetBeyondEndOfFile, in TEST() 222 EXPECT_EQ(kPartialWriteLength, bytes_written); in TEST() 271 int bytes_written = file.Write(0, data_to_write, 0); in TEST() local 272 EXPECT_EQ(0, bytes_written); in TEST() [all …]
|
/external/curl/lib/ |
D | sendf.c | 290 ssize_t bytes_written; in Curl_sendf() local 302 bytes_written = 0; in Curl_sendf() 308 result = Curl_write(conn, sockfd, sptr, write_len, &bytes_written); in Curl_sendf() 314 Curl_debug(data, CURLINFO_DATA_OUT, sptr, (size_t)bytes_written); in Curl_sendf() 316 if((size_t)bytes_written != write_len) { in Curl_sendf() 319 write_len -= bytes_written; in Curl_sendf() 320 sptr += bytes_written; in Curl_sendf() 344 ssize_t bytes_written; in Curl_write() local 348 bytes_written = conn->send[num](conn, num, mem, len, &result); in Curl_write() 350 *written = bytes_written; in Curl_write() [all …]
|
D | telnet.c | 349 ssize_t bytes_written; in send_negotiation() local 356 bytes_written = swrite(conn->sock[FIRSTSOCKET], buf, 3); in send_negotiation() 357 if(bytes_written < 0) { in send_negotiation() 926 ssize_t bytes_written; in suboption() local 941 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 942 if(bytes_written < 0) { in suboption() 953 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 954 if(bytes_written < 0) { in suboption() 981 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 982 if(bytes_written < 0) { in suboption() [all …]
|
/external/ltp/testcases/kernel/fs/fs_di/ |
D | frag.c | 48 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/ |
D | util.h | 282 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/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol.cc | 223 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/nanopb-c/tests/fuzztest/ |
D | fuzztest.c | 87 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 …]
|
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/ |
D | fuzztest.c | 87 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 …]
|
/external/image_io/src/base/ |
D | ostream_ref_data_destination.cc | 16 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/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLSignatureRawECDSA.java | 93 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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLSignatureRawECDSA.java | 97 int bytes_written = in engineSign() local 99 if (bytes_written < 0) { in engineSign() 105 if (bytes_written != output_size) { in engineSign() 106 byte[] newBuffer = new byte[bytes_written]; in engineSign() 107 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
|
/external/linux-kselftest/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 242 int ret, bytes_written = 0; in write_adi() local 247 ret = write(fd, buf + bytes_written, buf_sz - bytes_written); in write_adi() 254 bytes_written += ret; in write_adi() 255 } while (bytes_written < buf_sz); in write_adi() 258 DEBUG_PRINT_L3("\tWrote %d of %d bytes\n", bytes_written, buf_sz); in write_adi() 260 return bytes_written; in write_adi() 266 int ret, bytes_written = 0; in pwrite_adi() local 274 ret = pwrite(fd, buf + bytes_written, in pwrite_adi() 275 buf_sz - bytes_written, cur_offset); in pwrite_adi() 285 bytes_written += ret; in pwrite_adi() [all …]
|
/external/grpc-grpc/src/core/tsi/alts/crypt/ |
D | aes_gcm.cc | 342 int bytes_written = 0; in gsec_aes_gcm_aead_crypter_encrypt_iovec() local 344 if (!EVP_EncryptUpdate(aes_gcm_crypter->ctx, ciphertext, &bytes_written, in gsec_aes_gcm_aead_crypter_encrypt_iovec() 349 if (bytes_written > bytes_to_write) { in gsec_aes_gcm_aead_crypter_encrypt_iovec() 353 ciphertext += bytes_written; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 354 ciphertext_length -= bytes_written; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 494 size_t bytes_written = 0; in gsec_aes_gcm_aead_crypter_decrypt_iovec() local 507 reinterpret_cast<int*>(&bytes_written), ciphertext, in gsec_aes_gcm_aead_crypter_decrypt_iovec() 513 if (bytes_written > ciphertext_length) { in gsec_aes_gcm_aead_crypter_decrypt_iovec() 518 ciphertext += bytes_written; in gsec_aes_gcm_aead_crypter_decrypt_iovec() 519 ciphertext_length -= bytes_written; in gsec_aes_gcm_aead_crypter_decrypt_iovec() [all …]
|
/external/stressapptest/src/ |
D | logger.cc | 121 ssize_t bytes_written; in WriteAndDeleteLogLine() local 123 bytes_written = write(log_fd_, line->data(), line->size()); in WriteAndDeleteLogLine() 124 LOGGER_ASSERT(bytes_written == static_cast<ssize_t>(line->size())); in WriteAndDeleteLogLine() 126 bytes_written = write(STDOUT_FILENO, line->data(), line->size()); in WriteAndDeleteLogLine() 127 LOGGER_ASSERT(bytes_written == static_cast<ssize_t>(line->size())); in WriteAndDeleteLogLine()
|
/external/boringssl/src/crypto/base64/ |
D | base64_test.cc | 270 int bytes_written; in TEST_P() local 272 &ctx, out.data() + out_len, &bytes_written, in TEST_P() 280 out_len += bytes_written; in TEST_P() 293 out_len += bytes_written; in TEST_P() 300 int bytes_written; in TEST_P() local 301 int ret = EVP_DecodeFinal(&ctx, out.data() + out_len, &bytes_written); in TEST_P() 303 out_len += bytes_written; in TEST_P()
|
/external/harfbuzz_ng/util/ |
D | hb-subset.cc | 74 int bytes_written = fwrite(data, 1, data_length, fp_out); in write_file() local 78 if (bytes_written == -1) { in write_file() 82 if ((unsigned int) bytes_written != data_length) { in write_file() 84 bytes_written); in write_file()
|
/external/nanopb-c/tests/regression/issue_166/ |
D | enum_encoded_size.c | 22 TEST(s.bytes_written == SignedMsg_size); in main() 29 TEST(s.bytes_written < SignedMsg_size); in main() 38 TEST(s.bytes_written == UnsignedMsg_size); in main()
|
/external/grpc-grpc/third_party/nanopb/tests/regression/issue_166/ |
D | enum_encoded_size.c | 22 TEST(s.bytes_written == SignedMsg_size); in main() 29 TEST(s.bytes_written < SignedMsg_size); in main() 38 TEST(s.bytes_written == UnsignedMsg_size); in main()
|
/external/grpc-grpc/third_party/nanopb/ |
D | pb_encode.c | 81 stream.bytes_written = 0; in pb_ostream_from_buffer() 92 if (stream->bytes_written + count > stream->max_size) in pb_write() 104 stream->bytes_written += count; in pb_write() 151 size = sizestream.bytes_written; in encode_array() 408 *size = stream.bytes_written; in pb_get_encoded_size() 536 size = substream.bytes_written; in pb_encode_submessage() 544 if (stream->bytes_written + size > stream->max_size) in pb_encode_submessage() 552 substream.bytes_written = 0; in pb_encode_submessage() 559 stream->bytes_written += substream.bytes_written; in pb_encode_submessage() 565 if (substream.bytes_written != size) in pb_encode_submessage()
|