Home
last modified time | relevance | path

Searched refs:NFC_STATUS_OK (Results 1 – 25 of 41) sorted by relevance

12

/system/nfc/src/fuzzers/rw/
Dt5t.cc61 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
71 return NFC_STATUS_OK == RW_I93Inventory(false, 0, uid); in Init_Inventory()
76 return NFC_STATUS_OK == RW_I93StayQuiet(uid); in Init_StayQuiet()
80 return NFC_STATUS_OK == RW_I93ReadSingleBlock(0); in Init_ReadSingleBlock()
88 return NFC_STATUS_OK == RW_I93WriteSingleBlock(0, scratch); in Init_WriteSingleBlock()
92 return NFC_STATUS_OK == RW_I93LockBlock(0); in Init_LockBlock()
96 return NFC_STATUS_OK == RW_I93ReadMultipleBlocks(0, 10); in Init_ReadMultipleBlocks()
101 return NFC_STATUS_OK == RW_I93WriteMultipleBlocks(0, 10, scratch); in Init_WriteMultipleBlocks()
106 return NFC_STATUS_OK == RW_I93Select(uid); in Init_Select()
110 return NFC_STATUS_OK == RW_I93ResetToReady(); in Init_ResetToReady()
[all …]
Dt1t.cc52 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
61 return NFC_STATUS_OK == RW_T1tPresenceCheck(); in Init_PresenceCheck()
65 return NFC_STATUS_OK == RW_T1tRid(); in Init_Rid()
69 return NFC_STATUS_OK == RW_T1tReadAll(); in Init_ReadAll()
73 return NFC_STATUS_OK == RW_T1tRead(0, 0x10); in Init_Read()
77 return NFC_STATUS_OK == RW_T1tWriteErase(0, 0x10, 0x20); in Init_WriteErase()
81 return NFC_STATUS_OK == RW_T1tWriteNoErase(0, 0x10, 0x20); in Init_WriteNoErase()
85 return NFC_STATUS_OK == RW_T1tReadSeg(0); in Init_ReadSeg()
89 return NFC_STATUS_OK == RW_T1tRead8(0); in Init_Read8()
97 return NFC_STATUS_OK == RW_T1tWriteErase8(0, scratch); in Init_WriteErase8()
[all …]
Dt2t.cc43 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
52 return NFC_STATUS_OK == RW_T2tPresenceCheck(); in Init_PresenceCheck()
56 return NFC_STATUS_OK == RW_T2tRead(0); in Init_Read()
64 return NFC_STATUS_OK == RW_T2tWrite(0, scratch); in Init_Write()
68 return NFC_STATUS_OK == RW_T2tSectorSelect(0); in Init_SectorSelect()
72 return NFC_STATUS_OK == RW_T2tSetTagReadOnly(true); in Init_SetTagReadOnly()
83 return NFC_STATUS_OK == RW_T2tWriteNDef(sizeof(data), scratch); in Init_WriteNDef()
93 return NFC_STATUS_OK == RW_T2tReadNDef(scratch, 256); in Init_ReadNDef()
97 return NFC_STATUS_OK == RW_T2tDetectNDef(true); in Init_DetectNDef()
101 return NFC_STATUS_OK == RW_T2tLocateTlv(TAG_LOCK_CTRL_TLV); in Init_LocateTlv()
[all …]
Dt3t.cc71 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
78 NFC_STATUS_OK, // tNFC_STATUS status; in Init()
109 return NFC_STATUS_OK == RW_T3tCheckNDef(); in Init_CheckNDef()
117 return NFC_STATUS_OK == RW_T3tUpdateNDef(sizeof(data), scratch); in Init_UpdateNDef()
122 return NFC_STATUS_OK == RW_T3tCheck(1, &t3t_blocks); in Init_Check()
130 return NFC_STATUS_OK == RW_T3tUpdate(1, &t3t_blocks, scratch); in Init_Update()
137 return NFC_STATUS_OK == RW_T3tSendRawFrame(sizeof(data), data); in Init_SendRawFrame()
141 return NFC_STATUS_OK == RW_T3tDetectNDef(); in Init_DetectNDef()
145 return NFC_STATUS_OK == RW_T3tPresenceCheck(); in Init_PresenceCheck()
149 return NFC_STATUS_OK == RW_T3tPoll(0, 1, 0); in Init_Poll()
[all …]
Dt4t.cc44 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
53 return NFC_STATUS_OK == RW_T4tPresenceCheck(1); in Init_PresenceCheck()
57 return NFC_STATUS_OK == RW_T4tDetectNDef(); in Init_DetectNDef()
61 return NFC_STATUS_OK == RW_T4tReadNDef(); in Init_ReadNDef()
69 return NFC_STATUS_OK == RW_T4tUpdateNDef(sizeof(data), scratch); in Init_UpdateNDef()
73 return NFC_STATUS_OK == RW_T4tFormatNDef(); in Init_FormatNDef()
77 return NFC_STATUS_OK == RW_T4tSetNDefReadOnly(); in Init_SetNDefReadOnly()
122 .deactivate = {.status = NFC_STATUS_OK, in Fuzz_Deinit()
148 .status = NFC_STATUS_OK, in Fuzz_Run()
Dmfc.cc48 if (NFC_STATUS_OK != RW_SetActivatedTagType(&activate_params, rw_cback)) { in Init()
57 return NFC_STATUS_OK == RW_MfcDetectNDef(); in Init_DetectNDef()
62 return NFC_STATUS_OK == RW_MfcReadNDef(scratch, 256); in Init_ReadNDef()
71 return NFC_STATUS_OK == RW_MfcWriteNDef(sizeof(data), scratch); in Init_WriteNDef()
75 return NFC_STATUS_OK == RW_MfcFormatNDef(); in Init_FormatNDef()
114 .deactivate = {.status = NFC_STATUS_OK, in Fuzz_Deinit()
140 .status = NFC_STATUS_OK, in Fuzz_Run()
Dstubs.cc33 return NFC_STATUS_OK; in NFC_SendData()
38 return NFC_STATUS_OK; in nci_snd_t3t_polling()
44 tNFC_STATUS NFC_ISODEPNakPresCheck() { return NFC_STATUS_OK; } in NFC_ISODEPNakPresCheck()
48 case NFC_STATUS_OK: in NFC_GetStatusName()
/system/nfc/src/fuzzers/llcp/
Dstubs.cc17 return NFC_STATUS_OK; in NFC_SendData()
20 tNFC_STATUS NFC_FlushData(uint8_t) { return NFC_STATUS_OK; } in NFC_FlushData()
51 return NFC_STATUS_OK;
55 tNFC_STATUS NFC_ISODEPNakPresCheck() { return NFC_STATUS_OK; }
59 case NFC_STATUS_OK:
Dllcp.cc33 if (NFC_STATUS_OK != LLCP_ActivateLink(config, llcp_cback)) { in Init()
82 .status = NFC_STATUS_OK, in Fuzz_Run()
/system/nfc/src/fuzzers/ce/
Dstubs.cc36 return NFC_STATUS_OK; in NFC_SendData()
41 return NFC_STATUS_OK; in nci_snd_t3t_polling()
47 tNFC_STATUS NFC_ISODEPNakPresCheck() { return NFC_STATUS_OK; } in NFC_ISODEPNakPresCheck()
51 case NFC_STATUS_OK: in NFC_GetStatusName()
Dt3t.cc35 if (NFC_STATUS_OK != CE_SetActivatedTagType(&activate_params, in Init()
50 return NFC_STATUS_OK == in Init_ReadOnly()
61 return NFC_STATUS_OK == in Init_ReadWrite()
109 .status = NFC_STATUS_OK, in Fuzz_Run()
Dt4t.cc29 if (NFC_STATUS_OK != CE_SetActivatedTagType(&activate_params, 0, ce_cback)) { in Init()
53 return NFC_STATUS_OK == in Init_ReadOnly()
64 return NFC_STATUS_OK == CE_T4tSetLocalNDEFMsg(false, size_max, ndef_len, in Init_ReadWrite()
112 .status = NFC_STATUS_OK, in Fuzz_Run()
/system/nfc/src/nfc/tags/
Drw_t5t.cc132 status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef()
142 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
246 NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
278 status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef()
282 if (status == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
300 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
318 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
407 rw_data.ndef.status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef()
453 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef()
556 NFC_STATUS_OK) { in rw_t5t_sm_update_ndef()
[all …]
Drw_i93.cc382 NFC_STATUS_OK) { in rw_i93_process_sys_info()
396 if (rw_i93_send_cmd_get_ext_sys_info(nullptr) == NFC_STATUS_OK) { in rw_i93_process_sys_info()
462 NFC_STATUS_OK)) { in rw_i93_check_sys_info_prot_ext()
524 rw_data.i93_inventory.status = NFC_STATUS_OK; in rw_i93_send_to_upper()
552 rw_data.i93_data.status = NFC_STATUS_OK; in rw_i93_send_to_upper()
580 rw_data.i93_cmd_cmpl.status = NFC_STATUS_OK; in rw_i93_send_to_upper()
590 rw_data.i93_sys_info.status = NFC_STATUS_OK; in rw_i93_send_to_upper()
612 rw_data.i93_sys_info.status = NFC_STATUS_OK; in rw_i93_send_to_upper()
673 if (NFC_SendData(NFC_RF_CONN_ID, p_msg) != NFC_STATUS_OK) { in rw_i93_send_to_lower()
740 return NFC_STATUS_OK; in rw_i93_send_cmd_inventory()
[all …]
Drw_t2t.cc127 if (rw_t2t_sector_change(p_t2t->select_sector) == NFC_STATUS_OK) in rw_t2t_proc_data()
165 evt_data.status = NFC_STATUS_OK; in rw_t2t_proc_data()
172 rw_t2t_handle_presence_check_rsp(NFC_STATUS_OK); in rw_t2t_proc_data()
282 if ((p_data->data.status == NFC_STATUS_OK) || in rw_t2t_conn_cback()
386 if (status == NFC_STATUS_OK) { in rw_t2t_send_cmd()
433 evt_data.status = NFC_STATUS_OK; in rw_t2t_process_timeout()
508 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t2t_process_error()
623 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t2t_resume_op()
674 if (status == NFC_STATUS_OK) { in rw_t2t_sector_change()
718 if (status == NFC_STATUS_OK) { in rw_t2t_read()
[all …]
Drw_mfc.cc130 tNFC_STATUS status = NFC_STATUS_OK; in RW_MfcFormatNDef()
145 if (status == NFC_STATUS_OK) { in RW_MfcFormatNDef()
168 tNFC_STATUS status = NFC_STATUS_OK; in rw_mfc_formatBlock()
178 return NFC_STATUS_OK; in rw_mfc_formatBlock()
295 if (rw_mfc_formatBlock(p_mfc->next_block.block) != NFC_STATUS_OK) { in rw_mfc_handle_format_op()
301 evt_data.status = NFC_STATUS_OK; in rw_mfc_handle_format_op()
324 tNFC_STATUS status = NFC_STATUS_OK; in RW_MfcWriteNDef()
340 if (status == NFC_STATUS_OK) { in RW_MfcWriteNDef()
363 tNFC_STATUS status = NFC_STATUS_OK; in rw_mfc_writeBlock()
373 return NFC_STATUS_OK; in rw_mfc_writeBlock()
[all …]
Drw_t3t.cc276 if (rw_t3t_send_to_lower(p_cmd_buf) == NFC_STATUS_OK) { in rw_t3t_process_error()
406 evt_data.t3t_sc.status = NFC_STATUS_OK; in rw_t3t_handle_get_system_codes_cplt()
438 if (status == NFC_STATUS_OK) { in rw_t3t_format_cplt()
629 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd()
655 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd()
741 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd()
887 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_check_cmd()
1084 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_check_cmd()
1120 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_cmd()
1208 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_raw_frame()
[all …]
Drw_t1t.cc84 evt_data.status = NFC_STATUS_OK; in rw_t1t_data_cback()
262 if (p_data->data.status == NFC_STATUS_OK) { in rw_t1t_conn_cback()
361 if (status == NFC_STATUS_OK) { in rw_t1t_send_static_cmd()
427 if (status == NFC_STATUS_OK) { in rw_t1t_send_dyn_cmd()
454 evt_data.status = NFC_STATUS_OK; in rw_t1t_handle_rid_rsp()
516 return NFC_STATUS_OK; in rw_t1t_select()
600 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t1t_process_error()
710 tNFC_STATUS retval = NFC_STATUS_OK; in RW_T1tPresenceCheck()
727 evt_data.status = NFC_STATUS_OK; in RW_T1tPresenceCheck()
732 if (retval == NFC_STATUS_OK) { in RW_T1tPresenceCheck()
[all …]
Drw_t2t_ndef.cc231 if (rw_t2t_read((uint16_t)T2T_FIRST_DATA_BLOCK) != NFC_STATUS_OK) { in rw_t2t_handle_cc_read_rsp()
257 if (status == NFC_STATUS_OK) ndef_data.flags |= RW_NDEF_FL_FORMATED; in rw_t2t_ntf_tlv_detect_complete()
271 if (status == NFC_STATUS_OK) ndef_data.flags |= RW_NDEF_FL_HARD_LOCKABLE; in rw_t2t_ntf_tlv_detect_complete()
362 if (NFC_STATUS_OK != rw_t2t_read((uint16_t)block)) { in rw_t2t_handle_lock_read_rsp()
372 if (NFC_STATUS_OK != in rw_t2t_handle_lock_read_rsp()
386 rw_t2t_ntf_tlv_detect_complete(NFC_STATUS_OK); in rw_t2t_handle_lock_read_rsp()
740 if (rw_t2t_read((uint16_t)(p_t2t->work_offset / T2T_BLOCK_LEN) ) != NFC_STATUS_OK) in rw_t2t_handle_tlv_detect_rsp()
775 status = failed ? NFC_STATUS_FAILED : NFC_STATUS_OK; in rw_t2t_handle_tlv_detect_rsp()
823 if (status == NFC_STATUS_OK) { in rw_t2t_read_locks()
835 status = NFC_STATUS_OK; in rw_t2t_read_locks()
[all …]
Drw_t1t_ndef.cc303 if (status == NFC_STATUS_OK) { in rw_t1t_read_locks()
319 status = NFC_STATUS_OK; in rw_t1t_read_locks()
337 tNFC_STATUS status = NFC_STATUS_OK; in rw_t1t_handle_write_rsp()
369 if (status != NFC_STATUS_OK) *p_notify = true; in rw_t1t_handle_write_rsp()
378 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp()
390 status = NFC_STATUS_OK; in rw_t1t_handle_write_rsp()
403 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp()
411 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp()
423 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp()
489 if (status == NFC_STATUS_OK) { in rw_t1t_handle_write_rsp()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_vs.cc63 status = NFC_STATUS_OK; in NFC_RegVSCback()
72 status = NFC_STATUS_OK; in NFC_RegVSCback()
108 return NFC_STATUS_OK; in NFC_SendRawVsCommand()
127 tNFC_STATUS status = NFC_STATUS_OK; in NFC_SendVsCommand()
Dnfc_test.cc61 if (status != NFC_STATUS_OK) GKI_freebuf(p_data); in NFC_TestLoopback()
Dnfc_main.cc174 if (nfc_status != NFC_STATUS_OK) { in nfc_main_notify_enable_status()
722 return (NFC_STATUS_OK); in NFC_Enable()
1120 if (status != NFC_STATUS_OK) GKI_freebuf(p_data); in NFC_SendData()
1143 status = NFC_STATUS_OK; in NFC_FlushData()
1171 tNFC_STATUS status = NFC_STATUS_OK; in NFC_Deactivate()
1186 return NFC_STATUS_OK; in NFC_Deactivate()
1303 return NFC_STATUS_OK; in NFC_SetPowerOffSleep()
1309 return NFC_STATUS_OK; in NFC_SetPowerOffSleep()
1333 return NFC_STATUS_OK; in NFC_PowerCycleNFCC()
1392 evt_data.conn_create.status = NFC_STATUS_OK; in NFC_SetStaticHciCback()
[all …]
/system/nfc/src/fuzzers/ndef/
Dstubs.cc11 return NFC_STATUS_OK; in NFC_DiscoveryMap()
18 tNFC_STATUS NFC_Enable(tNFC_RESPONSE_CBACK*) { return NFC_STATUS_OK; } in NFC_Enable()
/system/nfc/src/nfa/rw/
Dnfa_rw_act.cc214 if (p_rw_data->ndef.status == NFC_STATUS_OK) { in nfa_rw_handle_ndef_detect()
335 if (p_rw_data->tlv.status == NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect()
346 if (nfa_rw_config_tag_ro(nfa_rw_cb.b_hard_lock) != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect()
360 if (p_rw_data->tlv.status != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect()
369 if (nfa_rw_config_tag_ro(nfa_rw_cb.b_hard_lock) != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect()
398 if (status == NFC_STATUS_OK) { in nfa_rw_handle_sleep_wakeup_rsp()
409 NFC_STATUS_OK) { in nfa_rw_handle_sleep_wakeup_rsp()
432 if ((status != NFC_STATUS_OK) && in nfa_rw_handle_sleep_wakeup_rsp()
442 (status != NFC_STATUS_OK)) { in nfa_rw_handle_sleep_wakeup_rsp()
497 else if (status == NFC_STATUS_OK) { in nfa_rw_handle_presence_check_rsp()
[all …]

12