Home
last modified time | relevance | path

Searched refs:msg_len (Results 1 – 25 of 29) sorted by relevance

12

/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c346 size_t msg_len; in echo_test() local
364 msg_len = msgsz; in echo_test()
366 msg_len = rand() % msgsz; in echo_test()
369 memset(tx_buf, i + 1, msg_len); in echo_test()
371 rc = write(echo_fd, tx_buf, msg_len); in echo_test()
372 if ((size_t)rc != msg_len) { in echo_test()
377 rc = read(echo_fd, rx_buf, msg_len); in echo_test()
383 if ((size_t)rc != msg_len) { in echo_test()
385 rc, msg_len); in echo_test()
409 size_t msg_len; in burst_write_test() local
[all …]
/system/core/trusty/utils/spiproxyd/
Dmain.c31 size_t msg_len; in handle_msg() local
39 msg_len = rc; in handle_msg()
42 rc = write(spi_dev_fd, &msg_buf, msg_len); in handle_msg()
43 if (rc < 0 || (size_t)rc != msg_len) { in handle_msg()
54 msg_len = rc; in handle_msg()
57 rc = write(trusty_dev_fd, &msg_buf, msg_len); in handle_msg()
58 if (rc < 0 || (size_t)rc != msg_len) { in handle_msg()
/system/core/logd/
DSerializedLogEntry.h56 .tag = IsBinary(log_id) ? MsgToTag(msg(), msg_len()) : 0, in ToLogStatisticsElement()
59 .msg_len = msg_len(), in ToLogStatisticsElement()
76 entry.len = msg_len(); in Flush()
84 uint16_t msg_len() const { return msg_len_; } in msg_len() function
DLogUtils.h68 static inline uint32_t MsgToTag(const char* msg, uint16_t msg_len) { in MsgToTag() argument
69 if (msg_len < sizeof(android_event_header_t)) { in MsgToTag()
DRecordingLogBuffer.cpp23 android::base::WriteFully(fd, msg.c_str(), meta.msg_len); in WriteLogMessage()
38 .msg_len = len, in RecordLogMessage()
DReplayMessages.cpp195 meta.pid, meta.tid, msg, meta.msg_len); in Log()
198 meta.pid, meta.tid, msg, meta.msg_len); in Log()
201 meta.pid, meta.tid, msg, meta.msg_len); in Log()
252 meta.tid, msg, meta.msg_len); in Log()
441 if (read_position + sizeof(RecordedLogMessage) + meta->msg_len >= in main()
446 read_position += sizeof(RecordedLogMessage) + meta->msg_len; in main()
DRecordedLogMessage.h28 uint16_t msg_len; member
DLogBufferElement.cpp98 return MsgToTag(msg(), msg_len()); in GetTag()
113 .msg_len = msg_len(), in ToLogStatisticsElement()
116 .total_len = static_cast<uint16_t>(element_in_list_size + msg_len()), in ToLogStatisticsElement()
DChattyLogBuffer.cpp52 ssize_t lenl = elem.msg_len(); in Identical()
54 ssize_t lenr = last.msg_len(); in Identical()
157 stats()->AddTotal(current_last.log_id(), current_last.msg_len()); in LogInternal()
170 stats()->AddTotal(current_last.log_id(), current_last.msg_len()); in LogInternal()
488 worst_sizes -= element.msg_len(); in Prune()
532 uint16_t len = element.msg_len(); in Prune()
DLogBufferElement.h54 uint16_t msg_len() const { return dropped_ ? 0 : msg_len_; } in msg_len() function
DLogStatistics.cpp58 uint16_t len = element.msg_len; in TagNameKey()
130 element.total_len = element.msg_len; in Add()
206 element.total_len = element.msg_len; in Subtract()
258 uint16_t size = element.msg_len; in Drop()
292 CHECK_EQ(element.msg_len, 0U); in Erase()
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc38 constexpr size_t msg_len = BT_OCTET32_LEN /* U size */ + in f4() local
46 std::array<uint8_t, msg_len> msg; in f4()
59 constexpr size_t msg_len = 1 /* Counter size */ + 4 /* keyID size */ + in calculate_mac_key_or_ltk() local
63 std::array<uint8_t, msg_len> msg; in calculate_mac_key_or_ltk()
102 const uint8_t msg_len = OCTET16_LEN /* N1 size */ + in f6() local
114 std::array<uint8_t, msg_len> msg; in f6()
128 constexpr size_t msg_len = BT_OCTET32_LEN /* U size */ + in g2() local
137 std::array<uint8_t, msg_len> msg; in g2()
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc39 constexpr size_t msg_len = OCTET32_LEN /* U size */ + OCTET32_LEN /* V size */ + 1 /* Z size */; in f4() local
44 std::array<uint8_t, msg_len> msg; in f4()
62 constexpr size_t msg_len = 1 /* Counter size */ + 4 /* keyID size */ + OCTET16_LEN /* N1 size */ + in calculate_mac_key_or_ltk() local
65 std::array<uint8_t, msg_len> msg; in calculate_mac_key_or_ltk()
101 …const uint8_t msg_len = OCTET16_LEN /* N1 size */ + OCTET16_LEN /* N2 size */ + OCTET16_LEN /* R s… in f6() local
108 std::array<uint8_t, msg_len> msg; in f6()
121 constexpr size_t msg_len = OCTET32_LEN /* U size */ + OCTET32_LEN /* V size */ in g2() local
127 std::array<uint8_t, msg_len> msg; in g2()
/system/core/fastboot/device/
Dfastboot_device.cpp117 size_t msg_len = std::min(kMaxMessageSize, message.size()); in WriteStatus() local
127 memcpy(buf + kResponseReasonSize, message.c_str(), msg_len); in WriteStatus()
129 size_t response_len = kResponseReasonSize + msg_len; in WriteStatus()
/system/chre/platform/slpi/see/include/
Dsns_client.h42 uint32_t msg_len, void *cb_data);
/system/nfc/src/nfa/hci/
Dnfa_hci_main.cc770 nfa_hci_cb.msg_len = 0; in nfa_hci_conn_cback()
801 pkt_len = nfa_hci_cb.msg_len; in nfa_hci_conn_cback()
1109 if ((nfa_hci_cb.msg_len + data_len) > nfa_hci_cb.max_msg_len) { in nfa_hci_assemble_msg()
1111 memcpy(&nfa_hci_cb.p_msg_data[nfa_hci_cb.msg_len], p_data, in nfa_hci_assemble_msg()
1112 (nfa_hci_cb.max_msg_len - nfa_hci_cb.msg_len)); in nfa_hci_assemble_msg()
1113 nfa_hci_cb.msg_len = nfa_hci_cb.max_msg_len; in nfa_hci_assemble_msg()
1119 ((nfa_hci_cb.msg_len + data_len) - nfa_hci_cb.max_msg_len)); in nfa_hci_assemble_msg()
1121 memcpy(&nfa_hci_cb.p_msg_data[nfa_hci_cb.msg_len], p_data, data_len); in nfa_hci_assemble_msg()
1122 nfa_hci_cb.msg_len += data_len; in nfa_hci_assemble_msg()
Dnfa_hci_utils.cc302 uint8_t instruction, uint16_t msg_len, in nfa_hciu_send_msg() argument
323 msg_len); in nfa_hciu_send_msg()
328 while ((first_pkt == true) || (msg_len != 0)) { in nfa_hciu_send_msg()
341 if (msg_len > data_len) { in nfa_hciu_send_msg()
344 data_len = msg_len; in nfa_hciu_send_msg()
361 if (msg_len >= data_len) { in nfa_hciu_send_msg()
362 msg_len -= data_len; in nfa_hciu_send_msg()
365 msg_len = 0; in nfa_hciu_send_msg()
/system/core/adb/pairing_auth/include/adb/pairing/
Dpairing_auth.h119 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len)
/system/core/adb/pairing_auth/
Dpairing_auth.cpp237 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len) { in pairing_auth_init_cipher() argument
240 CHECK_GT(msg_len, 0U); in pairing_auth_init_cipher()
242 std::vector<uint8_t> p(their_msg, their_msg + msg_len); in pairing_auth_init_cipher()
/system/nfc/src/nfc/include/
Drw_api.h174 uint16_t msg_len; /* Length of the NDEF message */ member
437 extern tNFC_STATUS RW_T1tWriteNDef(uint16_t msg_len, uint8_t* p_msg);
586 extern tNFC_STATUS RW_T2tWriteNDef(uint16_t msg_len, uint8_t* p_msg);
Dndef_utils.h82 extern tNDEF_STATUS NDEF_MsgValidate(uint8_t* p_msg, uint32_t msg_len,
/system/nfc/src/nfc/tags/
Drw_t2t_ndef.cc64 static tNFC_STATUS rw_t2t_write_ndef_first_block(uint16_t msg_len,
67 uint16_t msg_len,
280 evt_data.msg_len = p_t2t->prop_msg_len; in rw_t2t_ntf_tlv_detect_complete()
1105 tNFC_STATUS rw_t2t_write_ndef_first_block(uint16_t msg_len, bool b_update_len) { in rw_t2t_write_ndef_first_block() argument
1122 if (msg_len == 0) { in rw_t2t_write_ndef_first_block()
1130 length_field[1] = (uint8_t)(msg_len >> 8); in rw_t2t_write_ndef_first_block()
1131 length_field[2] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block()
1135 length_field[0] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block()
1202 tNFC_STATUS rw_t2t_write_ndef_next_block(uint16_t block, uint16_t msg_len, in rw_t2t_write_ndef_next_block() argument
1251 if (msg_len == 0) { in rw_t2t_write_ndef_next_block()
[all …]
/system/nfc/src/nfc/ndef/
Dndef_utils.cc74 tNDEF_STATUS NDEF_MsgValidate(uint8_t* p_msg, uint32_t msg_len, in NDEF_MsgValidate() argument
77 uint8_t* p_end = p_msg + msg_len; in NDEF_MsgValidate()
84 if ((p_msg == nullptr) || (msg_len < 3)) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate()
202 payload_len + type_len + id_len > msg_len) { in NDEF_MsgValidate()
/system/bt/stack/gatt/
Dgatt_main.cc855 uint16_t msg_len = p_buf->len - 1; in gatt_data_process() local
875 gatt_server_handle_client_req(tcb, op_code, msg_len, p); in gatt_data_process()
877 gatt_client_handle_server_rsp(tcb, op_code, msg_len, p); in gatt_data_process()
Dgatt_sr.cc652 uint16_t msg_len = in gatts_process_primary_service_req() local
654 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_primary_service_req()
815 size_t msg_len = sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_by_type_req() local
816 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_read_by_type_req()

12