/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Chunk.java | 43 int header_size() { in header_size() method in Chunk 64 return new WithOffset(device_chunk_.myBuf(), device_chunk_.myOffset() + header_size()); in data_ptr() 68 return size() - header_size(); in data_size() 75 if (header_size() >= ResTable_header.SIZEOF) { in asResTable_header() 83 if (header_size() >= ResStringPool_header.SIZEOF) { in asResStringPool_header() 91 if (header_size() >= size) { in asResTable_package() 99 if (header_size() >= size) { in asResTable_type() 107 if (header_size() >= ResTable_lib_header.SIZEOF) { in asResTable_lib_header() 115 if (header_size() >= ResTable_lib_entry.SIZEOF) { in asResTable_lib_entry() 204 int header_size = dtohs(next_chunk_.headerSize); in VerifyNextChunk() local [all …]
|
/external/puffin/src/ |
D | puffpatch.cc | 108 uint32_t header_size; in DecodePatch() local 109 TEST_AND_RETURN_FALSE(patch_length >= (kMagicLength + sizeof(header_size))); in DecodePatch() 119 memcpy(&header_size, patch + offset, sizeof(header_size)); in DecodePatch() 120 header_size = be32toh(header_size); in DecodePatch() 121 offset += sizeof(header_size); in DecodePatch() 122 TEST_AND_RETURN_FALSE(header_size <= (patch_length - offset)); in DecodePatch() 125 TEST_AND_RETURN_FALSE(header.ParseFromArray(patch + offset, header_size)); in DecodePatch() 126 offset += header_size; in DecodePatch()
|
D | puffdiff.cc | 71 const uint32_t header_size = header.ByteSize(); in CreatePatch() local 74 patch->resize(kMagicLength + sizeof(header_size) + header_size + in CreatePatch() 81 uint32_t be_header_size = htobe32(header_size); in CreatePatch() 86 header.SerializeToArray(patch->data() + offset, header_size)); in CreatePatch() 87 offset += header_size; in CreatePatch()
|
/external/libchrome/mojo/core/ |
D | user_message_impl.cc | 48 uint32_t header_size; member 119 size_t header_size = safe_header_size.ValueOrDie(); in CreateOrExtendSerializedEventMessage() local 128 header_size += new_dispatcher_info[i].num_bytes; in CreateOrExtendSerializedEventMessage() 140 const size_t total_size = event_size + header_size + payload_size; in CreateOrExtendSerializedEventMessage() 142 event_size + header_size + payload_buffer_size; in CreateOrExtendSerializedEventMessage() 185 memcpy(reinterpret_cast<char*>(header) + header_size, in CreateOrExtendSerializedEventMessage() 204 if (!base::IsValueInRangeForNumericType<uint32_t>(header_size)) in CreateOrExtendSerializedEventMessage() 207 header->header_size = static_cast<uint32_t>(header_size); in CreateOrExtendSerializedEventMessage() 259 *out_header_size = header_size; in CreateOrExtendSerializedEventMessage() 260 *out_user_payload = reinterpret_cast<uint8_t*>(header) + header_size; in CreateOrExtendSerializedEventMessage() [all …]
|
D | channel.cc | 112 const size_t header_size = in Message() local 116 capacity_ = header_size + extra_header_size + capacity; in Message() 117 size_ = header_size + extra_header_size + payload_size; in Message() 125 memset(data_, 0, header_size + extra_header_size); in Message() 130 DCHECK(base::IsValueInRangeForNumericType<uint16_t>(header_size + in Message() 138 static_cast<uint16_t>(header_size + extra_header_size); in Message() 280 size_t header_size = capacity_ - capacity_without_header; in ExtendPayload() local 283 std::max(capacity_without_header * 2, new_payload_size) + header_size; in ExtendPayload() 301 size_ = header_size + new_payload_size; in ExtendPayload()
|
/external/libchrome/base/ |
D | pickle.cc | 227 Pickle::Pickle(int header_size) in Pickle() argument 229 header_size_(bits::Align(header_size, sizeof(uint32_t))), in Pickle() 232 DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header)); in Pickle() 233 DCHECK_LE(header_size, kPayloadUnit); in Pickle() 358 const char* Pickle::FindNext(size_t header_size, in FindNext() argument 362 if (!PeekNext(header_size, start, end, &pickle_size)) in FindNext() 372 bool Pickle::PeekNext(size_t header_size, in PeekNext() argument 376 DCHECK_EQ(header_size, bits::Align(header_size, sizeof(uint32_t))); in PeekNext() 377 DCHECK_GE(header_size, sizeof(Header)); in PeekNext() 378 DCHECK_LE(header_size, static_cast<size_t>(kPayloadUnit)); in PeekNext() [all …]
|
D | pickle.h | 151 explicit Pickle(int header_size); 268 size_t header_size() const { return header_size_; } in header_size() function 291 static const char* FindNext(size_t header_size, 302 static bool PeekNext(size_t header_size,
|
D | pickle_unittest.cc | 332 size_t header_size = sizeof(Pickle::Header); in TEST() local 333 std::unique_ptr<char[]> buffer(new char[header_size - 1]); in TEST() 334 memset(buffer.get(), 0x1, header_size - 1); in TEST() 337 const char* end = start + header_size - 1; in TEST() 339 EXPECT_EQ(nullptr, Pickle::FindNext(header_size, start, end)); in TEST() 347 size_t header_size = sizeof(Pickle::Header); in TEST() local 348 size_t header_size2 = 2 * header_size; in TEST() 366 end = start + header_size; in TEST()
|
/external/webrtc/talk/media/base/ |
D | rtputils.cc | 132 size_t header_size = kMinRtpPacketLen + (header[0] & 0xF) * sizeof(uint32_t); in GetRtpHeaderLen() local 133 if (len < header_size) return false; in GetRtpHeaderLen() 136 if (len < header_size + sizeof(uint32_t)) in GetRtpHeaderLen() 138 header_size += in GetRtpHeaderLen() 139 ((rtc::GetBE16(header + header_size + 2) + 1) * sizeof(uint32_t)); in GetRtpHeaderLen() 140 if (len < header_size) return false; in GetRtpHeaderLen() 142 *value = header_size; in GetRtpHeaderLen()
|
/external/android-clat/ |
D | translate.c | 368 size_t payload_size, header_size; in tcp_packet() local 385 header_size = tcp->doff * 4; in tcp_packet() 386 payload = ((const uint8_t *)tcp) + header_size; in tcp_packet() 387 payload_size = len - header_size; in tcp_packet() 389 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet() 443 size_t header_size, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, in tcp_translate() argument 446 out[pos].iov_len = header_size; in tcp_translate() 448 if (header_size > MAX_TCP_HDR) { in tcp_translate() 451 logmsg(ANDROID_LOG_ERROR, "tcp_translate: header too long %d > %d, truncating", header_size, in tcp_translate() 453 header_size = MAX_TCP_HDR; in tcp_translate() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | message_internal.cc | 34 const size_t header_size = in ComputeSerializedMessageSize() local 37 return Align(header_size + Align(payload_size) + in ComputeSerializedMessageSize() 41 return internal::Align(header_size + payload_size); in ComputeSerializedMessageSize()
|
/external/mesa3d/src/mesa/main/ |
D | program_binary.c | 238 unsigned header_size = get_program_binary_header_size(); in _mesa_get_program_binary() local 244 if (buf_size < header_size) in _mesa_get_program_binary() 248 if (blob.size + header_size > buf_size || in _mesa_get_program_binary() 257 *length = header_size + blob.size; in _mesa_get_program_binary() 275 unsigned header_size = get_program_binary_header_size(); in _mesa_program_binary() local 288 blob_reader_init(&blob, payload, length - header_size); in _mesa_program_binary()
|
/external/u-boot/tools/ |
D | imximage.c | 839 uint32_t header_size; in imximage_set_header() local 856 header_size = sizeof(flash_header_v1_t); in imximage_set_header() 858 header_size = sizeof(flash_header_v2_t) + sizeof(boot_data_t); in imximage_set_header() 860 header_size += sizeof(dcd_v2_t); in imximage_set_header() 862 header_size += MAX_PLUGIN_CODE_SIZE; in imximage_set_header() 865 if (imximage_init_loadsize < imximage_ivt_offset + header_size) in imximage_set_header() 866 imximage_init_loadsize = imximage_ivt_offset + header_size; in imximage_set_header() 918 uint32_t pad_len, header_size; in imximage_generate() local 937 header_size = sizeof(imx_header_v1_t); in imximage_generate() 939 header_size = sizeof(flash_header_v2_t) + sizeof(boot_data_t); in imximage_generate() [all …]
|
D | mtk_image.c | 395 tparams->header_size = sizeof(union lk_hdr); in mtk_image_vrec_header() 397 memset(&hdr_tmp, 0xff, tparams->header_size); in mtk_image_vrec_header() 402 tparams->header_size = 2 * le16_to_cpu(hdr_nand->pagesize); in mtk_image_vrec_header() 404 tparams->header_size = sizeof(struct gen_device_header); in mtk_image_vrec_header() 406 tparams->header_size += sizeof(struct gfh_header); in mtk_image_vrec_header() 409 memset(&hdr_tmp, 0xff, tparams->header_size); in mtk_image_vrec_header() 448 gfh = (struct gfh_header *)(ptr + le32_to_cpu(bh->header_size)); in mtk_image_verify_gen_header() 665 hdr->brlyt.header_size = cpu_to_le32(sizeof(struct gen_device_header)); in mtk_image_set_gen_header() 667 hdr->brlyt.header_size_2 = hdr->brlyt.header_size; in mtk_image_set_gen_header() 699 brlyt->header_size = cpu_to_le32(2); in mtk_image_set_nand_header() [all …]
|
D | mkimage.c | 349 params.ep += tparams->header_size; in main() 391 if ((unsigned)sbuf.st_size < tparams->header_size) { in main() 444 params.file_size = sbuf.st_size + tparams->header_size; in main() 457 memset(tparams->hdr, 0, tparams->header_size); in main() 459 if (write(ifd, tparams->hdr, tparams->header_size) in main() 460 != tparams->header_size) { in main() 565 - tparams->header_size, in main() 567 - tparams->header_size in main() 702 if ((unsigned)sbuf.st_size < tparams->header_size) { in copy_file() 709 for (p = ptr; p < ptr + tparams->header_size; p++) { in copy_file() [all …]
|
/external/strace/tests-m32/ |
D | netlink_kobject_uevent.c | 54 .header_size = sizeof(uh), in test_nlmsg_type_udev() 77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
|
/external/strace/tests/ |
D | netlink_kobject_uevent.c | 54 .header_size = sizeof(uh), in test_nlmsg_type_udev() 77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
|
/external/strace/tests-mx32/ |
D | netlink_kobject_uevent.c | 54 .header_size = sizeof(uh), in test_nlmsg_type_udev() 77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev() 115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
|
/external/u-boot/lib/efi_loader/ |
D | efi_net.c | 482 (struct efi_simple_network *this, size_t header_size, in efi_net_transmit() argument 490 (unsigned long)header_size, (unsigned long)buffer_size, in efi_net_transmit() 518 if (header_size) { in efi_net_transmit() 522 header_size != this->mode->media_header_size) { in efi_net_transmit() 571 (struct efi_simple_network *this, size_t *header_size, in efi_net_receive() argument 581 EFI_ENTRY("%p, %p, %p, %p, %p, %p, %p", this, header_size, in efi_net_receive() 615 if (header_size) in efi_net_receive() 616 *header_size = hdr_size; in efi_net_receive() 756 efi_uintn_t *header_size, void *header_ptr, in efi_pxe_base_code_udp_write() argument 766 u16 *src_port, efi_uintn_t *header_size, in efi_pxe_base_code_udp_read() argument
|
/external/libaom/libaom/common/ |
D | obudec.c | 149 size_t header_size = 0; in obudec_read_obu_header_and_size() local 152 &header_size) != 0) { in obudec_read_obu_header_and_size() 154 } else if (header_size == 0) { in obudec_read_obu_header_and_size() 161 if (obu_size < header_size) { in obudec_read_obu_header_and_size() 165 *payload_length = (size_t)obu_size - header_size; in obudec_read_obu_header_and_size() 168 if (obudec_read_leb128(f, &buffer[leb128_length_obu + header_size], in obudec_read_obu_header_and_size() 181 *bytes_read = leb128_length_obu + header_size + leb128_length_payload; in obudec_read_obu_header_and_size()
|
/external/google-breakpad/src/processor/ |
D | map_serializers-inl.h | 58 size_t header_size = (1 + m.size()) * sizeof(uint32_t); in SizeOf() local 59 size += header_size; in SizeOf() 122 size_t header_size = (1 + m.map_.size()) * sizeof(uint32_t); in SizeOf() local 123 size += header_size; in SizeOf() 193 size_t header_size = addr_serializer_.SizeOf(m->base_) in SizeOf() local 196 size += header_size; in SizeOf()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_bmp_op.cc | 68 const int32 header_size = ByteSwapInt32ForBigEndian(header_size_); in Compute() local 98 OP_REQUIRES(context, header_size >= 0, in Compute() 115 const int64 last_pixel_offset = static_cast<int64>(header_size) + in Compute() 138 const uint8* bmp_pixels = &img_bytes[header_size]; in Compute()
|
/external/python/cpython3/Lib/ |
D | zipimport.py | 394 header_size = _unpack_uint32(buffer[12:16]) 396 if header_position < header_size: 400 header_position -= header_size 432 header_size = name_size + extra_size + comment_size 447 if len(fp.read(header_size - name_size)) != header_size - name_size: 552 header_size = 30 + name_size + extra_size 553 file_offset += header_size # Start of file data
|
/external/python/cpython2/Modules/ |
D | zipimport.c | 711 unsigned int crc, data_size, file_size, header_size, header_offset; in read_directory() local 752 header_size = get_uint32(buffer + 12); in read_directory() 754 if (header_position < header_size) { in read_directory() 762 if (header_position - header_size < header_offset) { in read_directory() 766 header_position -= header_size; in read_directory() 805 header_size = (unsigned int)name_size + in read_directory() 834 assert(header_size <= 3*0xFFFFu); in read_directory() 835 for (i = name_size; i < header_size; i++) { in read_directory() 925 long file_offset, header_size; in get_data() local 959 header_size = (unsigned int)30 + in get_data() [all …]
|
/external/jemalloc_new/src/ |
D | base.c | 253 size_t header_size = sizeof(base_block_t); in base_block_alloc() local 254 size_t gap_size = ALIGNMENT_CEILING(header_size, alignment) - in base_block_alloc() 255 header_size; in base_block_alloc() 263 size_t min_block_size = HUGEPAGE_CEILING(sz_psz2u(header_size + gap_size in base_block_alloc() 297 assert(block_size >= header_size); in base_block_alloc() 299 (void *)((uintptr_t)block + header_size), block_size - header_size); in base_block_alloc()
|