Home
last modified time | relevance | path

Searched refs:ndef_data (Results 1 – 8 of 8) sorted by relevance

/system/nfc/src/nfa/dm/
Dnfa_dm_ndef.cc373 tNFA_NDEF_DATA ndef_data; in nfa_dm_ndef_handle_message() local
391 ndef_data.ndef_type_handle = 0; in nfa_dm_ndef_handle_message()
392 ndef_data.p_data = p_msg_buf; in nfa_dm_ndef_handle_message()
393 ndef_data.len = len; in nfa_dm_ndef_handle_message()
395 nfa_ndef_evt_data.ndef_data = ndef_data; in nfa_dm_ndef_handle_message()
406 ndef_data.ndef_type_handle = p_handler->ndef_type_handle; in nfa_dm_ndef_handle_message()
407 ndef_data.p_data = nullptr; /* Start of record */ in nfa_dm_ndef_handle_message()
408 ndef_data.len = 0; in nfa_dm_ndef_handle_message()
410 nfa_ndef_evt_data.ndef_data = ndef_data; in nfa_dm_ndef_handle_message()
474 ndef_data.ndef_type_handle = p_handler->ndef_type_handle; in nfa_dm_ndef_handle_message()
[all …]
/system/nfc/src/fuzzers/ndef/
Dmain.cc16 FUZZLOG("ndef_data, start=%p, len=%d", p_data->ndef_data.p_data, in ndef_cback()
17 p_data->ndef_data.len); in ndef_cback()
20 for (uint8_t* p = p_data->ndef_data.p_data; in ndef_cback()
21 p < p_data->ndef_data.p_data + p_data->ndef_data.len; p++) { in ndef_cback()
/system/nfc/src/nfc/tags/
Drw_t1t_ndef.cc580 tRW_DETECT_NDEF_DATA ndef_data; in rw_t1t_handle_read_rsp() local
618 ndef_data.protocol = NFC_PROTOCOL_T1T; in rw_t1t_handle_read_rsp()
619 ndef_data.flags = rw_t1t_get_ndef_flags(); in rw_t1t_handle_read_rsp()
620 ndef_data.flags |= RW_NDEF_FL_FORMATED; in rw_t1t_handle_read_rsp()
621 ndef_data.max_size = (uint32_t)rw_t1t_get_ndef_max_size(); in rw_t1t_handle_read_rsp()
622 ndef_data.cur_size = p_t1t->ndef_msg_len; in rw_t1t_handle_read_rsp()
624 if (ndef_data.max_size < ndef_data.cur_size) { in rw_t1t_handle_read_rsp()
625 ndef_data.flags |= RW_NDEF_FL_READ_ONLY; in rw_t1t_handle_read_rsp()
626 ndef_data.max_size = ndef_data.cur_size; in rw_t1t_handle_read_rsp()
629 if (!(ndef_data.flags & RW_NDEF_FL_READ_ONLY)) { in rw_t1t_handle_read_rsp()
[all …]
Drw_t2t.cc71 tRW_DETECT_NDEF_DATA ndef_data; in rw_t2t_proc_data() local
197 ndef_data.status = evt_data.status; in rw_t2t_proc_data()
198 ndef_data.protocol = NFC_PROTOCOL_T2T; in rw_t2t_proc_data()
199 ndef_data.flags = RW_NDEF_FL_UNKNOWN; in rw_t2t_proc_data()
201 ndef_data.flags = RW_NDEF_FL_FORMATED; in rw_t2t_proc_data()
202 ndef_data.max_size = 0; in rw_t2t_proc_data()
203 ndef_data.cur_size = 0; in rw_t2t_proc_data()
207 rw_data.ndef = ndef_data; in rw_t2t_proc_data()
482 tRW_DETECT_NDEF_DATA ndef_data; in rw_t2t_process_error() local
534 ndef_data.status = evt_data.status; in rw_t2t_process_error()
[all …]
Drw_mfc.cc1146 tRW_DETECT_NDEF_DATA ndef_data = {}; in rw_mfc_ntf_tlv_detect_complete() local
1151 ndef_data.status = NFC_STATUS_OK; // status; in rw_mfc_ntf_tlv_detect_complete()
1152 ndef_data.protocol = NFC_PROTOCOL_MIFARE; in rw_mfc_ntf_tlv_detect_complete()
1153 ndef_data.flags = 0; in rw_mfc_ntf_tlv_detect_complete()
1154 ndef_data.cur_size = p_mfc->ndef_length; in rw_mfc_ntf_tlv_detect_complete()
1157 ndef_data.flags |= RW_NDEF_FL_FORMATED; in rw_mfc_ntf_tlv_detect_complete()
1163 ndef_data.max_size = 3356; in rw_mfc_ntf_tlv_detect_complete()
1165 ndef_data.max_size = 716; in rw_mfc_ntf_tlv_detect_complete()
1168 (*rw_cb.p_cback)(RW_MFC_NDEF_DETECT_EVT, (tRW_DATA*)&ndef_data); in rw_mfc_ntf_tlv_detect_complete()
1353 tRW_DETECT_NDEF_DATA ndef_data; in rw_mfc_process_error() local
[all …]
Drw_t2t_ndef.cc246 tRW_DETECT_NDEF_DATA ndef_data = {}; in rw_t2t_ntf_tlv_detect_complete() local
247 ndef_data.status = status; in rw_t2t_ntf_tlv_detect_complete()
248 ndef_data.protocol = NFC_PROTOCOL_T2T; in rw_t2t_ntf_tlv_detect_complete()
249 ndef_data.flags = rw_t2t_get_ndef_flags(); in rw_t2t_ntf_tlv_detect_complete()
250 ndef_data.cur_size = p_t2t->ndef_msg_len; in rw_t2t_ntf_tlv_detect_complete()
252 if (status == NFC_STATUS_OK) ndef_data.flags |= RW_NDEF_FL_FORMATED; in rw_t2t_ntf_tlv_detect_complete()
255 ndef_data.max_size = (uint32_t)rw_t2t_get_ndef_max_size(); in rw_t2t_ntf_tlv_detect_complete()
257 ndef_data.max_size = ndef_data.cur_size; in rw_t2t_ntf_tlv_detect_complete()
259 if (ndef_data.max_size < ndef_data.cur_size) { in rw_t2t_ntf_tlv_detect_complete()
260 ndef_data.flags |= RW_NDEF_FL_READ_ONLY; in rw_t2t_ntf_tlv_detect_complete()
[all …]
Drw_t1t.cc627 tRW_DETECT_NDEF_DATA ndef_data; in rw_t1t_process_error() local
628 ndef_data.status = NFC_STATUS_TIMEOUT; in rw_t1t_process_error()
629 ndef_data.protocol = NFC_PROTOCOL_T1T; in rw_t1t_process_error()
630 ndef_data.flags = RW_NDEF_FL_UNKNOWN; in rw_t1t_process_error()
631 ndef_data.max_size = 0; in rw_t1t_process_error()
632 ndef_data.cur_size = 0; in rw_t1t_process_error()
634 rw_data.ndef = ndef_data; in rw_t1t_process_error()
/system/nfc/src/nfa/include/
Dnfa_api.h690 tNFA_NDEF_DATA ndef_data; member