/system/bt/vendor_libs/test_vendor_lib/src/ |
D | event_packet.cc | 32 const std::vector<uint8_t>& payload) in EventPacket() argument 34 Encode({event_code, static_cast<uint8_t>(payload.size())}, payload); in EventPacket() 48 std::vector<uint8_t> payload; in CreateCommandCompleteEvent() local 49 payload.reserve(payload_size); in CreateCommandCompleteEvent() 50 payload.push_back(num_hci_command_packets); in CreateCommandCompleteEvent() 51 payload.push_back(command_opcode); in CreateCommandCompleteEvent() 52 payload.push_back(command_opcode >> 8); in CreateCommandCompleteEvent() 53 VECTOR_COPY_TO_END(event_return_parameters, payload); in CreateCommandCompleteEvent() 56 new EventPacket(HCI_COMMAND_COMPLETE_EVT, payload)); in CreateCommandCompleteEvent() 65 std::vector<uint8_t> payload; in CreateCommandStatusEvent() local [all …]
|
D | packet.cc | 34 const std::vector<uint8_t>& payload) { in Encode() argument 35 if (header.back() != payload.size()) in Encode() 38 payload_ = payload; in Encode()
|
D | packet_stream.cc | 34 std::vector<uint8_t> payload; in ReceiveCommand() local 41 if (!ReceiveAll(payload, header.back(), fd)) { in ReceiveCommand() 47 if (!command->Encode(header, payload)) { in ReceiveCommand()
|
/system/connectivity/shill/net/ |
D | attribute_list_unittest.cc | 50 const std::string& payload) { in MakeNetlinkAttribute() argument 54 data.Append(ByteString(payload, false)); in MakeNetlinkAttribute() 60 const std::string& payload) { in MakePaddedNetlinkAttribute() argument 61 ByteString data(MakeNetlinkAttribute(len, type, payload)); in MakePaddedNetlinkAttribute() 68 MATCHER_P(PayloadIs, payload, "") { 69 return arg.Equals(ByteString(std::string(payload), false)); 81 ByteString payload; in TEST_F() local 82 payload.Append(MakePaddedNetlinkAttribute( in TEST_F() 85 ASSERT_EQ(kLength1, payload.GetLength()); in TEST_F() 86 payload.Append(MakePaddedNetlinkAttribute(kHeaderLength + 3, kType2, "123")); in TEST_F() [all …]
|
D | attribute_list.cc | 87 const ByteString& payload, size_t offset, in IterateAttributes() argument 89 const unsigned char* ptr = payload.GetConstData() + NLA_ALIGN(offset); in IterateAttributes() 90 const unsigned char* end = payload.GetConstData() + payload.GetLength(); in IterateAttributes() 99 << (ptr - payload.GetConstData()) << "."; in IterateAttributes() 117 bool AttributeList::Decode(const ByteString& payload, in Decode() argument 121 payload, offset, base::Bind(&AttributeList::CreateAndInitAttribute, in Decode()
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 105 brillo::Blob payload; in AddSignatureBlobToPayload() local 106 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload() 112 memcpy(payload.data() + manifest_offset, &metadata_signature_size_be, in AddSignatureBlobToPayload() 116 payload.erase(payload.begin() + metadata_size, in AddSignatureBlobToPayload() 117 payload.begin() + metadata_size + metadata_signature_size); in AddSignatureBlobToPayload() 118 payload.insert(payload.begin() + metadata_size, in AddSignatureBlobToPayload() 142 payload.size() - metadata_size - metadata_signature_size, in AddSignatureBlobToPayload() 151 payload.erase(payload.begin() + manifest_offset, in AddSignatureBlobToPayload() 152 payload.begin() + metadata_size); in AddSignatureBlobToPayload() 153 payload.insert(payload.begin() + manifest_offset, in AddSignatureBlobToPayload() [all …]
|
D | payload_signer_unittest.cc | 126 PayloadFile payload; in DoWriteAndLoadPayloadTest() local 127 payload.Init(config); in DoWriteAndLoadPayloadTest() 133 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in DoWriteAndLoadPayloadTest() 215 PayloadFile payload; in TEST_F() local 216 EXPECT_TRUE(payload.Init(config)); in TEST_F() 219 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in TEST_F() 224 EXPECT_TRUE(payload.WritePayload( in TEST_F() 240 PayloadFile payload; in TEST_F() local 241 EXPECT_TRUE(payload.Init(config)); in TEST_F() 243 EXPECT_TRUE(payload.WritePayload( in TEST_F()
|
D | delta_diff_generator.cc | 65 PayloadFile payload; in GenerateUpdatePayloadFile() local 66 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile() 125 TEST_AND_RETURN_FALSE(payload.AddPartition(old_part, new_part, aops)); in GenerateUpdatePayloadFile() 131 TEST_AND_RETURN_FALSE(payload.WritePayload(output_path, temp_file_path, in GenerateUpdatePayloadFile()
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 151 buffer.payload.type = EVENT_TYPE_INT; in BM_pmsg_short() 153 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 161 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 206 android_log_event_int_t payload; in BM_pmsg_short_aligned() member 226 buffer->payload.header.tag = 0; in BM_pmsg_short_aligned() 227 buffer->payload.payload.type = EVENT_TYPE_INT; in BM_pmsg_short_aligned() 229 buffer->payload.payload.data = htole32(snapshot); in BM_pmsg_short_aligned() 234 buffer->payload.payload.data = htole32(snapshot); in BM_pmsg_short_aligned() 282 android_log_event_int_t payload; in BM_pmsg_short_unaligned1() member 302 buffer->payload.header.tag = 0; in BM_pmsg_short_unaligned1() [all …]
|
/system/core/include/log/ |
D | logd.h | 42 int __android_log_bwrite(int32_t tag, const void *payload, size_t len); 43 int __android_log_btwrite(int32_t tag, char type, const void *payload, 45 int __android_log_bswrite(int32_t tag, const char *payload); 47 int __android_log_security_bwrite(int32_t tag, const void *payload, size_t len); 48 int __android_log_security_bswrite(int32_t tag, const char *payload);
|
/system/connectivity/shill/ |
D | arp_client.cc | 118 ByteString payload(kMaxArpPacketLength); in ReceivePacket() local 124 payload.GetData(), in ReceivePacket() 125 payload.GetLength(), in ReceivePacket() 134 payload.Resize(result); in ReceivePacket() 135 if (!packet->Parse(payload)) { in ReceivePacket() 152 ByteString payload; in TransmitRequest() local 153 if (!packet.FormatRequest(&payload)) { in TransmitRequest() 177 payload.GetConstData(), in TransmitRequest() 178 payload.GetLength(), in TransmitRequest() 182 const int expected_result = static_cast<int>(payload.GetLength()); in TransmitRequest() [all …]
|
D | eap_listener.cc | 102 } payload; in ReceiveRequest() local 107 socket_, &payload, sizeof(payload), 0, in ReceiveRequest() 116 if (result != sizeof(payload)) { in ReceiveRequest() 121 if (payload.onex_header.version < eap_protocol::kIeee8021xEapolVersion1 || in ReceiveRequest() 122 payload.onex_header.type != eap_protocol::kIIeee8021xTypeEapPacket || in ReceiveRequest() 123 payload.eap_header.code != eap_protocol::kEapCodeRequest) { in ReceiveRequest()
|
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 107 gatekeeper_error_t GateKeeperMessage::Deserialize(const uint8_t *payload, const uint8_t *end) { in Deserialize() argument 108 if (payload + sizeof(uint32_t) > end) return ERROR_INVALID; in Deserialize() 109 const serial_header_t *header = reinterpret_cast<const serial_header_t *>(payload); in Deserialize() 111 if (payload == end) return ERROR_INVALID; in Deserialize() 113 error = nonErrorDeserialize(payload + sizeof(*header), end); in Deserialize() 118 if (payload + sizeof(serial_header_t) < end) { in Deserialize() 119 memcpy(&retry_timeout, payload + sizeof(serial_header_t), sizeof(retry_timeout)); in Deserialize() 172 gatekeeper_error_t VerifyRequest::nonErrorDeserialize(const uint8_t *payload, const uint8_t *end) { in nonErrorDeserialize() argument 184 memcpy(&challenge, payload, sizeof(challenge)); in nonErrorDeserialize() 185 payload += sizeof(challenge); in nonErrorDeserialize() [all …]
|
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper_messages.h | 93 uint32_t Serialize(uint8_t *payload, const uint8_t *end) const; 98 gatekeeper_error_t Deserialize(const uint8_t *payload, const uint8_t *end); 148 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 164 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 178 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 205 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end);
|
/system/core/liblog/ |
D | logger_write.c | 494 const void *payload, size_t len) in __android_log_bwrite() argument 500 vec[1].iov_base = (void*)payload; in __android_log_bwrite() 507 const void *payload, in __android_log_security_bwrite() argument 514 vec[1].iov_base = (void*)payload; in __android_log_security_bwrite() 526 const void *payload, size_t len) in __android_log_btwrite() argument 534 vec[2].iov_base = (void*)payload; in __android_log_btwrite() 544 LIBLOG_ABI_PUBLIC int __android_log_bswrite(int32_t tag, const char *payload) in __android_log_bswrite() argument 548 uint32_t len = strlen(payload); in __android_log_bswrite() 556 vec[3].iov_base = (void*)payload; in __android_log_bswrite() 567 const char *payload) in __android_log_security_bswrite() argument [all …]
|
D | logd_writer.c | 175 buffer.payload.type = EVENT_TYPE_INT; in logdWrite() 176 buffer.payload.data = htole32(snapshot); in logdWrite() 195 buffer.payload.type = EVENT_TYPE_INT; in logdWrite() 196 buffer.payload.data = htole32(snapshot); in logdWrite()
|
/system/tpm/trunks/ |
D | trunks_ftdi_spi.cc | 302 uint8_t *payload = new uint8_t[payload_size + 1]; in SendCommandAndWait() local 310 payload + handled_so_far); in SendCommandAndWait() 319 delete[] payload; in SendCommandAndWait() 324 FtdiReadReg(TPM_DATA_FIFO_REG, sizeof(uint8_t), payload + payload_size); in SendCommandAndWait() 330 delete[] payload; in SendCommandAndWait() 335 std::string(reinterpret_cast<char *>(payload), payload_size + 1); in SendCommandAndWait() 340 delete[] payload; in SendCommandAndWait()
|
/system/extras/tests/net_test/ |
D | packets.py | 106 def ACK(version, srcaddr, dstaddr, packet, payload=""): argument 110 ack_delta = was_syn_or_fin + len(original.payload) 111 desc = "TCP data" if payload else "TCP ACK" 112 flags = TCP_ACK | TCP_PSH if payload else TCP_ACK 118 payload) 124 ack_delta = was_syn_or_fin + len(original.payload) 158 udp.payload = str(udp.payload)[:1280-40-8]
|
/system/extras/ext4_utils/ |
D | key_control.cpp | 24 const void *payload, in add_key() argument 28 return syscall(__NR_add_key, type, description, payload, plen, ringid); in add_key()
|
/system/connectivity/dhcp_client/ |
D | dhcpv4.cc | 226 ByteString payload; in MakeRawPacket() local 227 if (!message.Serialize(&payload)) { in MakeRawPacket() 232 const size_t payload_len = payload.GetLength(); in MakeRawPacket() 239 if (!payload.CopyData(payload_len, buffer + header_len)) { in MakeRawPacket() 246 htons(static_cast<uint16_t>(sizeof(*udp) + payload.GetLength())); in MakeRawPacket() 278 ip->tot_len = htons(static_cast<uint16_t>(header_len+ payload.GetLength())); in MakeRawPacket()
|
/system/core/crash_reporter/ |
D | crash_sender | 262 local payload="$(get_key_value "$1" "payload")" 263 if [ ! -r "${payload}" ]; then 264 lecho "Missing payload: ${payload}" 268 local kind="$(get_extension "${payload}")" 321 local report_payload="$(get_key_value "${meta_path}" "payload")"
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | packet_stream_unittest.cc | 57 void CheckedReceiveCommand(const char* payload, uint16_t opcode) { in CheckedReceiveCommand() argument 58 uint8_t payload_size = strlen(payload); in CheckedReceiveCommand() 68 packet.push_back(payload[i]); in CheckedReceiveCommand()
|
/system/core/include/private/ |
D | android_logger.h | 61 android_event_int_t payload; member 73 android_event_long_t payload; member
|
/system/connectivity/shill/shims/ |
D | netfilter_queue_processor.cc | 83 unsigned char* payload; in ParseNetfilterData() local 84 int payload_len = nfq_get_payload(netfilter_data, &payload); in ParseNetfilterData() 86 is_udp_ = ParsePayloadUDPData(payload, payload_len); in ParseNetfilterData() 93 const unsigned char* payload, size_t payload_len) { in ParsePayloadUDPData() argument 100 memcpy(&ip, payload, sizeof(ip)); in ParsePayloadUDPData() 114 memcpy(&udp, payload + iphdr_len, sizeof(udp)); in ParsePayloadUDPData()
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper.cpp | 178 const uint8_t *payload = msg->payload; in Send() local 180 return response->Deserialize(payload, payload + response_size); in Send()
|