Home
last modified time | relevance | path

Searched refs:payload_size (Results 1 – 25 of 38) sorted by relevance

12

/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc57 uint8_t payload_size = strlen(payload); in CheckedReceiveCommand() local
63 packet.push_back(payload_size); in CheckedReceiveCommand()
66 for (int i = 0; i < payload_size; ++i) packet.push_back(payload[i]); in CheckedReceiveCommand()
81 EXPECT_EQ(static_cast<size_t>(payload_size + 1), command->GetPayloadSize()); in CheckedReceiveCommand()
82 EXPECT_EQ(payload_size, received_payload[0]); in CheckedReceiveCommand()
83 for (int i = 0; i < payload_size; ++i) EXPECT_EQ(packet[4 + i], received_payload[i + 1]); in CheckedReceiveCommand()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal.cc248 ssize_t payload_size; in incoming_packet_received() local
250payload_size = recv(sock_fd_, buf + kH4HeaderSize + kHciEvtHeaderSize, hci_evt_parameter_total_len… in incoming_packet_received()
251 ASSERT_LOG(payload_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
253 payload_size == hci_evt_parameter_total_length, in incoming_packet_received()
255 payload_size, in incoming_packet_received()
259 …eivedHciPacket.assign(buf + kH4HeaderSize, buf + kH4HeaderSize + kHciEvtHeaderSize + payload_size); in incoming_packet_received()
277 int payload_size; in incoming_packet_received() local
278 …RUN_NO_INTR(payload_size = recv(sock_fd_, buf + kH4HeaderSize + kHciAclHeaderSize, hci_acl_data_to… in incoming_packet_received()
279 ASSERT_LOG(payload_size != -1, "Can't receive from socket: %s", strerror(errno)); in incoming_packet_received()
281 payload_size == hci_acl_data_total_length, in incoming_packet_received()
[all …]
Dhci_hal_host_rootcanal_test.cc187 HciPacket make_sample_hci_acl_pkt(uint8_t payload_size) { in make_sample_hci_acl_pkt() argument
189 pkt.assign(2 + 2 + payload_size, 0x01); in make_sample_hci_acl_pkt()
190 pkt[2] = payload_size; in make_sample_hci_acl_pkt()
194 HciPacket make_sample_hci_sco_pkt(uint8_t payload_size) { in make_sample_hci_sco_pkt() argument
196 pkt.assign(3 + payload_size, 0x01); in make_sample_hci_sco_pkt()
197 pkt[2] = payload_size; in make_sample_hci_sco_pkt()
209 HciPacket make_sample_h4_acl_pkt(uint8_t payload_size) { in make_sample_h4_acl_pkt() argument
211 pkt.assign(1 + 2 + 2 + payload_size, 0x01); in make_sample_h4_acl_pkt()
213 pkt[3] = payload_size; in make_sample_h4_acl_pkt()
218 HciPacket make_sample_h4_sco_pkt(uint8_t payload_size) { in make_sample_h4_sco_pkt() argument
[all …]
/system/bt/stack/gatt/
Datt_protocol.cc129 const size_t payload_size = in attp_build_browse_cmd() local
132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
156 BT_HDR* attp_build_read_by_type_value_cmd(uint16_t payload_size, in attp_build_read_by_type_value_cmd() argument
161 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_read_by_type_value_cmd()
173 if (p_value_type->value_len + p_buf->len > payload_size) in attp_build_read_by_type_value_cmd()
174 len = payload_size - p_buf->len; in attp_build_read_by_type_value_cmd()
191 BT_HDR* attp_build_read_multi_cmd(uint16_t payload_size, uint16_t num_handle, in attp_build_read_multi_cmd() argument
203 for (i = 0; i < num_handle && p_buf->len + 2 <= payload_size; i++) { in attp_build_read_multi_cmd()
272 BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, in attp_build_value_cmd() argument
277 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_value_cmd()
[all …]
Dgatt_cl.cc234 if (attr.len <= (tcb.payload_size - GATT_HDR_SIZE)) { in gatt_act_write()
335 if (to_send > (tcb.payload_size - in gatt_send_prepare_write()
337 to_send = tcb.payload_size - GATT_WRITE_LONG_HDR_SIZE; in gatt_send_prepare_write()
720 if ((value_len > (tcb.payload_size - 2)) || (value_len > (len - 1))) { in gatt_process_read_by_type_rsp()
728 op_code, value_len, (tcb.payload_size - 2), (len - 1)); in gatt_process_read_by_type_rsp()
811 if (p_clcb->counter == (p_clcb->p_tcb->payload_size - 4)) { in gatt_process_read_by_type_rsp()
918 if (tcb.payload_size == p_clcb->read_req_current_mtu) { in gatt_process_read_rsp()
919 packet_is_full = (len == (tcb.payload_size - 1)); in gatt_process_read_rsp()
922 len == (tcb.payload_size - 1)); in gatt_process_read_rsp()
923 p_clcb->read_req_current_mtu = tcb.payload_size; in gatt_process_read_rsp()
[all …]
Dgatt_sr.cc241 if (!process_read_multi_rsp(&tcb.sr_cmd, status, p_msg, tcb.payload_size)) in gatt_sr_process_app_rsp()
485 if (p_msg->len + p_msg->offset > tcb.payload_size || in gatt_build_primary_service_rsp()
653 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req()
686 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
695 buf_len = tcb.payload_size - 2; in gatts_process_find_info()
747 tcb.payload_size = GATT_DEF_BLE_MTU_SIZE; in gatts_process_mtu_req()
749 tcb.payload_size = GATT_MAX_MTU_SIZE; in gatts_process_mtu_req()
751 tcb.payload_size = mtu; in gatts_process_mtu_req()
753 LOG(INFO) << "MTU request PDU with MTU size " << +tcb.payload_size; in gatts_process_mtu_req()
756 tcb.payload_size); in gatts_process_mtu_req()
[all …]
Dgatt_auth.cc49 uint16_t payload_size = p_clcb->p_tcb->payload_size; in gatt_sign_data() local
66 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) in gatt_sign_data()
67 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3; in gatt_sign_data()
/system/update_engine/
Dmetrics_reporter_android.cc57 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
60 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportUpdateAttemptMetrics()
88 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
95 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportSuccessfulUpdateMetrics()
Dservice_delegate_android_interface.h59 int64_t payload_size,
66 int64_t payload_size,
Dupdate_attempter_android.cc173 int64_t payload_size, in ApplyPayload() argument
200 payload.size = payload_size; in ApplyPayload()
317 int64_t payload_size, in ApplyPayload() argument
324 payload_url, payload_offset, payload_size, key_value_pair_headers, error); in ApplyPayload()
709 size_t payload_size = in SetStatusAndNotify() local
713 .new_size_bytes = payload_size}; in SetStatusAndNotify()
790 int64_t payload_size = 0; in CollectAndReportUpdateMetricsOnUpdateFinished() local
794 payload_size += p.size; in CollectAndReportUpdateMetricsOnUpdateFinished()
812 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
841 if (total_bytes_downloaded >= payload_size) { in CollectAndReportUpdateMetricsOnUpdateFinished()
[all …]
Dmock_metrics_reporter.h51 int64_t payload_size,
68 int64_t payload_size,
Dmetrics_reporter_android.h52 int64_t payload_size,
69 int64_t payload_size,
Dmetrics_reporter_stub.h52 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
69 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
Dmetrics_reporter_interface.h128 int64_t payload_size,
177 int64_t payload_size,
Dbinder_service_android.h54 int64_t payload_size,
59 int64_t payload_size,
Dbinder_service_android.cc119 int64_t payload_size, in applyPayload() argument
126 payload_url, payload_offset, payload_size, str_headers, &error)) { in applyPayload()
135 int64_t payload_size, in applyPayloadFd() argument
141 pfd.get(), payload_offset, payload_size, str_headers, &error)) { in applyPayloadFd()
Dmetrics_reporter_omaha.h129 int64_t payload_size,
146 int64_t payload_size,
Dsideload_main.cc125 int64_t payload_size, in ApplyUpdatePayload() argument
162 payload, payload_offset, payload_size, headers, nullptr)); in ApplyUpdatePayload()
Dupdate_attempter_android.h69 int64_t payload_size,
74 int64_t payload_size,
Dlibcurl_http_fetcher.cc598 const size_t payload_size = size * nmemb; in LibcurlWrite() local
601 if (payload_size == 0 || !IsHttpResponseSuccess()) { in LibcurlWrite()
603 << ") or no payload (" << payload_size << "), nothing to do"; in LibcurlWrite()
619 bytes_downloaded_ += payload_size; in LibcurlWrite()
622 auto should_terminate = !delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
632 return payload_size; in LibcurlWrite()
Dmetrics_reporter_omaha_unittest.cc200 int64_t payload_size = 100 * kNumBytesInOneMiB; in TEST_F() local
260 payload_size, in TEST_F()
272 payload_size, in TEST_F()
319 int64_t payload_size = 200 * kNumBytesInOneMiB; in TEST_F() local
405 payload_size, in TEST_F()
/system/bt/gd/hci/acl_manager/
Dassembler.h77 auto payload_size = payload.size(); in on_incoming_packet() local
84 if (remaining_sdu_continuation_packet_size_ < payload_size) { in on_incoming_packet()
91 remaining_sdu_continuation_packet_size_ -= payload_size; in on_incoming_packet()
105 …remaining_sdu_continuation_packet_size_ = l2cap_pdu_size - (payload_size - kL2capBasicFrameHeaderS… in on_incoming_packet()
/system/update_engine/binder_bindings/android/os/
DIUpdateEngine.aidl27 in long payload_size, in applyPayload() argument
32 in long payload_size, in applyPayloadFd() argument
/system/core/fs_mgr/libdm/
Ddm.cpp280 uint32_t payload_size = sizeof(struct dm_target_versions); in GetAvailableTargets() local
281 payload_size += DM_MAX_TYPE_NAME; in GetAvailableTargets()
283 payload_size = DM_ALIGN(payload_size); in GetAvailableTargets()
284 payload_size *= kMaxPossibleDmTargets; in GetAvailableTargets()
286 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableTargets()
357 uint32_t payload_size = sizeof(struct dm_name_list); in GetAvailableDevices() local
359 payload_size += DM_NAME_LEN; in GetAvailableDevices()
361 payload_size = DM_ALIGN(payload_size); in GetAvailableDevices()
362 payload_size *= kMaxPossibleDmDevices; in GetAvailableDevices()
363 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableDevices()
/system/core/trusty/storage/proxy/
Drpmb.c247 size_t payload_size) { in send_virt_rpmb_req() argument
250 uint16_t cmd_count = payload_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
259 rc = write(rpmb_fd, payload, payload_size); in send_virt_rpmb_req()
316 size_t payload_size = req->reliable_write_size + req->write_size; in rpmb_send() local
317 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()

12