/external/pdfium/fpdfsdk/ |
D | fpdf_attachment_embeddertest.cpp | 30 unsigned long length_bytes = FPDFAttachment_GetName(attachment, nullptr, 0); in TEST_F() local 31 ASSERT_EQ(12u, length_bytes); in TEST_F() 32 std::vector<FPDF_WCHAR> buf = GetFPDFWideStringBuffer(length_bytes); in TEST_F() 33 EXPECT_EQ(12u, FPDFAttachment_GetName(attachment, buf.data(), length_bytes)); in TEST_F() 37 length_bytes = FPDFAttachment_GetFile(attachment, nullptr, 0); in TEST_F() 38 std::vector<char> content_buf(length_bytes); in TEST_F() 40 4u, FPDFAttachment_GetFile(attachment, content_buf.data(), length_bytes)); in TEST_F() 54 length_bytes = in TEST_F() 56 ASSERT_EQ(48u, length_bytes); in TEST_F() 57 buf = GetFPDFWideStringBuffer(length_bytes); in TEST_F() [all …]
|
D | fpdf_thumbnail_embeddertest.cpp | 24 unsigned long length_bytes = in TEST_F() local 26 ASSERT_EQ(kExpectedSize, length_bytes); in TEST_F() 27 std::vector<uint8_t> thumb_buf(length_bytes); in TEST_F() 30 page, thumb_buf.data(), length_bytes)); in TEST_F() 44 unsigned long length_bytes = in TEST_F() local 46 ASSERT_EQ(kExpectedSize, length_bytes); in TEST_F() 47 std::vector<uint8_t> thumb_buf(length_bytes); in TEST_F() 50 page, thumb_buf.data(), length_bytes)); in TEST_F() 68 unsigned long length_bytes = in TEST_F() local 70 ASSERT_EQ(kExpectedSize, length_bytes); in TEST_F() [all …]
|
D | fpdf_annot_embeddertest.cpp | 142 unsigned long length_bytes = in TEST_F() local 144 ASSERT_EQ(28u, length_bytes); in TEST_F() 145 std::vector<FPDF_WCHAR> buf = GetFPDFWideStringBuffer(length_bytes); in TEST_F() 147 length_bytes)); in TEST_F() 154 length_bytes = FPDFAnnot_GetStringValue( in TEST_F() 156 ASSERT_EQ(2690u, length_bytes); in TEST_F() 157 buf = GetFPDFWideStringBuffer(length_bytes); in TEST_F() 160 buf.data(), length_bytes)); in TEST_F() 333 unsigned long length_bytes = FPDFAnnot_GetStringValue( in TEST_F() local 335 ASSERT_EQ(74u, length_bytes); in TEST_F() [all …]
|
/external/pdfium/samples/ |
D | pdfium_test_write_helper.cc | 331 unsigned long length_bytes = in WriteAnnot() local 333 std::vector<FPDF_WCHAR> buf = GetFPDFWideStringBuffer(length_bytes); in WriteAnnot() 335 length_bytes); in WriteAnnot() 337 length_bytes = in WriteAnnot() 339 buf = GetFPDFWideStringBuffer(length_bytes); in WriteAnnot() 340 FPDFAnnot_GetStringValue(annot.get(), kAuthorKey, buf.data(), length_bytes); in WriteAnnot() 613 unsigned long length_bytes = FPDFAttachment_GetName(attachment, nullptr, 0); in WriteAttachments() local 614 if (length_bytes) { in WriteAttachments() 615 std::vector<FPDF_WCHAR> buf = GetFPDFWideStringBuffer(length_bytes); in WriteAttachments() 617 FPDFAttachment_GetName(attachment, buf.data(), length_bytes); in WriteAttachments() [all …]
|
/external/protobuf/conformance/ |
D | conformance_php.php | 85 $length_bytes = fread(STDIN, 4); 86 if (strlen($length_bytes) == 0) { 88 } elseif (strlen($length_bytes) != 4) { 93 $length = unpack("V", $length_bytes)[1];
|
D | conformance_ruby.rb | 103 length_bytes = STDIN.read(4) 104 return false if length_bytes.nil? 106 length = length_bytes.unpack('V').first
|
D | conformance_python.py | 178 length_bytes = sys.stdin.read(4) 179 if len(length_bytes) == 0: 181 elif len(length_bytes) != 4: 187 length = struct.unpack("<I", length_bytes)[0]
|
/external/boringssl/src/crypto/cipher_extra/ |
D | tls_cbc.c | 398 uint8_t length_bytes[MAX_HASH_BIT_COUNT_BYTES]; in EVP_tls_cbc_digest_record() local 399 OPENSSL_memset(length_bytes, 0, md_length_size - 4); in EVP_tls_cbc_digest_record() 400 length_bytes[md_length_size - 4] = (uint8_t)(bits >> 24); in EVP_tls_cbc_digest_record() 401 length_bytes[md_length_size - 3] = (uint8_t)(bits >> 16); in EVP_tls_cbc_digest_record() 402 length_bytes[md_length_size - 2] = (uint8_t)(bits >> 8); in EVP_tls_cbc_digest_record() 403 length_bytes[md_length_size - 1] = (uint8_t)bits; in EVP_tls_cbc_digest_record() 458 is_block_b, length_bytes[j - (md_block_size - md_length_size)], b); in EVP_tls_cbc_digest_record()
|
D | e_chacha20poly1305.c | 146 uint8_t length_bytes[8]; in poly1305_update_length() local 148 for (unsigned i = 0; i < sizeof(length_bytes); i++) { in poly1305_update_length() 149 length_bytes[i] = data_len; in poly1305_update_length() 153 CRYPTO_poly1305_update(poly1305, length_bytes, sizeof(length_bytes)); in poly1305_update_length()
|
/external/pdfium/testing/ |
D | fx_string_testhelpers.cpp | 74 std::vector<FPDF_WCHAR> GetFPDFWideStringBuffer(size_t length_bytes) { in GetFPDFWideStringBuffer() argument 75 ASSERT(length_bytes % sizeof(FPDF_WCHAR) == 0); in GetFPDFWideStringBuffer() 76 return std::vector<FPDF_WCHAR>(length_bytes / sizeof(FPDF_WCHAR)); in GetFPDFWideStringBuffer()
|
D | fx_string_testhelpers.h | 38 std::vector<FPDF_WCHAR> GetFPDFWideStringBuffer(size_t length_bytes);
|
/external/python/asn1crypto/asn1crypto/ |
D | parser.py | 281 length_bytes = int_to_bytes(length) 282 header += chr_cls(0x80 | len(length_bytes)) 283 header += length_bytes
|
/external/v8/src/wasm/ |
D | streaming-decoder.cc | 58 Vector<const uint8_t> length_bytes) in SectionBuffer() argument 62 1 + length_bytes.length() + payload_length)), in SectionBuffer() 63 payload_offset_(1 + length_bytes.length()) { in SectionBuffer() 65 memcpy(bytes_.start() + 1, &length_bytes.first(), length_bytes.length()); in SectionBuffer() 156 Vector<const uint8_t> length_bytes); 701 Vector<const uint8_t> length_bytes) { in CreateNewBuffer() argument 705 module_offset, section_id, length, length_bytes)); in CreateNewBuffer()
|
/external/elfutils/libdw/ |
D | dwarf_getaranges.c | 114 unsigned int length_bytes = 4; in dwarf_getaranges() local 121 length_bytes = 8; in dwarf_getaranges() 148 length_bytes, &offset, IDX_debug_info, 4)) in dwarf_getaranges()
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_format_vp8.cc | 604 size_t length_bytes = PictureIdLength(); in PayloadDescriptorExtraLength() local 606 ++length_bytes; in PayloadDescriptorExtraLength() 608 ++length_bytes; in PayloadDescriptorExtraLength() 609 if (length_bytes > 0) in PayloadDescriptorExtraLength() 610 ++length_bytes; // Include the extension field. in PayloadDescriptorExtraLength() 611 return length_bytes; in PayloadDescriptorExtraLength()
|
/external/u-boot/tools/ |
D | socfpgaimage.c | 123 uint32_t length_bytes) in sfp_build_header() argument 129 .length_u32 = cpu_to_le16(length_bytes / 4), in sfp_build_header() 138 .length_u8 = cpu_to_le32(length_bytes), in sfp_build_header()
|
/external/libtextclassifier/native/utils/ |
D | token-feature-extractor.cc | 299 const int length_bytes = in ExtractCharactergramFeaturesUnicode() local 302 StringPiece(it_chargram_start.utf8_data(), length_bytes))); in ExtractCharactergramFeaturesUnicode()
|
/external/autotest/server/site_tests/firmware_Cr50U2fCommands/ |
D | firmware_Cr50U2fCommands.py | 85 length_bytes = len(str) / 2 87 return hex(length_bytes + additional_len)[2:]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | payload_splitter_unittest.cc | 562 size_t length_bytes = expected_size_ms[i] * bytes_per_ms_; in TEST_P() local 565 VerifyPacket((*it), length_bytes, kPayloadType, kSequenceNumber, in TEST_P()
|
/external/elfutils/src/ |
D | readelf.c | 5456 unsigned int length_bytes = 4; in print_debug_aranges_section() local 5462 length_bytes = 8; in print_debug_aranges_section() 5487 if (readp + length_bytes > readendp) in print_debug_aranges_section() 5489 if (length_bytes == 8) in print_debug_aranges_section()
|