/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 | 351 size_t msg_len; in echo_test() local 369 msg_len = msgsz; in echo_test() 371 msg_len = rand() % msgsz; in echo_test() 374 memset(tx_buf, i + 1, msg_len); in echo_test() 376 rc = write(echo_fd, tx_buf, msg_len); in echo_test() 377 if ((size_t)rc != msg_len) { in echo_test() 382 rc = read(echo_fd, rx_buf, msg_len); in echo_test() 388 if ((size_t)rc != msg_len) { in echo_test() 390 rc, msg_len); in echo_test() 414 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() 76 entry.len = msg_len(); in Flush() 84 uint16_t msg_len() const { return msg_len_; } in msg_len() function
|
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 | 206 meta.pid, meta.tid, msg, meta.msg_len); in Log() 209 meta.pid, meta.tid, msg, meta.msg_len); in Log() 212 meta.pid, meta.tid, msg, meta.msg_len); in Log() 263 meta.tid, msg, meta.msg_len); in Log() 477 if (read_position + sizeof(RecordedLogMessage) + meta->msg_len >= in main() 482 read_position += sizeof(RecordedLogMessage) + meta->msg_len; in main()
|
D | LogBufferElement.cpp | 98 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()
|
D | ChattyLogBuffer.cpp | 52 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() 486 worst_sizes -= element.msg_len(); in Prune() 530 uint16_t len = element.msg_len(); in Prune()
|
D | LogBufferElement.h | 54 uint16_t msg_len() const { return dropped_ ? 0 : 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()
|
/system/core/trusty/metrics/ |
D | metrics.cpp | 87 size_t msg_len = rc; in HandleEvent() local 89 if (msg_len < sizeof(metrics_req)) { in HandleEvent() 98 if (msg_len < offset + sizeof(metrics_report_crash_req)) { in HandleEvent() 104 if (msg_len < offset + crash_args->app_id_len) { in HandleEvent()
|
/system/bt/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 38 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/ |
D | crypto_toolbox.cc | 39 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/trusty/confirmationui/ |
D | TrustyApp.cpp | 52 .msg_len = olen, in TrustyRpc() 83 if (args.msg_len > ilen) { in TrustyRpc() 88 memcpy(ibegin, shm_base_, args.msg_len); in TrustyRpc() 90 return args.msg_len; in TrustyRpc()
|
/system/core/trusty/confirmationui/include/ |
D | TrustyIpc.h | 77 uint32_t msg_len; member
|
/system/core/fastboot/device/ |
D | fastboot_device.cpp | 118 size_t msg_len = std::min(kMaxMessageSize, message.size()); in WriteStatus() local 128 memcpy(buf + kResponseReasonSize, message.c_str(), msg_len); in WriteStatus() 130 size_t response_len = kResponseReasonSize + msg_len; in WriteStatus()
|
/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 | 770 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()
|
D | nfa_hci_utils.cc | 302 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/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 | 64 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() 1072 tNFC_STATUS rw_t2t_write_ndef_first_block(uint16_t msg_len, bool b_update_len) { in rw_t2t_write_ndef_first_block() argument 1089 if (msg_len == 0) { in rw_t2t_write_ndef_first_block() 1097 length_field[1] = (uint8_t)(msg_len >> 8); in rw_t2t_write_ndef_first_block() 1098 length_field[2] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block() 1102 length_field[0] = (uint8_t)(msg_len); in rw_t2t_write_ndef_first_block() 1169 tNFC_STATUS rw_t2t_write_ndef_next_block(uint16_t block, uint16_t msg_len, in rw_t2t_write_ndef_next_block() argument 1218 if (msg_len == 0) { in rw_t2t_write_ndef_next_block() [all …]
|
/system/core/trusty/confirmationui/fuzz/ |
D | msg_fuzzer.cpp | 118 .msg_len = static_cast<uint32_t>(size), in Msg()
|