Home | History | Annotate | Download | only in jni

Lines Matching full:eventdata

146 static void nfaConnectionCallback (UINT8 event, tNFA_CONN_EVT_DATA *eventData);
147 static void nfaDeviceManagementCallback (UINT8 event, tNFA_DM_CBACK_DATA *eventData);
218 ** eventData: Event data.
223 static void nfaConnectionCallback (UINT8 connEvent, tNFA_CONN_EVT_DATA* eventData)
232 ALOGD("%s: NFA_POLL_ENABLED_EVT: status = %u", __FUNCTION__, eventData->status);
241 ALOGD("%s: NFA_POLL_DISABLED_EVT: status = %u", __FUNCTION__, eventData->status);
250 ALOGD("%s: NFA_RF_DISCOVERY_STARTED_EVT: status = %u", __FUNCTION__, eventData->status);
259 ALOGD("%s: NFA_RF_DISCOVERY_STOPPED_EVT: status = %u", __FUNCTION__, eventData->status);
267 status = eventData->disc_result.status;
275 NfcTag::getInstance().connectionEventHandler(connEvent, eventData);
276 handleRfDiscoveryEvent(&eventData->disc_result.discovery_ntf);
281 ALOGD("%s: NFA_SELECT_RESULT_EVT: status = %d, gIsSelectingRfInterface = %d, sIsDisabling=%d", __FUNCTION__, eventData->status, gIsSelectingRfInterface, sIsDisabling);
286 if (eventData->status != NFA_STATUS_OK)
293 ALOGE("%s: NFA_SELECT_RESULT_EVT error: status = %d", __FUNCTION__, eventData->status);
299 ALOGD("%s: NFA_DEACTIVATE_FAIL_EVT: status = %d", __FUNCTION__, eventData->status);
317 if (isPeerToPeer(eventData->activated))
342 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
347 if (isListenMode(eventData->activated))
356 ALOGD("%s: NFA_DEACTIVATED_EVT Type: %u, gIsTagDeactivating: %d", __FUNCTION__, eventData->deactivated.type,gIsTagDeactivating);
357 NfcTag::getInstance().setDeactivationState (eventData->deactivated);
358 if (eventData->deactivated.type != NFA_DEACTIVATE_TYPE_SLEEP)
366 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
378 if ((eventData->deactivated.type == NFA_DEACTIVATE_TYPE_IDLE)
379 || (eventData->deactivated.type == NFA_DEACTIVATE_TYPE_DISCOVERY))
411 status = eventData->tlv_detect.status;
413 __FUNCTION__, status, eventData->tlv_detect.protocol,
414 eventData->tlv_detect.num_tlvs, eventData->tlv_detect.num_bytes);
424 status = eventData->ndef_detect.status;
428 eventData->ndef_detect.protocol, eventData->ndef_detect.max_size,
429 eventData->ndef_detect.cur_size, eventData->ndef_detect.flags);
430 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
432 eventData->ndef_detect.max_size, eventData->ndef_detect.cur_size,
433 eventData->ndef_detect.flags);
437 ALOGD("%s: NFA_DATA_EVT: len = %d", __FUNCTION__, eventData->data.len);
438 nativeNfcTag_doTransceiveStatus(eventData->data.p_data,eventData->data.len);
445 status = eventData->status;
454 ALOGD("%s: NFA_READ_CPLT_EVT: status = 0x%X", __FUNCTION__, eventData->status);
455 nativeNfcTag_doReadCompleted (eventData->status);
456 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
460 ALOGD("%s: NFA_WRITE_CPLT_EVT: status = %d", __FUNCTION__, eventData->status);
461 nativeNfcTag_doWriteStatus (eventData->status == NFA_STATUS_OK);
465 ALOGD("%s: NFA_SET_TAG_RO_EVT: status = %d", __FUNCTION__, eventData->status);
466 nativeNfcTag_doMakeReadonlyResult(eventData->status);
470 ALOGD("%s: NFA_CE_NDEF_WRITE_START_EVT: status: %d", __FUNCTION__, eventData->status);
472 if (eventData->status != NFA_STATUS_OK)
473 ALOGE("%s: NFA_CE_NDEF_WRITE_START_EVT error: status = %d", __FUNCTION__, eventData->status);
477 ALOGD("%s: FA_CE_NDEF_WRITE_CPLT_EVT: len = %lu", __FUNCTION__, eventData->ndef_write_cplt.len);
483 eventData->llcp_activated.is_initiator,
484 eventData->llcp_activated.remote_wks,
485 eventData->llcp_activated.remote_lsc,
486 eventData->llcp_activated.remote_link_miu,
487 eventData->llcp_activated.local_link_miu);
489 PeerToPeer::getInstance().llcpActivatedHandler (getNative(0, 0), eventData->llcp_activated);
494 PeerToPeer::getInstance().llcpDeactivatedHandler (getNative(0, 0), eventData->llcp_deactivated);
502 nativeNfcTag_doPresenceCheckResult (eventData->status);
505 ALOGD("%s: NFA_FORMAT_CPLT_EVT: status=0x%X", __FUNCTION__, eventData->status);
506 nativeNfcTag_formatStatus (eventData->status == NFA_STATUS_OK);
510 ALOGD("%s: NFA_I93_CMD_CPLT_EVT: status=0x%X", __FUNCTION__, eventData->status);
514 ALOGD("%s: NFA_CE_UICC_LISTEN_CONFIGURED_EVT : status=0x%X", __FUNCTION__, eventData->status);
515 SecureElement::getInstance().connectionEventHandler (connEvent, eventData);
520 PeerToPeer::getInstance().connectionEventHandler (connEvent, eventData);
624 ** eventData: Data associated with event ID.
629 void nfaDeviceManagementCallback (UINT8 dmEvent, tNFA_DM_CBACK_DATA* eventData)
639 __FUNCTION__, eventData->status);
640 sIsNfaEnabled = eventData->status == NFA_STATUS_OK;
668 if (eventData->status == NFA_STATUS_OK &&
669 eventData->get_config.tlv_size <= sizeof(sConfig))
671 sCurrentConfigLen = eventData->get_config.tlv_size;
672 memcpy(sConfig, eventData->get_config.param_tlvs, eventData->get_config.tlv_size);
685 eventData->rf_field.status, eventData->rf_field.rf_field_status);
689 if (!sP2pActive && eventData->rf_field.status == NFA_STATUS_OK)
691 eventData->rf_field.rf_field_status == NFA_DM_RF_FIELD_ON);
744 PowerSwitch::getInstance ().deviceManagementCallback (dmEvent, eventData);