/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | message_builder.h | 21 MessageBuilder(uint32_t name, size_t payload_size); 39 size_t payload_size, 46 RequestMessageBuilder(uint32_t name, size_t payload_size) in RequestMessageBuilder() argument 48 payload_size, in RequestMessageBuilder() 53 size_t payload_size, in RequestMessageBuilder() argument 56 payload_size, in RequestMessageBuilder() 64 size_t payload_size, in ResponseMessageBuilder() argument 67 payload_size, in ResponseMessageBuilder() 72 size_t payload_size, in ResponseMessageBuilder() argument 76 payload_size, in ResponseMessageBuilder()
|
D | native_struct_serialization.h | 35 return Align(sizer.payload_size() + sizeof(ArrayHeader)); in PrepareToSerialize() 48 DCHECK_EQ(sizer.payload_size(), pickle.payload_size()); in Serialize() 51 size_t total_size = pickle.payload_size() + sizeof(ArrayHeader); in Serialize() 58 header->num_elements = static_cast<uint32_t>(pickle.payload_size()); in Serialize() 60 pickle.payload(), pickle.payload_size()); in Serialize()
|
D | message_builder.cc | 22 MessageBuilder::MessageBuilder(uint32_t name, size_t payload_size) { in MessageBuilder() argument 23 InitializeMessage(sizeof(MessageHeader) + payload_size); in MessageBuilder() 42 size_t payload_size, in MessageWithRequestIDBuilder() argument 45 InitializeMessage(sizeof(MessageHeaderWithRequestID) + payload_size); in MessageWithRequestIDBuilder()
|
D | native_enum_serialization.h | 36 CHECK_GE(sizeof(int32_t), pickle.payload_size()); in Serialize() 39 pickle.payload_size()); in Serialize() 43 uint32_t payload_size; member
|
/external/libchrome/base/ |
D | pickle_unittest.cc | 289 if (sizeof(size_t) > sizeof(header.payload_size)) in TEST() 297 header.payload_size = static_cast<uint32_t>( in TEST() 308 header.payload_size = in TEST() 355 if (sizeof(size_t) > sizeof(header->payload_size) || in TEST() 356 sizeof(uintptr_t) > sizeof(header->payload_size)) in TEST() 359 header->payload_size = -(reinterpret_cast<uintptr_t>(start) + header_size2); in TEST() 362 header->payload_size = -header_size2; in TEST() 365 header->payload_size = 0; in TEST() 409 EXPECT_EQ(pickle.payload_size(), payload_size_after_header); in TEST() 415 EXPECT_EQ(cur_payload, pickle.payload_size()); in TEST() [all …]
|
D | pickle.cc | 27 end_index_(pickle.payload_size()) { in PickleIterator() 263 header_->payload_size = 0; in Pickle() 274 header_->payload_size = 0; in Pickle() 283 header_size_ = data_len - header_->payload_size; in Pickle() 301 Resize(other.header_->payload_size); in Pickle() 302 memcpy(header_, other.header_, header_size_ + other.header_->payload_size); in Pickle() 324 Resize(other.header_->payload_size); in operator =() 326 other.header_size_ + other.header_->payload_size); in operator =() 432 if (hdr->payload_size > std::numeric_limits<size_t>::max() - header_size) { in PeekNext() 437 *pickle_size = header_size + hdr->payload_size; in PeekNext() [all …]
|
D | pickle.h | 120 size_t payload_size() const { return payload_size_; } in payload_size() function 209 size_t size() const { return header_size_ + header_->payload_size; } in size() 276 uint32_t payload_size; // Specifies the size of the payload. member 294 size_t payload_size() const { in payload_size() function 295 return header_ ? header_->payload_size : 0; in payload_size() 306 return header_ ? payload() + payload_size() : NULL; in end_of_payload()
|
/external/android-clat/ |
D | dump.c | 134 const uint8_t *payload, size_t payload_size) { in dump_udp_generic() argument 138 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_udp_generic() 150 const uint8_t *payload, size_t payload_size) { in dump_udp() argument 152 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp() 153 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp() 158 const uint8_t *payload, size_t payload_size) { in dump_udp6() argument 160 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6() 161 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp6() 165 …ptions, size_t options_size, uint32_t temp_checksum, const uint8_t *payload, size_t payload_size) { in dump_tcp_generic() argument 172 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_tcp_generic() [all …]
|
D | translate.c | 228 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument 246 clat_packet_len = ipv4_packet(out, pos + 1, payload, payload_size); in icmp_to_icmp6() 260 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6() 282 const uint8_t *payload, size_t payload_size) { in icmp6_to_icmp() argument 300 clat_packet_len = ipv6_packet(out, pos + 1, payload, payload_size); in icmp6_to_icmp() 306 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp() 346 size_t payload_size; in udp_packet() local 354 payload_size = len - sizeof(struct udphdr); in udp_packet() 356 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size); in udp_packet() 370 size_t payload_size, header_size; in tcp_packet() local [all …]
|
D | dump.h | 24 const uint8_t *payload, size_t payload_size); 26 const uint8_t *payload, size_t payload_size, 32 const uint8_t *payload, size_t payload_size); 34 const uint8_t *payload, size_t payload_size,
|
D | translate.h | 70 uint32_t checksum, const uint8_t *payload, size_t payload_size); 72 const uint8_t *payload, size_t payload_size); 85 const uint8_t *payload, size_t payload_size); 88 const uint8_t *payload, size_t payload_size);
|
/external/webrtc/webrtc/test/fuzzers/ |
D | producer_fec_fuzzer.cc | 31 size_t payload_size = data[i++] % 10; in FuzzOneInput() local 32 if (i + payload_size + rtp_header_length + 2 > size) in FuzzOneInput() 35 new uint8_t[payload_size + rtp_header_length]); in FuzzOneInput() 36 memcpy(packet.get(), &data[i], payload_size + rtp_header_length); in FuzzOneInput() 38 i += payload_size + rtp_header_length; in FuzzOneInput() 42 packet.get(), payload_size, rtp_header_length, kRedPayloadType)); in FuzzOneInput() 45 producer.AddRtpPacketAndGenerateFec(packet.get(), payload_size, in FuzzOneInput()
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | router_test_util.cc | 19 size_t payload_size = strlen(text) + 1; // Plus null terminator. in AllocRequestMessage() local 20 internal::RequestMessageBuilder builder(name, payload_size); in AllocRequestMessage() 21 memcpy(builder.buffer()->Allocate(payload_size), text, payload_size); in AllocRequestMessage() 30 size_t payload_size = strlen(text) + 1; // Plus null terminator. in AllocResponseMessage() local 31 internal::ResponseMessageBuilder builder(name, payload_size, request_id); in AllocResponseMessage() 32 memcpy(builder.buffer()->Allocate(payload_size), text, payload_size); in AllocResponseMessage()
|
/external/libmojo/mojo/edk/system/ |
D | node_channel.cc | 127 size_t payload_size, in CreateMessage() argument 131 new Channel::Message(sizeof(Header) + payload_size, num_handles)); in CreateMessage() 169 Channel::MessagePtr NodeChannel::CreatePortsMessage(size_t payload_size, in CreatePortsMessage() argument 172 return CreateMessage(MessageType::PORTS_MESSAGE, payload_size, num_handles, in CreatePortsMessage() 181 *num_data_bytes = message->payload_size() - sizeof(Header); in GetPortsMessageData() 424 message->payload_size(); in PortsMessageFromRelay() 430 if (message->payload_size()) in PortsMessageFromRelay() 431 memcpy(data + 1, message->payload(), message->payload_size()); in PortsMessageFromRelay() 456 size_t payload_size, in OnChannelMessage() argument 505 if (payload_size <= sizeof(Header)) { in OnChannelMessage() [all …]
|
D | channel.cc | 44 Channel::Message::Message(size_t payload_size, in Message() argument 74 size_ = sizeof(Header) + extra_header_size + payload_size; in Message() 135 size_t payload_size = data_num_bytes - sizeof(Header); in Deserialize() local 146 size_t payload_size = data_num_bytes - header->num_header_bytes; in Deserialize() local 171 MessagePtr message(new Message(payload_size, max_handles)); in Deserialize() 175 if (payload_size) in Deserialize() 176 memcpy(message->mutable_payload(), payload, payload_size); in Deserialize() 204 size_t Channel::Message::payload_size() const { in payload_size() function in mojo::edk::Channel::Message 522 size_t payload_size = header->num_bytes - sizeof(Message::Header); in OnReadComplete() local 523 void* payload = payload_size ? const_cast<Message::Header*>(&header[1]) in OnReadComplete() [all …]
|
D | channel.h | 107 Message(size_t payload_size, 124 size_t payload_size() const; 134 size_t payload_size() const; 193 size_t payload_size, 275 size_t payload_size,
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe_test_framework.cc | 65 void RateCounter::UpdateRates(int64_t send_time_us, uint32_t payload_size) { in UpdateRates() argument 67 recently_received_bytes_ += payload_size; in UpdateRates() 69 window_.push_back(std::make_pair(send_time_us, payload_size)); in UpdateRates() 104 Packet::Packet(int flow_id, int64_t send_time_us, size_t payload_size) in Packet() argument 109 payload_size_(payload_size), in Packet() 131 size_t payload_size, in MediaPacket() argument 133 : Packet(flow_id, send_time_us, payload_size) { in MediaPacket() 140 size_t payload_size, in MediaPacket() argument 142 : Packet(flow_id, send_time_us, payload_size), header_(header) { in MediaPacket() 296 static_cast<int>(packet->payload_size())); in RunFor() [all …]
|
D | bwe.h | 54 size_t payload_size) in PacketIdentifierNode() 58 payload_size(payload_size) {} in PacketIdentifierNode() 63 size_t payload_size; member 83 size_t payload_size);
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | remote_bitrate_estimator_abs_send_time.h | 31 Probe(int64_t send_time_ms, int64_t recv_time_ms, size_t payload_size) in Probe() 34 payload_size(payload_size) {} in Probe() 37 size_t payload_size; member 76 size_t payload_size, 104 size_t payload_size, 108 bool IsProbe(int64_t send_time_ms, int payload_size) const
|
D | send_time_history_unittest.cc | 55 size_t payload_size, in PacketInfo() argument 61 payload_size, in PacketInfo() 67 payload_size == other.payload_size && was_paced == other.was_paced; in operator ==() 102 EXPECT_EQ(kPayloadSize, info.payload_size); in TEST_F() 123 sent_packets[i].payload_size, in TEST_F() 213 AddPacketWithSendTime(packets[0].sequence_number, packets[0].payload_size, in TEST_F() 215 AddPacketWithSendTime(packets[1].sequence_number, packets[1].payload_size, in TEST_F() 221 AddPacketWithSendTime(packets[2].sequence_number, packets[2].payload_size, in TEST_F()
|
D | remote_bitrate_estimator_abs_send_time.cc | 143 current.mean_size += it->payload_size; in ComputeClusters() 235 packet_info.payload_size, 0, packet_info.was_paced); in IncomingPacketFeedbackVector() 240 size_t payload_size, in IncomingPacket() argument 249 payload_size, header.ssrc, was_paced); in IncomingPacket() 255 size_t payload_size, in IncomingPacketInfo() argument 269 incoming_bitrate_.Update(payload_size, now_ms); in IncomingPacketInfo() 281 was_paced = was_paced && payload_size > PacedSender::kMinProbePacketSize; in IncomingPacketInfo() 298 probes_.push_back(Probe(send_time_ms, arrival_time_ms, payload_size)); in IncomingPacketInfo() 307 if (inter_arrival_->ComputeDeltas(timestamp, arrival_time_ms, payload_size, in IncomingPacketInfo()
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_format_vp8_unittest.cc | 108 helper_->payload_size(), in TEST_F() 138 packetizer.SetPayloadData(helper_->payload_data(), helper_->payload_size(), in TEST_F() 162 helper_->payload_size(), in TEST_F() 189 helper_->payload_size(), in TEST_F() 216 helper_->payload_size(), in TEST_F() 243 helper_->payload_size(), in TEST_F() 271 helper_->payload_data(), helper_->payload_size(), NULL); in TEST_F() 300 helper_->payload_data(), helper_->payload_size(), NULL); in TEST_F() 332 helper_->payload_size(), in TEST_F() 336 const size_t kExpectedSizes[1] = {helper_->payload_size() + 4}; in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/include/ |
D | rtp_rtcp_defines.h | 266 size_t payload_size, in PacketInfo() 272 payload_size, in PacketInfo() 279 size_t payload_size, in PacketInfo() 285 payload_size(payload_size), in PacketInfo() 300 size_t payload_size; member
|
/external/webrtc/webrtc/modules/audio_coding/test/ |
D | TestAllCodecs.cc | 62 size_t payload_size, in SendData() argument 84 memcpy(payload_data_, payload_data, payload_size); in SendData() 86 status = receiver_acm_->IncomingPacket(payload_data_, payload_size, rtp_info); in SendData() 88 payload_size_ = payload_size; in SendData() 91 total_bytes_ += payload_size; in SendData() 95 size_t TestPack::payload_size() { in payload_size() function in webrtc::TestPack 437 receive_size = channel->payload_size(); in Run()
|
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/ |
D | mkvmuxer.cc | 304 const uint64_t payload_size = in Write() local 308 if (!WriteEbmlMasterElement(writer, libwebm::kMkvCuePoint, payload_size)) in Write() 341 if (stop_position - payload_position != static_cast<int64_t>(payload_size)) in Write() 356 const uint64_t payload_size = in PayloadSize() local 360 return payload_size; in PayloadSize() 364 const uint64_t payload_size = PayloadSize(); in Size() local 365 return EbmlMasterElementSize(libwebm::kMkvCuePoint, payload_size) + in Size() 366 payload_size; in Size() 776 const uint64_t payload_size = PayloadSize(); in Write() local 778 if (!WriteEbmlMasterElement(writer, libwebm::kMkvTrackEntry, payload_size)) in Write() [all …]
|