/system/core/trusty/utils/spiproxyd/ |
D | main.c | 31 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/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 401 size_t msg_len; in echo_test() local 418 msg_len = params->msgsize; in echo_test() 420 msg_len = rand() % params->msgsize; in echo_test() 423 memset(tx_buf, i + 1, msg_len); in echo_test() 425 rc = write(echo_fd, tx_buf, msg_len); in echo_test() 426 if ((size_t)rc != msg_len) { in echo_test() 431 rc = read(echo_fd, rx_buf, msg_len); in echo_test() 437 if ((size_t)rc != msg_len) { in echo_test() 438 fprintf(stderr, "data truncated (%zu vs. %zu)\n", rc, msg_len); in echo_test() 461 size_t msg_len; in burst_write_test() local [all …]
|
/system/logging/logd/ |
D | SerializedLogEntry.h | 56 .tag = IsBinary(log_id) ? MsgToTag(msg(), msg_len()) : 0, in ToLogStatisticsElement() 59 .msg_len = msg_len(), in ToLogStatisticsElement() 75 entry.len = msg_len(); in Flush() 83 uint16_t msg_len() const { return msg_len_; } in msg_len() function
|
D | LogBufferElement.cpp | 79 return MsgToTag(msg(), msg_len()); in GetTag() 94 .msg_len = msg_len(), in ToLogStatisticsElement() 96 .total_len = static_cast<uint16_t>(element_in_list_size + msg_len()), in ToLogStatisticsElement()
|
D | LogUtils.h | 69 static inline uint32_t MsgToTag(const char* msg, uint16_t msg_len) { in MsgToTag() argument 70 if (msg_len < sizeof(android_event_header_t)) { in MsgToTag()
|
D | RecordingLogBuffer.cpp | 23 android::base::WriteFully(fd, msg.c_str(), meta.msg_len); in WriteLogMessage() 38 .msg_len = len, in RecordLogMessage()
|
D | RecordedLogMessage.h | 28 uint16_t msg_len; member
|
D | ReplayMessages.cpp | 196 meta.pid, meta.tid, msg, meta.msg_len); in Log() 199 meta.pid, meta.tid, msg, meta.msg_len); in Log() 241 meta.tid, msg, meta.msg_len); in Log() 455 if (read_position + sizeof(RecordedLogMessage) + meta->msg_len >= in main() 460 read_position += sizeof(RecordedLogMessage) + meta->msg_len; in main()
|
D | LogBufferElement.h | 47 uint16_t msg_len() const { return msg_len_; } in msg_len() function
|
D | SerializedLogBuffer.cpp | 85 entry.pid(), entry.tid(), entry.msg(), entry.msg_len()); in ClearLogsByUid() 285 CHECK_LT(entry->msg_len(), LOGGER_ENTRY_MAX_PAYLOAD + 1); in FlushTo() 286 memcpy(entry_copy, entry, sizeof(*entry) + entry->msg_len()); in FlushTo()
|
D | SerializedLogChunkTest.cpp | 50 EXPECT_EQ(sizeof(log_message), entry->msg_len()); in TEST()
|
D | LogStatistics.cpp | 55 uint16_t len = element.msg_len; in TagNameKey() 125 element.total_len = element.msg_len; in Add() 187 element.total_len = element.msg_len; in Subtract()
|
/system/core/trusty/confirmationui/ |
D | TrustyApp.cpp | 48 .msg_len = olen, in TrustyRpc() 79 if (args.msg_len > ilen) { in TrustyRpc() 84 memcpy(ibegin, shm_base_, args.msg_len); in TrustyRpc() 86 return args.msg_len; in TrustyRpc()
|
/system/core/trusty/metrics/ |
D | metrics.cpp | 86 size_t msg_len = rc; in HandleEvent() local 88 if (msg_len < sizeof(metrics_req)) { in HandleEvent()
|
/system/core/trusty/confirmationui/include/ |
D | TrustyIpc.h | 77 uint32_t msg_len; member
|
/system/chre/platform/slpi/see/include/ |
D | sns_client.h | 42 uint32_t msg_len, void *cb_data);
|
/system/nfc/src/nfa/hci/ |
D | nfa_hci_main.cc | 762 nfa_hci_cb.msg_len = 0; in nfa_hci_conn_cback() 793 pkt_len = nfa_hci_cb.msg_len; in nfa_hci_conn_cback() 1100 if ((nfa_hci_cb.msg_len + data_len) > nfa_hci_cb.max_msg_len) { in nfa_hci_assemble_msg() 1102 memcpy(&nfa_hci_cb.p_msg_data[nfa_hci_cb.msg_len], p_data, in nfa_hci_assemble_msg() 1103 (nfa_hci_cb.max_msg_len - nfa_hci_cb.msg_len)); in nfa_hci_assemble_msg() 1104 nfa_hci_cb.msg_len = nfa_hci_cb.max_msg_len; in nfa_hci_assemble_msg() 1110 ((nfa_hci_cb.msg_len + data_len) - nfa_hci_cb.max_msg_len)); in nfa_hci_assemble_msg() 1112 memcpy(&nfa_hci_cb.p_msg_data[nfa_hci_cb.msg_len], p_data, data_len); in nfa_hci_assemble_msg() 1113 nfa_hci_cb.msg_len += data_len; in nfa_hci_assemble_msg()
|
D | nfa_hci_utils.cc | 300 uint8_t instruction, uint16_t msg_len, in nfa_hciu_send_msg() argument 321 msg_len); in nfa_hciu_send_msg() 326 while ((first_pkt == true) || (msg_len != 0)) { in nfa_hciu_send_msg() 339 if (msg_len > data_len) { in nfa_hciu_send_msg() 342 data_len = msg_len; in nfa_hciu_send_msg() 359 if (msg_len >= data_len) { in nfa_hciu_send_msg() 360 msg_len -= data_len; in nfa_hciu_send_msg() 363 msg_len = 0; in nfa_hciu_send_msg()
|
/system/core/fastboot/device/ |
D | fastboot_device.cpp | 167 size_t msg_len = std::min(kMaxMessageSize, message.size()); in WriteStatus() local 177 memcpy(buf + kResponseReasonSize, message.c_str(), msg_len); in WriteStatus() 179 size_t response_len = kResponseReasonSize + msg_len; in WriteStatus()
|
/system/nfc/src/nfc/include/ |
D | rw_api.h | 177 uint16_t msg_len; /* Length of the NDEF message */ member 440 extern tNFC_STATUS RW_T1tWriteNDef(uint16_t msg_len, uint8_t* p_msg); 589 extern tNFC_STATUS RW_T2tWriteNDef(uint16_t msg_len, uint8_t* p_msg);
|
D | ndef_utils.h | 82 extern tNDEF_STATUS NDEF_MsgValidate(uint8_t* p_msg, uint32_t msg_len,
|
/system/nfc/src/nfc/tags/ |
D | rw_t2t_ndef.cc | 59 static tNFC_STATUS rw_t2t_write_ndef_first_block(uint16_t msg_len, 62 uint16_t msg_len, 275 evt_data.msg_len = p_t2t->prop_msg_len; in rw_t2t_ntf_tlv_detect_complete() 1068 tNFC_STATUS rw_t2t_write_ndef_first_block(uint16_t msg_len, bool b_update_len) { in rw_t2t_write_ndef_first_block() argument 1085 if (msg_len == 0) { in rw_t2t_write_ndef_first_block() 1093 length_field[1] = (uint8_t)(msg_len >> 8); in rw_t2t_write_ndef_first_block() 1094 length_field[2] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block() 1098 length_field[0] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block() 1165 tNFC_STATUS rw_t2t_write_ndef_next_block(uint16_t block, uint16_t msg_len, in rw_t2t_write_ndef_next_block() argument 1214 if (msg_len == 0) { in rw_t2t_write_ndef_next_block() [all …]
|
D | rw_t1t_ndef.cc | 52 uint8_t index, uint8_t msg_len); 1482 uint8_t index, uint8_t msg_len) { in rw_t1t_send_ndef_byte() argument 1492 if (p_t1t->work_offset == p_t1t->new_ndef_msg_len + msg_len) { in rw_t1t_send_ndef_byte() 2413 tNFC_STATUS RW_T1tWriteNDef(uint16_t msg_len, uint8_t* p_msg) { in RW_T1tWriteNDef() argument 2442 if (msg_len > p_t1t->max_ndef_msg_len) { in RW_T1tWriteNDef() 2450 p_t1t->new_ndef_msg_len = msg_len; in RW_T1tWriteNDef()
|
/system/core/trusty/confirmationui/fuzz/ |
D | msg_fuzzer.cpp | 118 .msg_len = static_cast<uint32_t>(size), in Msg()
|
/system/nfc/src/nfc/ndef/ |
D | ndef_utils.cc | 75 tNDEF_STATUS NDEF_MsgValidate(uint8_t* p_msg, uint32_t msg_len, in NDEF_MsgValidate() argument 78 uint8_t* p_end = p_msg + msg_len; in NDEF_MsgValidate() 85 if ((p_msg == nullptr) || (msg_len < 3)) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate() 203 payload_len + type_len + id_len > msg_len) { in NDEF_MsgValidate()
|