Home
last modified time | relevance | path

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

12

/system/tpm/trunks/
Dtrunks_ftdi_spi.cc284 uint32_t payload_size; in SendCommandAndWait() local
285 memcpy(&payload_size, data_header + 2, sizeof(payload_size)); in SendCommandAndWait()
286 payload_size = be32toh(payload_size); in SendCommandAndWait()
290 if ((payload_size < 10) || (payload_size > MAX_RESPONSE_SIZE)) { in SendCommandAndWait()
292 LOG(ERROR) << "Bad total payload size value: " << payload_size; in SendCommandAndWait()
296 LOG(INFO) << "Total payload size " << payload_size; in SendCommandAndWait()
302 payload_size = payload_size - sizeof(data_header) - 1; in SendCommandAndWait()
304 uint8_t* payload = new uint8_t[payload_size + 1]; in SendCommandAndWait()
307 std::min(payload_size - handled_so_far, GetBurstCount()), (size_t)64); in SendCommandAndWait()
314 } while (handled_so_far != payload_size); in SendCommandAndWait()
[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_sr.cc240 if (!process_read_multi_rsp(&tcb.sr_cmd, status, p_msg, tcb.payload_size)) in gatt_sr_process_app_rsp()
484 if (p_msg->len + p_msg->offset > tcb.payload_size || in gatt_build_primary_service_rsp()
652 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req()
685 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
694 buf_len = tcb.payload_size - 2; in gatts_process_find_info()
746 tcb.payload_size = GATT_DEF_BLE_MTU_SIZE; in gatts_process_mtu_req()
748 tcb.payload_size = GATT_MAX_MTU_SIZE; in gatts_process_mtu_req()
750 tcb.payload_size = mtu; in gatts_process_mtu_req()
752 LOG(ERROR) << "MTU request PDU with MTU size " << +tcb.payload_size; in gatts_process_mtu_req()
755 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()
336 if (to_send > (tcb.payload_size - in gatt_send_prepare_write()
338 to_send = tcb.payload_size - GATT_WRITE_LONG_HDR_SIZE; in gatt_send_prepare_write()
717 if ((value_len > (tcb.payload_size - 2)) || (value_len > (len - 1))) { in gatt_process_read_by_type_rsp()
725 op_code, value_len, (tcb.payload_size - 2), (len - 1)); in gatt_process_read_by_type_rsp()
814 if (p_clcb->counter == (p_clcb->p_tcb->payload_size - 4)) { in gatt_process_read_by_type_rsp()
927 if (len == (tcb.payload_size - in gatt_process_read_rsp()
1002 if (mtu < tcb.payload_size && mtu >= GATT_DEF_BLE_MTU_SIZE) in gatt_process_mtu_rsp()
1003 tcb.payload_size = mtu; in gatt_process_mtu_rsp()
1007 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()
Dgatt_main.cc433 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback()
448 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback()
758 p_tcb->payload_size = p_cfg->mtu; in gatt_l2cif_config_ind_cback()
760 p_tcb->payload_size = L2CAP_DEFAULT_MTU; in gatt_l2cif_config_ind_cback()
/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()
82 EXPECT_EQ(static_cast<size_t>(payload_size + 1), command->GetPayloadSize()); in CheckedReceiveCommand()
83 EXPECT_EQ(payload_size, received_payload[0]); in CheckedReceiveCommand()
84 for (int i = 0; i < payload_size; ++i) in CheckedReceiveCommand()
/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
130 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportSuccessfulUpdateMetrics()
Dmock_metrics_reporter.h46 int64_t payload_size,
63 int64_t payload_size,
Dmetrics_reporter_android.h49 int64_t payload_size,
66 int64_t payload_size,
Dmetrics_reporter_stub.h49 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
66 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
Dmetrics_reporter_interface.h115 int64_t payload_size,
163 int64_t payload_size,
Dmetrics_reporter_omaha.h113 int64_t payload_size,
130 int64_t payload_size,
Dmetrics_reporter_omaha_unittest.cc135 int64_t payload_size = 100 * kNumBytesInOneMiB; in TEST_F() local
196 payload_size, in TEST_F()
208 payload_size, in TEST_F()
255 int64_t payload_size = 200 * kNumBytesInOneMiB; in TEST_F() local
332 payload_size, in TEST_F()
Dupdate_attempter_android.cc134 int64_t payload_size, in ApplyPayload() argument
172 payload.size = payload_size; in ApplyPayload()
603 size_t payload_size = in SetStatusAndNotify() local
607 .new_size_bytes = payload_size}; in SetStatusAndNotify()
699 int64_t payload_size = 0; in CollectAndReportUpdateMetricsOnUpdateFinished() local
703 payload_size += p.size; in CollectAndReportUpdateMetricsOnUpdateFinished()
719 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
757 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
Dservice_delegate_android_interface.h46 int64_t payload_size,
Dlibcurl_http_fetcher.cc526 const size_t payload_size = size * nmemb; in LibcurlWrite() local
529 if (payload_size == 0 || !IsHttpResponseSuccess()) { in LibcurlWrite()
531 << ") or no payload (" << payload_size << "), nothing to do"; in LibcurlWrite()
546 bytes_downloaded_ += payload_size; in LibcurlWrite()
549 delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
551 return payload_size; in LibcurlWrite()
Dbinder_service_android.cc97 int64_t payload_size, in applyPayload() argument
108 payload_url, payload_offset, payload_size, str_headers, &error)) { in applyPayload()
Dsideload_main.cc141 int64_t payload_size, in ApplyUpdatePayload() argument
178 payload, payload_offset, payload_size, headers, nullptr)); in ApplyUpdatePayload()
Dmetrics_reporter_omaha.cc218 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
253 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportUpdateAttemptMetrics()
362 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
369 int64_t mbs = payload_size / kNumBytesInOneMiB; in ReportSuccessfulUpdateMetrics()
Dbinder_service_android.h56 int64_t payload_size,
Dpayload_state.cc590 int64_t payload_size = GetPayloadSize(); in CollectAndReportAttemptMetrics() local
650 payload_size, in CollectAndReportAttemptMetrics()
741 int64_t payload_size = GetPayloadSize(); in CollectAndReportSuccessfulUpdateMetrics() local
751 payload_size, in CollectAndReportSuccessfulUpdateMetrics()
1381 int64_t payload_size = 0; in GetPayloadSize() local
1383 payload_size += package.size; in GetPayloadSize()
1384 return payload_size; in GetPayloadSize()
Dupdate_attempter_android.h65 int64_t payload_size,
/system/update_engine/binder_bindings/android/os/
DIUpdateEngine.aidl26 in long payload_size, in applyPayload() argument
/system/update_engine/payload_consumer/
Ddelta_performer.cc199 size_t payload_size = payload_->size; in LogProgress() local
202 if (payload_size) { in LogProgress()
203 payload_size_str = std::to_string(payload_size); in LogProgress()
207 IntRatio(total_bytes_received_, payload_size, 100)); in LogProgress()
234 size_t payload_size = payload_->size; in UpdateOverallProgress() local
236 if (payload_size) in UpdateOverallProgress()
238 static_cast<unsigned>(IntRatio(total_bytes_received_, payload_size, in UpdateOverallProgress()

12