/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.c | 33 STATIC NFCSTATUS phNciNfc_SendMfReq(phNciNfc_TransceiveInfo_t tTranscvInfo, 35 STATIC NFCSTATUS phLibNfc_SendRawCmd(phNfc_sTransceiveInfo_t* pTransceiveInfo, 37 STATIC NFCSTATUS phLibNfc_SendWrt16Cmd(phNfc_sTransceiveInfo_t* pTransceiveInfo, 39 STATIC NFCSTATUS phLibNfc_SendAuthCmd(phNfc_sTransceiveInfo_t *pTransceiveInfo, 41 STATIC NFCSTATUS phLibNfc_MapCmds(phNciNfc_RFDevType_t RemDevType, 44 STATIC NFCSTATUS phLibNfc_MifareMap(phNfc_sTransceiveInfo_t* pTransceiveInfo, 46 STATIC NFCSTATUS phLibNfc_ChkAuthCmdMFC(phNfc_sTransceiveInfo_t* pTransceiveInfo, 48 STATIC NFCSTATUS phLibNfc_GetKeyNumberMFC(uint8_t *buffer,uint8_t *bKey); 50 STATIC NFCSTATUS phNciNfc_MfCreateAuthCmdHdr(phNciNfc_TransceiveInfo_t tTranscvInfo, 54 STATIC NFCSTATUS phNciNfc_MfCreateXchgDataHdr(phNciNfc_TransceiveInfo_t tTranscvInfo, [all …]
|
D | phFriNfc_MifareStdMap.c | 28 static NFCSTATUS phFriNfc_MifStd_H_RdABlock (phFriNfc_NdefMap_t *NdefMap); 29 static NFCSTATUS phFriNfc_MifStd_H_WrABlock (phFriNfc_NdefMap_t *NdefMap); 30 static NFCSTATUS phFriNfc_MifStd_H_AuthSector (phFriNfc_NdefMap_t *NdefMap); 31 static NFCSTATUS phFriNfc_MifStd4k_H_CheckNdef (phFriNfc_NdefMap_t *NdefMap); 34 static NFCSTATUS phFriNfc_MifStd_H_BlkChk (phFriNfc_NdefMap_t *NdefMap); 35 static NFCSTATUS phFriNfc_MifStd_H_RdAcsBit (phFriNfc_NdefMap_t *NdefMap); 36 static NFCSTATUS phFriNfc_MifStd_H_ChkAcsBit (phFriNfc_NdefMap_t *NdefMap); 37 static NFCSTATUS phFriNfc_MifStd_H_ChkRdWr (phFriNfc_NdefMap_t *NdefMap); 39 static NFCSTATUS phFriNfc_MifStd_H_RemainTLV (phFriNfc_NdefMap_t *NdefMap, 42 static NFCSTATUS phFriNfc_MifStd_H_ChkIntLen (phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_MifStdFormat.c | 28 static NFCSTATUS phFriNfc_MfStd_H_Transceive(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 29 static NFCSTATUS phFriNfc_MfStd_H_CallDisCon(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, NFCSTATUS St… 30 static NFCSTATUS phFriNfc_MfStd_H_CallCon(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 31 static NFCSTATUS phFriNfc_MfStd_H_ProCon(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 32 static NFCSTATUS phFriNfc_MfStd_H_ProAuth(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 33 static NFCSTATUS phFriNfc_MfStd_H_ProRdSectTr(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 34 static NFCSTATUS phFriNfc_MfStd_H_ProWrSectTr(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 35 static NFCSTATUS phFriNfc_MfStd_H_WrRdAuth(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 39 static NFCSTATUS phFriNfc_MfStd_H_ProWrMADBlk(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); 40 static NFCSTATUS phFriNfc_MfStd_H_ProErrAuth(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt); [all …]
|
D | phNxpExtns_MifareStd.h | 189 NFCSTATUS status; 213 NFCSTATUS phFriNfc_ExtnsTransceive(phNfc_sTransceiveInfo_t *pTransceiveInfo, 218 NFCSTATUS phNxpExtns_MfcModuleInit(void); 219 NFCSTATUS phNxpExtns_MfcModuleDeInit(void); 220 NFCSTATUS Mfc_WriteNdef(uint8_t *p_data, uint32_t len); 221 NFCSTATUS Mfc_CheckNdef(void); 222 NFCSTATUS Mfc_ReadNdef(void); 223 NFCSTATUS Mfc_FormatNdef(uint8_t *secretkey, uint8_t len); 224 NFCSTATUS Mfc_Transceive(uint8_t *p_data, uint32_t len); 225 NFCSTATUS Mfc_SetReadOnly(uint8_t *secrtkey, uint8_t len); [all …]
|
D | phFriNfc_MifareStdMap.h | 198 NFCSTATUS phFriNfc_MifareStdMap_H_Reset( phFriNfc_NdefMap_t *NdefMap); 199 NFCSTATUS phFriNfc_MifareStdMap_RdNdef( phFriNfc_NdefMap_t *NdefMap, 203 NFCSTATUS phFriNfc_MifareStdMap_WrNdef( phFriNfc_NdefMap_t *NdefMap, 207 NFCSTATUS phFriNfc_MifareStdMap_ChkNdef(phFriNfc_NdefMap_t *NdefMap); 210 NFCSTATUS Status); 212 NFCSTATUS phFrinfc_MifareClassic_GetContainerSize(const phFriNfc_NdefMap_t *NdefMap, 215 NFCSTATUS
|
D | phFriNfc_SmtCrdFmt.c | 37 void phFriNfc_SmtCrdFmt_HCrHandler(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, NFCSTATUS Status) in phFriNfc_SmtCrdFmt_HCrHandler() 63 NFCSTATUS phFriNfc_NdefSmtCrd_Reset(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, in phFriNfc_NdefSmtCrd_Reset() 69 NFCSTATUS result = NFCSTATUS_SUCCESS; in phFriNfc_NdefSmtCrd_Reset() 135 NFCSTATUS phFriNfc_NdefSmtCrd_SetCR(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, in phFriNfc_NdefSmtCrd_SetCR() 140 NFCSTATUS status = NFCSTATUS_SUCCESS; in phFriNfc_NdefSmtCrd_SetCR() 170 void phFriNfc_NdefSmtCrd_Process(void *Context, NFCSTATUS Status) in phFriNfc_NdefSmtCrd_Process()
|
D | phFriNfc_SmtCrdFmt.h | 102 …NFCSTATUS FmtProcStatus; /* Stores the output/result of the forma… 107 NFCSTATUS phFriNfc_NdefSmtCrd_Reset(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, 113 NFCSTATUS phFriNfc_NdefSmtCrd_SetCR(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, 118 void phFriNfc_NdefSmtCrd_Process(void *Context, NFCSTATUS Status); 120 void phFriNfc_SmtCrdFmt_HCrHandler(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, NFCSTATUS Status);
|
D | phFriNfc_MifStdFormat.h | 337 NFCSTATUS phFriNfc_MfStd_Format(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, const uint8_t *ScrtKeyB); 338 void phFriNfc_MfStd_Process(void *Context, NFCSTATUS Status);
|
D | phFriNfc.h | 58 typedef void (*pphFriNfc_Cr_t) (void*, NFCSTATUS);
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.c | 32 static NFCSTATUS phNxpExtns_ProcessSysMessage (phLibNfc_Message_t *msg); 33 static NFCSTATUS phNxpExtns_SendMsg (phLibNfc_Message_t *sysmsg); 56 NFCSTATUS EXTNS_Init (tNFA_DM_CBACK *p_nfa_dm_cback, in EXTNS_Init() 59 NFCSTATUS status = NFCSTATUS_FAILED; in EXTNS_Init() 121 NFCSTATUS EXTNS_MfcCallBack (uint8_t *buf, uint32_t buflen) in EXTNS_MfcCallBack() 123 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCallBack() 155 NFCSTATUS EXTNS_MfcCheckNDef (void) in EXTNS_MfcCheckNDef() 157 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCheckNDef() 187 NFCSTATUS EXTNS_MfcReadNDef (void) in EXTNS_MfcReadNDef() 189 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcReadNDef() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/inc/ |
D | phNxpExtns.h | 28 NFCSTATUS EXTNS_Init (tNFA_DM_CBACK *p_dm_cback, 31 NFCSTATUS EXTNS_MfcInit (tNFA_ACTIVATED activationData); 32 NFCSTATUS EXTNS_MfcCheckNDef (void); 33 NFCSTATUS EXTNS_MfcReadNDef (void); 34 NFCSTATUS EXTNS_MfcPresenceCheck (void); 35 NFCSTATUS EXTNS_MfcWriteNDef (uint8_t *pBuf, uint32_t len); 36 NFCSTATUS EXTNS_MfcFormatTag (uint8_t *key, uint8_t len); 37 NFCSTATUS EXTNS_MfcDisconnect (void); 38 NFCSTATUS EXTNS_MfcActivated (void); 39 NFCSTATUS EXTNS_MfcTransceive (uint8_t *p_data, uint32_t len); [all …]
|
D | phNxpExtns_Custom.h | 72 NFCSTATUS phNxpExtns_get_version (uint32_t *hw_ver, uint32_t *fw_ver, uint32_t *sw_ver); 88 NFCSTATUS phNxpNciHal_read_tlv (tlv_t *tlv); 104 NFCSTATUS phNxpNciHal_write_tlv (tlv_t *tlv); 120 NFCSTATUS phNxpExtns_select_poll_tech (tNFA_TECHNOLOGY_MASK tech_mask); 137 NFCSTATUS phNxpExtns_select_ce_listen_tech (tNFA_TECHNOLOGY_MASK tech_mask); 155 NFCSTATUS phNxpExtns_select_p2p_poll_speed (p2p_speed_t p2p_initiator_speed); 171 NFCSTATUS phNxpExtns_select_p2p_listen_speed (p2p_speed_t p2p_target_speed); 186 NFCSTATUS phNxpExtns_select_se (SE_t se); 201 NFCSTATUS phNxpExtns_set_poll_mode (PollMode_t poll_mode); 220 NFCSTATUS phNxpExtns_start_poll (void); [all …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcManager.cpp | 45 static NFCSTATUS lastErrorStatus = NFCSTATUS_FAILED; 63 static void nfc_jni_init_callback(void *pContext, NFCSTATUS status); 64 static void nfc_jni_deinit_callback(void *pContext, NFCSTATUS status); 65 static void nfc_jni_discover_callback(void *pContext, NFCSTATUS status); 67 phLibNfc_Handle handle, NFCSTATUS status); 68 static void nfc_jni_llcpcfg_callback(void *pContext, NFCSTATUS status); 72 uint8_t uNofRemoteDev, NFCSTATUS status); 75 phLibNfc_uSeEvtInfo_t *evt_info, NFCSTATUS status); 113 static void nfc_jni_ioctl_callback(void *pContext, phNfc_sData_t* /*pOutput*/, NFCSTATUS status) { in nfc_jni_ioctl_callback() 122 static void nfc_jni_deinit_download_callback(void *pContext, NFCSTATUS status) in nfc_jni_deinit_download_callback() [all …]
|
D | com_android_nfc_NativeLlcpSocket.cpp | 29 NFCSTATUS status) in nfc_jni_disconnect_callback() 40 static void nfc_jni_connect_callback(void* pContext, uint8_t nErrCode, NFCSTATUS status) in nfc_jni_connect_callback() 89 static void nfc_jni_receive_callback(void* pContext, NFCSTATUS status) in nfc_jni_receive_callback() 99 static void nfc_jni_send_callback(void *pContext, NFCSTATUS status) in nfc_jni_send_callback() 114 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doConnect() 168 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doConnectBy() 229 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doClose() 250 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doSend() 311 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doReceive() 377 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doGetRemoteSocketMIU() [all …]
|
D | com_android_nfc_NativeP2pDevice.cpp | 34 static void nfc_jni_presence_check_callback(void* pContext, NFCSTATUS status) in nfc_jni_presence_check_callback() 46 … phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() 64 static void nfc_jni_disconnect_callback(void *pContext, phLibNfc_Handle /*hRemoteDev*/, NFCSTATUS s… in nfc_jni_disconnect_callback() 74 static void nfc_jni_receive_callback(void *pContext, phNfc_sData_t *data, NFCSTATUS status) in nfc_jni_receive_callback() 94 static void nfc_jni_send_callback(void *pContext, NFCSTATUS status) in nfc_jni_send_callback() 109 phLibNfc_Handle /*handle*/, phNfc_sData_t *pResBuffer, NFCSTATUS status) in nfc_jni_transceive_callback() 123 NFCSTATUS status; in com_android_nfc_NativeP2pDevice_doConnect() 205 NFCSTATUS status; in com_android_nfc_NativeP2pDevice_doDisconnect() 273 NFCSTATUS status; in com_android_nfc_NativeP2pDevice_doTransceive() 359 NFCSTATUS status; in com_android_nfc_NativeP2pDevice_doReceive() [all …]
|
D | com_android_nfc_NativeNfcTag.cpp | 43 static void nfc_jni_tag_rw_callback(void *pContext, NFCSTATUS status) in nfc_jni_tag_rw_callback() 55 phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() 75 phLibNfc_ChkNdef_Info_t info, NFCSTATUS status) in nfc_jni_checkndef_callback() 102 phLibNfc_Handle /*hRemoteDev*/, NFCSTATUS status) in nfc_jni_disconnect_callback() 120 phLibNfc_Handle /*hRemoteDev*/, NFCSTATUS status) in nfc_jni_async_disconnect_callback() 135 phLibNfc_Handle /*handle*/, phNfc_sData_t *pResBuffer, NFCSTATUS status) in nfc_jni_transceive_callback() 147 static void nfc_jni_presencecheck_callback(void *pContext, NFCSTATUS status) in nfc_jni_presencecheck_callback() 157 static void nfc_jni_formatndef_callback(void *pContext, NFCSTATUS status) in nfc_jni_formatndef_callback() 167 static void nfc_jni_readonly_callback(void *pContext, NFCSTATUS status) in nfc_jni_readonly_callback() 181 NFCSTATUS status; in com_android_nfc_NativeNfcTag_doRead() [all …]
|
D | com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 29 static void nfc_jni_receive_callback(void* pContext, uint8_t ssap, NFCSTATUS status) in nfc_jni_receive_callback() 45 static void nfc_jni_send_callback(void *pContext, NFCSTATUS status) in nfc_jni_send_callback() 60 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 122 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 210 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doClose()
|
D | com_android_nfc.h | 168 NFCSTATUS status; 200 NFCSTATUS status; 236 const char* nfc_jni_get_status_name(NFCSTATUS status);
|
D | com_android_nfc_NativeLlcpServiceSocket.cpp | 32 NFCSTATUS status) in nfc_jni_llcp_accept_socket_callback() 73 NFCSTATUS ret = NFCSTATUS_SUCCESS; in com_NativeLlcpServiceSocket_doAccept() 181 NFCSTATUS ret; in com_NativeLlcpServiceSocket_doClose()
|
D | com_android_nfc.cpp | 315 const char* nfc_jni_get_status_name(NFCSTATUS status) in nfc_jni_get_status_name() 320 NFCSTATUS code; in nfc_jni_get_status_name()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/common/ |
D | phNfcStatus.h | 29 #define PHNFCSTBLOWER ((NFCSTATUS)(0x00FFU)) 47 ( (((NFCSTATUS)(phNfcStatus)) & (PHNFCSTBLOWER)) | \
|
D | phNfcTypes.h | 34 typedef uint16_t NFCSTATUS; /* Return values */ typedef
|