/system/tpm/trunks/ |
D | trunks_ftdi_spi.cc | 284 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/ |
D | att_protocol.cc | 129 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 …]
|
D | gatt_sr.cc | 240 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 …]
|
D | gatt_cl.cc | 234 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 …]
|
D | gatt_auth.cc | 49 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()
|
D | gatt_main.cc | 433 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/ |
D | packet_stream_unittest.cc | 57 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/ |
D | metrics_reporter_android.cc | 84 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()
|
D | mock_metrics_reporter.h | 46 int64_t payload_size, 63 int64_t payload_size,
|
D | metrics_reporter_android.h | 49 int64_t payload_size, 66 int64_t payload_size,
|
D | metrics_reporter_stub.h | 49 int64_t payload_size, in ReportUpdateAttemptMetrics() argument 66 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
|
D | metrics_reporter_interface.h | 115 int64_t payload_size, 163 int64_t payload_size,
|
D | metrics_reporter_omaha.h | 113 int64_t payload_size, 130 int64_t payload_size,
|
D | metrics_reporter_omaha_unittest.cc | 135 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()
|
D | update_attempter_android.cc | 134 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()
|
D | service_delegate_android_interface.h | 46 int64_t payload_size,
|
D | libcurl_http_fetcher.cc | 526 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()
|
D | binder_service_android.cc | 97 int64_t payload_size, in applyPayload() argument 108 payload_url, payload_offset, payload_size, str_headers, &error)) { in applyPayload()
|
D | sideload_main.cc | 141 int64_t payload_size, in ApplyUpdatePayload() argument 178 payload, payload_offset, payload_size, headers, nullptr)); in ApplyUpdatePayload()
|
D | metrics_reporter_omaha.cc | 218 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()
|
D | binder_service_android.h | 56 int64_t payload_size,
|
D | payload_state.cc | 590 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()
|
D | update_attempter_android.h | 65 int64_t payload_size,
|
/system/update_engine/binder_bindings/android/os/ |
D | IUpdateEngine.aidl | 26 in long payload_size, in applyPayload() argument
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 199 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()
|