Home
last modified time | relevance | path

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

12

/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_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_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()
817 if (p_clcb->counter == (p_clcb->p_tcb->payload_size - 4)) { in gatt_process_read_by_type_rsp()
930 if (len == (tcb.payload_size - in gatt_process_read_rsp()
1005 if (mtu < tcb.payload_size && mtu >= GATT_DEF_BLE_MTU_SIZE) in gatt_process_mtu_rsp()
1006 tcb.payload_size = mtu; in gatt_process_mtu_rsp()
1010 tcb.payload_size); in gatt_process_mtu_rsp()
[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/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/core/fs_mgr/libdm/
Ddm.cpp155 uint32_t payload_size = sizeof(struct dm_target_versions); in GetAvailableTargets() local
156 payload_size += DM_MAX_TYPE_NAME; in GetAvailableTargets()
158 payload_size = DM_ALIGN(payload_size); in GetAvailableTargets()
159 payload_size *= kMaxPossibleDmTargets; in GetAvailableTargets()
161 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableTargets()
218 uint32_t payload_size = sizeof(struct dm_name_list); in GetAvailableDevices() local
220 payload_size += DM_NAME_LEN; in GetAvailableDevices()
222 payload_size = DM_ALIGN(payload_size); in GetAvailableDevices()
223 payload_size *= kMaxPossibleDmDevices; in GetAvailableDevices()
224 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableDevices()
/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Dcommand_packet_view.cc37 uint8_t payload_size = (begin() + sizeof(uint16_t)).extract<uint8_t>(); in GetPayload() local
38 CHECK(static_cast<uint8_t>(size() - sizeof(uint16_t) - sizeof(uint8_t)) == payload_size) in GetPayload()
39 << "Malformed Command packet payload_size " << payload_size << " + 2 != " << size(); in GetPayload()
Dcommand_packet_builder.cc36 uint8_t payload_size = static_cast<uint8_t>(payload_->size()); in Serialize() local
38 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
40 insert(payload_size, it); in Serialize()
Dsco_packet_view.cc41 uint8_t payload_size = (begin() + sizeof(uint16_t)).extract<uint8_t>(); in GetPayload() local
42 CHECK(static_cast<uint8_t>(size() - sizeof(uint16_t) - sizeof(uint8_t)) == payload_size) in GetPayload()
43 << "Malformed SCO packet payload_size " << payload_size << " + 4 != " << size(); in GetPayload()
Dsco_packet_builder.cc37 uint8_t payload_size = payload_->size(); in Serialize() local
39 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
41 insert(payload_size, it); in Serialize()
Dacl_packet_view.cc53 uint16_t payload_size = (begin() + sizeof(uint16_t)).extract<uint16_t>(); in GetPayload() local
54 CHECK(static_cast<uint16_t>(size() - 2 * sizeof(uint16_t)) == payload_size) in GetPayload()
55 << "Malformed ACL packet payload_size " << payload_size << " + 4 != " << size(); in GetPayload()
Dacl_packet_builder.cc49 uint16_t payload_size = payload_->size(); in Serialize() local
51 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
53 insert(payload_size, it); in Serialize()
/system/bt/vendor_libs/test_vendor_lib/packets/
Dcounted_builder.cc25 size_t payload_size = sizeof(uint8_t); in size() local
27 payload_size += sub_builders_[i]->size(); in size()
29 return payload_size; in size()
/system/update_engine/
Dmetrics_reporter_android.cc84 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
95 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportUpdateAttemptMetrics()
119 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
131 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportSuccessfulUpdateMetrics()
Dmock_metrics_reporter.h51 int64_t payload_size,
68 int64_t payload_size,
Dmetrics_reporter_interface.h130 int64_t payload_size,
179 int64_t payload_size,
Dmetrics_reporter_stub.h54 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
71 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
Dmetrics_reporter_android.h54 int64_t payload_size,
71 int64_t payload_size,
Dmetrics_reporter_omaha.h131 int64_t payload_size,
148 int64_t payload_size,
Dupdate_attempter_android.cc134 int64_t payload_size, in ApplyPayload() argument
172 payload.size = payload_size; in ApplyPayload()
610 size_t payload_size = in SetStatusAndNotify() local
614 .new_size_bytes = payload_size}; in SetStatusAndNotify()
686 int64_t payload_size = 0; in CollectAndReportUpdateMetricsOnUpdateFinished() local
690 payload_size += p.size; in CollectAndReportUpdateMetricsOnUpdateFinished()
708 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
746 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
Dservice_delegate_android_interface.h46 int64_t payload_size,
Dlibcurl_http_fetcher.cc521 const size_t payload_size = size * nmemb; in LibcurlWrite() local
524 if (payload_size == 0 || !IsHttpResponseSuccess()) { in LibcurlWrite()
526 << ") or no payload (" << payload_size << "), nothing to do"; in LibcurlWrite()
542 bytes_downloaded_ += payload_size; in LibcurlWrite()
545 auto should_terminate = !delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
555 return payload_size; in LibcurlWrite()
/system/core/trusty/storage/proxy/
Drpmb.c134 size_t payload_size) { in send_virt_rpmb_req() argument
137 uint16_t cmd_count = payload_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
146 rc = write(rpmb_fd, payload, payload_size); in send_virt_rpmb_req()
196 size_t payload_size = req->reliable_write_size + req->write_size; in rpmb_send() local
197 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()
/system/bt/vendor_libs/test_vendor_lib/packets/hci/test/
Devent_builder_test.cc54 uint8_t payload_size = payload.size(); in TEST() local
55 uint8_t event_size = payload_size + sizeof(Address) + sizeof(rssi) + 5; in TEST()
69 payload_size, // Length of the data in TEST()
/system/update_engine/binder_bindings/android/os/
DIUpdateEngine.aidl26 in long payload_size, in applyPayload() argument

12