Home
last modified time | relevance | path

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

123

/aosp12/hardware/nxp/nfc/snxxx/halimpl/utils/
H A DNxpNfcCapability.cc35 tNFC_chipType capability::processChipType(uint8_t* msg, uint16_t msg_len) { in processChipType() argument
36 if ((msg != NULL) && (msg_len != 0)) { in processChipType()
38 if (msg[msg_len - 3] == 0x12 && msg[msg_len - 2] == 0x01) in processChipType()
40 else if (msg[msg_len - 3] == 0x11 && msg[msg_len - 2] == 0x02) in processChipType()
42 else if (msg[msg_len - 3] == 0x01 && msg[msg_len - 2] == 0x10) in processChipType()
44 else if (msg[msg_len - 3] == 0x01 && msg[msg_len - 2] == 0x01) in processChipType()
53 } else if (offsetHwVersion < msg_len) { in processChipType()
54 ALOGD("%s HwVersion : 0x%02x", __func__, msg[msg_len - 4]); in processChipType()
55 switch (msg[msg_len - 4]) { in processChipType()
/aosp12/system/core/trusty/libtrusty/tipc-test/
H A Dtipc_test.c351 size_t msg_len; in echo_test() local
369 msg_len = msgsz; in echo_test()
371 msg_len = rand() % msgsz; in echo_test()
414 size_t msg_len; in burst_write_test() local
433 msg_len = msgsz; in burst_write_test()
733 size_t msg_len; in writev_test() local
753 msg_len = msgsz; in writev_test()
755 msg_len = rand() % msgsz; in writev_test()
815 size_t msg_len; in readv_test() local
835 msg_len = msgsz; in readv_test()
[all …]
/aosp12/system/core/trusty/utils/spiproxyd/
H A 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()
/aosp12/system/logging/logd/
H A 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
H A DReplayMessages.cpp206 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()
H A DLogUtils.h69 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()
H A 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()
H A DRecordingLogBuffer.cpp23 android::base::WriteFully(fd, msg.c_str(), meta.msg_len); in WriteLogMessage()
38 .msg_len = len, in RecordLogMessage()
H A 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()
486 worst_sizes -= element.msg_len(); in Prune()
530 uint16_t len = element.msg_len(); in Prune()
H A DSerializedLogBuffer.cpp85 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()
H A DRecordedLogMessage.h28 uint16_t msg_len; member
/aosp12/system/bt/stack/crypto_toolbox/
H A 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()
/aosp12/system/bt/gd/crypto_toolbox/
H A 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()
/aosp12/system/core/trusty/metrics/
H A Dmetrics.cpp87 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()
/aosp12/hardware/nxp/nfc/pn8x/halimpl/utils/
H A DNxpNfcCapability.cpp35 tNFC_chipType capability::getChipType(uint8_t* msg, uint16_t msg_len) { in getChipType() argument
36 if ((msg != NULL) && (msg_len != 0)) { in getChipType()
54 if ((offsetHwVersion > 0) && (offsetHwVersion < msg_len)) { in getChipType()
/aosp12/system/core/trusty/confirmationui/
H A DTrustyApp.cpp52 .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()
/aosp12/hardware/libhardware_legacy/
H A Duevent.c35 void (*handler)(void *data, const char *msg, int msg_len);
103 int uevent_add_native_handler(void (*handler)(void *data, const char *msg, int msg_len), in uevent_add_native_handler() argument
121 int uevent_remove_native_handler(void (*handler)(void *data, const char *msg, int msg_len)) in uevent_remove_native_handler() argument
/aosp12/hardware/libhardware_legacy/include/hardware_legacy/
H A Duevent.h27 int uevent_add_native_handler(void (*handler)(void *data, const char *msg, int msg_len),
29 int uevent_remove_native_handler(void (*handler)(void *data, const char *msg, int msg_len));
/aosp12/system/core/fastboot/device/
H A Dfastboot_device.cpp118 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()
/aosp12/system/nfc/src/nfa/hci/
H A 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()
H A 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()
/aosp12/packages/modules/adb/pairing_auth/
H A 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()
/aosp12/system/nfc/src/nfc/tags/
H A Drw_t2t_ndef.cc280 evt_data.msg_len = p_t2t->prop_msg_len; in rw_t2t_ntf_tlv_detect_complete()
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()
1218 if (msg_len == 0) { in rw_t2t_write_ndef_next_block()
1224 length_field[1] = (uint8_t)(msg_len >> 8); in rw_t2t_write_ndef_next_block()
1225 length_field[2] = (uint8_t)(msg_len); in rw_t2t_write_ndef_next_block()
1229 length_field[0] = (uint8_t)(msg_len); in rw_t2t_write_ndef_next_block()
3044 if (msg_len > p_t2t->max_ndef_msg_len) { in RW_T2tWriteNDef()
[all …]
/aosp12/system/nfc/src/nfc/include/
H A Drw_api.h177 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);
/aosp12/system/core/trusty/confirmationui/include/
H A DTrustyIpc.h77 uint32_t msg_len; member

123