/system/nfc/src/fuzzers/rw/ |
D | t5t.cc | 61 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 …]
|
D | t1t.cc | 52 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 …]
|
D | t2t.cc | 43 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 …]
|
D | t3t.cc | 71 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 …]
|
D | t4t.cc | 44 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()
|
D | mfc.cc | 48 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()
|
D | stubs.cc | 33 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/nfc/tags/ |
D | rw_t5t.cc | 128 status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef() 138 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 162 if (rw_i93_send_cmd_read_single_block(0x0000, false) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 265 NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 297 status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef() 301 if (status == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 319 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 337 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() 426 rw_data.ndef.status = NFC_STATUS_OK; in rw_t5t_sm_detect_ndef() 472 if (rw_i93_get_next_blocks(p_i93->rw_offset) == NFC_STATUS_OK) { in rw_t5t_sm_detect_ndef() [all …]
|
D | rw_i93.cc | 382 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() 463 NFC_STATUS_OK)) { in rw_i93_check_sys_info_prot_ext() 525 rw_data.i93_inventory.status = NFC_STATUS_OK; in rw_i93_send_to_upper() 562 rw_data.i93_data.status = NFC_STATUS_OK; in rw_i93_send_to_upper() 590 rw_data.i93_cmd_cmpl.status = NFC_STATUS_OK; in rw_i93_send_to_upper() 600 rw_data.i93_sys_info.status = NFC_STATUS_OK; in rw_i93_send_to_upper() 622 rw_data.i93_sys_info.status = NFC_STATUS_OK; in rw_i93_send_to_upper() 683 if (NFC_SendData(NFC_RF_CONN_ID, p_msg) != NFC_STATUS_OK) { in rw_i93_send_to_lower() 753 return NFC_STATUS_OK; in rw_i93_send_cmd_inventory() [all …]
|
D | rw_t2t.cc | 124 if (rw_t2t_sector_change(p_t2t->select_sector) == NFC_STATUS_OK) in rw_t2t_proc_data() 162 evt_data.status = NFC_STATUS_OK; in rw_t2t_proc_data() 169 rw_t2t_handle_presence_check_rsp(NFC_STATUS_OK); in rw_t2t_proc_data() 278 if ((p_data->data.status == NFC_STATUS_OK) || in rw_t2t_conn_cback() 382 if (status == NFC_STATUS_OK) { in rw_t2t_send_cmd() 429 evt_data.status = NFC_STATUS_OK; in rw_t2t_process_timeout() 504 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t2t_process_error() 618 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t2t_resume_op() 669 if (status == NFC_STATUS_OK) { in rw_t2t_sector_change() 712 if (status == NFC_STATUS_OK) { in rw_t2t_read() [all …]
|
D | rw_mfc.cc | 129 tNFC_STATUS status = NFC_STATUS_OK; in RW_MfcFormatNDef() 144 if (status == NFC_STATUS_OK) { in RW_MfcFormatNDef() 167 tNFC_STATUS status = NFC_STATUS_OK; in rw_mfc_formatBlock() 177 return NFC_STATUS_OK; in rw_mfc_formatBlock() 294 if (rw_mfc_formatBlock(p_mfc->next_block.block) != NFC_STATUS_OK) { in rw_mfc_handle_format_op() 300 evt_data.status = NFC_STATUS_OK; in rw_mfc_handle_format_op() 323 tNFC_STATUS status = NFC_STATUS_OK; in RW_MfcWriteNDef() 339 if (status == NFC_STATUS_OK) { in RW_MfcWriteNDef() 362 tNFC_STATUS status = NFC_STATUS_OK; in rw_mfc_writeBlock() 372 return NFC_STATUS_OK; in rw_mfc_writeBlock() [all …]
|
D | rw_t3t.cc | 272 if (rw_t3t_send_to_lower(p_cmd_buf) == NFC_STATUS_OK) { in rw_t3t_process_error() 341 if (nci_status != NFC_STATUS_OK) { in rw_t3t_handle_nci_poll_rsp() 421 evt_data.t3t_sc.status = NFC_STATUS_OK; in rw_t3t_handle_get_system_codes_cplt() 453 if (status == NFC_STATUS_OK) { in rw_t3t_format_cplt() 644 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd() 669 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd() 755 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd() 906 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_check_cmd() 1108 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_check_cmd() 1144 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_cmd() [all …]
|
D | rw_t1t.cc | 82 evt_data.status = NFC_STATUS_OK; in rw_t1t_data_cback() 259 if (p_data->data.status == NFC_STATUS_OK) { in rw_t1t_conn_cback() 358 if (status == NFC_STATUS_OK) { in rw_t1t_send_static_cmd() 424 if (status == NFC_STATUS_OK) { in rw_t1t_send_dyn_cmd() 451 evt_data.status = NFC_STATUS_OK; in rw_t1t_handle_rid_rsp() 511 return NFC_STATUS_OK; in rw_t1t_select() 595 if (NFC_SendData(NFC_RF_CONN_ID, p_cmd_buf) == NFC_STATUS_OK) { in rw_t1t_process_error() 706 tNFC_STATUS retval = NFC_STATUS_OK; in RW_T1tPresenceCheck() 723 evt_data.status = NFC_STATUS_OK; in RW_T1tPresenceCheck() 728 if (retval == NFC_STATUS_OK) { in RW_T1tPresenceCheck() [all …]
|
D | rw_t2t_ndef.cc | 226 if (rw_t2t_read((uint16_t)T2T_FIRST_DATA_BLOCK) != NFC_STATUS_OK) { in rw_t2t_handle_cc_read_rsp() 252 if (status == NFC_STATUS_OK) ndef_data.flags |= RW_NDEF_FL_FORMATED; in rw_t2t_ntf_tlv_detect_complete() 266 if (status == NFC_STATUS_OK) ndef_data.flags |= RW_NDEF_FL_HARD_LOCKABLE; in rw_t2t_ntf_tlv_detect_complete() 357 if (NFC_STATUS_OK != rw_t2t_read((uint16_t)block)) { in rw_t2t_handle_lock_read_rsp() 367 if (NFC_STATUS_OK != in rw_t2t_handle_lock_read_rsp() 381 rw_t2t_ntf_tlv_detect_complete(NFC_STATUS_OK); in rw_t2t_handle_lock_read_rsp() 746 NFC_STATUS_OK) in rw_t2t_handle_tlv_detect_rsp() 768 status = failed ? NFC_STATUS_FAILED : NFC_STATUS_OK; in rw_t2t_handle_tlv_detect_rsp() 772 status = failed ? NFC_STATUS_FAILED : NFC_STATUS_OK; in rw_t2t_handle_tlv_detect_rsp() 820 if (status == NFC_STATUS_OK) { in rw_t2t_read_locks() [all …]
|
D | rw_t1t_ndef.cc | 300 if (status == NFC_STATUS_OK) { in rw_t1t_read_locks() 316 status = NFC_STATUS_OK; in rw_t1t_read_locks() 334 tNFC_STATUS status = NFC_STATUS_OK; in rw_t1t_handle_write_rsp() 366 if (status != NFC_STATUS_OK) *p_notify = true; in rw_t1t_handle_write_rsp() 375 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp() 387 status = NFC_STATUS_OK; in rw_t1t_handle_write_rsp() 400 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp() 408 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp() 420 if (status != NFC_STATUS_OK) in rw_t1t_handle_write_rsp() 486 if (status == NFC_STATUS_OK) { in rw_t1t_handle_write_rsp() [all …]
|
D | ce_t3t.cc | 93 if (NFC_SendData(NFC_RF_CONN_ID, p_msg) != NFC_STATUS_OK) { in ce_t3t_send_to_lower() 204 tNFC_STATUS nfc_status = NFC_STATUS_OK; in ce_t3t_handle_update_cmd() 323 if (nfc_status == NFC_STATUS_OK) { in ce_t3t_handle_update_cmd() 813 if (p_data->data.status == NFC_STATUS_OK) { in ce_t3t_conn_cback() 848 return NFC_STATUS_OK; in ce_select_t3t() 903 return (NFC_STATUS_OK); in CE_T3tSetLocalNDEFMsg() 932 return NFC_STATUS_OK; in CE_T3tSetLocalNDefParams() 947 tNFC_STATUS retval = NFC_STATUS_OK; in CE_T3tSendCheckRsp() 1002 tNFC_STATUS retval = NFC_STATUS_OK; in CE_T3tSendUpdateRsp()
|
D | rw_t4t.cc | 130 if (NFC_SendData(NFC_RF_CONN_ID, p_c_apdu) != NFC_STATUS_OK) { in rw_t4t_send_to_lower() 1505 rw_data.ndef.status = NFC_STATUS_OK; in rw_t4t_sm_ndef_format() 1779 rw_data.ndef.status = NFC_STATUS_OK; in rw_t4t_sm_detect_ndef() 1967 rw_data.data.status = NFC_STATUS_OK; in rw_t4t_sm_read_ndef() 2049 rw_data.status = NFC_STATUS_OK; in rw_t4t_sm_update_ndef() 2144 rw_data.status = NFC_STATUS_OK; in rw_t4t_sm_set_readonly() 2191 if (is_ntf || (status != NFC_STATUS_OK)) { in rw_t4t_handle_isodep_nak_rsp() 2312 rw_data.status = NFC_STATUS_OK; in rw_t4t_data_cback() 2367 return NFC_STATUS_OK; in RW_T4tFormatNDef() 2396 return NFC_STATUS_OK; in rw_t4t_select() [all …]
|
/system/nfc/src/fuzzers/ce/ |
D | stubs.cc | 36 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()
|
D | t3t.cc | 35 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()
|
D | t4t.cc | 29 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/nfc/ |
D | nfc_vs.cc | 61 status = NFC_STATUS_OK; in NFC_RegVSCback() 70 status = NFC_STATUS_OK; in NFC_RegVSCback() 106 return NFC_STATUS_OK; in NFC_SendRawVsCommand() 125 tNFC_STATUS status = NFC_STATUS_OK; in NFC_SendVsCommand()
|
D | nfc_main.cc | 168 if (nfc_status != NFC_STATUS_OK) { in nfc_main_notify_enable_status() 713 return (NFC_STATUS_OK); in NFC_Enable() 1129 if (status != NFC_STATUS_OK) GKI_freebuf(p_data); in NFC_SendData() 1152 status = NFC_STATUS_OK; in NFC_FlushData() 1180 tNFC_STATUS status = NFC_STATUS_OK; in NFC_Deactivate() 1195 return NFC_STATUS_OK; in NFC_Deactivate() 1312 return NFC_STATUS_OK; in NFC_SetPowerOffSleep() 1318 return NFC_STATUS_OK; in NFC_SetPowerOffSleep() 1342 return NFC_STATUS_OK; in NFC_PowerCycleNFCC() 1399 evt_data.conn_create.status = NFC_STATUS_OK; in NFC_SetStaticHciCback() [all …]
|
D | nfc_test.cc | 61 if (status != NFC_STATUS_OK) GKI_freebuf(p_data); in NFC_TestLoopback()
|
/system/nfc/src/nfa/rw/ |
D | nfa_rw_act.cc | 212 if (p_rw_data->ndef.status == NFC_STATUS_OK) { in nfa_rw_handle_ndef_detect() 333 if (p_rw_data->tlv.status == NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect() 344 if (nfa_rw_config_tag_ro(nfa_rw_cb.b_hard_lock) != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect() 358 if (p_rw_data->tlv.status != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect() 367 if (nfa_rw_config_tag_ro(nfa_rw_cb.b_hard_lock) != NFC_STATUS_OK) { in nfa_rw_handle_tlv_detect() 396 if (status == NFC_STATUS_OK) { in nfa_rw_handle_sleep_wakeup_rsp() 407 NFC_STATUS_OK) { in nfa_rw_handle_sleep_wakeup_rsp() 430 if ((status != NFC_STATUS_OK) && in nfa_rw_handle_sleep_wakeup_rsp() 440 (status != NFC_STATUS_OK)) { in nfa_rw_handle_sleep_wakeup_rsp() 502 else if (status == NFC_STATUS_OK) { in nfa_rw_handle_presence_check_rsp() [all …]
|
/system/nfc/src/fuzzers/ndef/ |
D | stubs.cc | 11 return NFC_STATUS_OK; in NFC_DiscoveryMap() 18 tNFC_STATUS NFC_Enable(tNFC_RESPONSE_CBACK*) { return NFC_STATUS_OK; } in NFC_Enable()
|