Lines Matching refs:status
32 static void nfc_jni_presence_check_callback(void* pContext, NFCSTATUS status)
35 LOG_CALLBACK("nfc_jni_presence_check_callback", status);
37 /* Report the callback status and wake up the caller */
38 pCallbackData->status = status;
44 phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status)
48 LOG_CALLBACK("nfc_jni_connect_callback", status);
50 if(status == NFCSTATUS_SUCCESS)
57 /* Report the callback status and wake up the caller */
58 pCallbackData->status = status;
62 static void nfc_jni_disconnect_callback(void *pContext, phLibNfc_Handle hRemoteDev, NFCSTATUS status)
65 LOG_CALLBACK("nfc_jni_disconnect_callback", status);
67 /* Report the callback status and wake up the caller */
68 pCallbackData->status = status;
72 static void nfc_jni_receive_callback(void *pContext, phNfc_sData_t *data, NFCSTATUS status)
76 LOG_CALLBACK("nfc_jni_receive_callback", status);
78 if(status == NFCSTATUS_SUCCESS)
87 /* Report the callback status and wake up the caller */
88 pCallbackData->status = status;
92 static void nfc_jni_send_callback(void *pContext, NFCSTATUS status)
95 LOG_CALLBACK("nfc_jni_send_callback", status);
97 /* Report the callback status and wake up the caller */
98 pCallbackData->status = status;
107 phLibNfc_Handle handle, phNfc_sData_t *pResBuffer, NFCSTATUS status)
110 LOG_CALLBACK("nfc_jni_transceive_callback", status);
114 pCallbackData->status = status;
121 NFCSTATUS status;
145 status = phLibNfc_RemoteDev_Connect(handle, nfc_jni_connect_callback, (void*)&cb_data);
147 if(status != NFCSTATUS_PENDING)
149 LOGE("phLibNfc_RemoteDev_Connect(P2P) returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
152 TRACE("phLibNfc_RemoteDev_Connect(P2P) returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
161 if(cb_data.status != NFCSTATUS_SUCCESS)
203 NFCSTATUS status;
226 status = phLibNfc_RemoteDev_Disconnect(handle, NFC_DISCOVERY_CONTINUE,nfc_jni_disconnect_callback, (void *)&cb_data);
228 if(status != NFCSTATUS_PENDING)
230 LOGE("phLibNfc_RemoteDev_Disconnect() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
231 if(status == NFCSTATUS_TARGET_NOT_CONNECTED)
243 TRACE("phLibNfc_RemoteDev_Disconnect() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
252 /* Disconnect Status */
253 if(cb_data.status != NFCSTATUS_SUCCESS)
271 NFCSTATUS status;
309 status = phLibNfc_RemoteDev_Transceive(handle, &transceive_info, nfc_jni_transceive_callback, (void *)&cb_data);
311 if(status != NFCSTATUS_PENDING)
313 LOGE("phLibNfc_RemoteDev_Transceive(P2P) returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
316 TRACE("phLibNfc_RemoteDev_Transceive(P2P) returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
325 if(cb_data.status != NFCSTATUS_SUCCESS)
357 NFCSTATUS status;
377 status = phLibNfc_RemoteDev_Receive(handle, nfc_jni_receive_callback,(void *)&cb_data);
379 if(status != NFCSTATUS_PENDING)
381 LOGE("phLibNfc_RemoteDev_Receive() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
384 TRACE("phLibNfc_RemoteDev_Receive() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
410 NFCSTATUS status;
433 status = phLibNfc_RemoteDev_Send(handle, &data, nfc_jni_send_callback,(void *)&cb_data);
435 if(status != NFCSTATUS_PENDING)
437 LOGE("phLibNfc_RemoteDev_Send() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
440 TRACE("phLibNfc_RemoteDev_Send() returned 0x%04x[%s]", status, nfc_jni_get_status_name(status));
449 if(cb_data.status != NFCSTATUS_SUCCESS)