Lines Matching refs:eventData
134 static void nfaConnectionCallback (UINT8 event, tNFA_CONN_EVT_DATA *eventData);
135 static void nfaDeviceManagementCallback (UINT8 event, tNFA_DM_CBACK_DATA *eventData);
203 ** eventData: Event data.
208 static void nfaConnectionCallback (UINT8 connEvent, tNFA_CONN_EVT_DATA* eventData)
231 ALOGD("%s: NFA_POLL_ENABLED_EVT: status = %u", __FUNCTION__, eventData->status);
240 ALOGD("%s: NFA_POLL_DISABLED_EVT: status = %u", __FUNCTION__, eventData->status);
249 ALOGD("%s: NFA_RF_DISCOVERY_STARTED_EVT: status = %u", __FUNCTION__, eventData->status);
258 ALOGD("%s: NFA_RF_DISCOVERY_STOPPED_EVT: status = %u", __FUNCTION__, eventData->status);
266 status = eventData->disc_result.status;
274 NfcTag::getInstance().connectionEventHandler(connEvent, eventData);
275 handleRfDiscoveryEvent(&eventData->disc_result.discovery_ntf);
280 ALOGD("%s: NFA_SELECT_RESULT_EVT: status = %d, gIsSelectingRfInterface = %d, sIsDisabling=%d", __FUNCTION__, eventData->status, gIsSelectingRfInterface, sIsDisabling);
285 if (eventData->status != NFA_STATUS_OK)
292 ALOGE("%s: NFA_SELECT_RESULT_EVT error: status = %d", __FUNCTION__, eventData->status);
298 ALOGD("%s: NFA_DEACTIVATE_FAIL_EVT: status = %d", __FUNCTION__, eventData->status);
314 if (isPeerToPeer(eventData->activated))
333 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
338 if (isListenMode(eventData->activated))
348 ALOGD("%s: NFA_DEACTIVATED_EVT Type: %u, gIsTagDeactivating: %d", __FUNCTION__, eventData->deactivated.type,gIsTagDeactivating);
349 NfcTag::getInstance().setDeactivationState (eventData->deactivated);
350 if (eventData->deactivated.type != NFA_DEACTIVATE_TYPE_SLEEP)
353 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
364 if ((eventData->deactivated.type == NFA_DEACTIVATE_TYPE_IDLE)
365 || (eventData->deactivated.type == NFA_DEACTIVATE_TYPE_DISCOVERY))
397 status = eventData->tlv_detect.status;
399 __FUNCTION__, status, eventData->tlv_detect.protocol,
400 eventData->tlv_detect.num_tlvs, eventData->tlv_detect.num_bytes);
410 status = eventData->ndef_detect.status;
414 eventData->ndef_detect.protocol, eventData->ndef_detect.max_size,
415 eventData->ndef_detect.cur_size, eventData->ndef_detect.flags);
416 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
418 eventData->ndef_detect.max_size, eventData->ndef_detect.cur_size,
419 eventData->ndef_detect.flags);
423 ALOGD("%s: NFA_DATA_EVT: len = %d", __FUNCTION__, eventData->data.len);
424 nativeNfcTag_doTransceiveStatus(eventData->data.p_data,eventData->data.len);
428 status = eventData->status;
437 ALOGD("%s: NFA_READ_CPLT_EVT: status = 0x%X", __FUNCTION__, eventData->status);
438 nativeNfcTag_doReadCompleted (eventData->status);
439 NfcTag::getInstance().connectionEventHandler (connEvent, eventData);
443 ALOGD("%s: NFA_WRITE_CPLT_EVT: status = %d", __FUNCTION__, eventData->status);
444 nativeNfcTag_doWriteStatus (eventData->status == NFA_STATUS_OK);
448 ALOGD("%s: NFA_SET_TAG_RO_EVT: status = %d", __FUNCTION__, eventData->status);
449 nativeNfcTag_doMakeReadonlyResult(eventData->status);
453 ALOGD("%s: NFA_CE_NDEF_WRITE_START_EVT: status: %d", __FUNCTION__, eventData->status);
455 if (eventData->status != NFA_STATUS_OK)
456 ALOGE("%s: NFA_CE_NDEF_WRITE_START_EVT error: status = %d", __FUNCTION__, eventData->status);
460 ALOGD("%s: FA_CE_NDEF_WRITE_CPLT_EVT: len = %lu", __FUNCTION__, eventData->ndef_write_cplt.len);
466 eventData->llcp_activated.is_initiator,
467 eventData->llcp_activated.remote_wks,
468 eventData->llcp_activated.remote_lsc,
469 eventData->llcp_activated.remote_link_miu,
470 eventData->llcp_activated.local_link_miu);
472 PeerToPeer::getInstance().llcpActivatedHandler (getNative(0, 0), eventData->llcp_activated);
477 PeerToPeer::getInstance().llcpDeactivatedHandler (getNative(0, 0), eventData->llcp_deactivated);
485 nativeNfcTag_doPresenceCheckResult (eventData->status);
488 ALOGD("%s: NFA_FORMAT_CPLT_EVT: status=0x%X", __FUNCTION__, eventData->status);
489 nativeNfcTag_formatStatus (eventData->status == NFA_STATUS_OK);
493 ALOGD("%s: NFA_I93_CMD_CPLT_EVT: status=0x%X", __FUNCTION__, eventData->status);
497 ALOGD("%s: NFA_CE_UICC_LISTEN_CONFIGURED_EVT : status=0x%X", __FUNCTION__, eventData->status);
498 SecureElement::getInstance().connectionEventHandler (connEvent, eventData);
503 PeerToPeer::getInstance().connectionEventHandler (connEvent, eventData);
598 ** eventData: Data associated with event ID.
603 void nfaDeviceManagementCallback (UINT8 dmEvent, tNFA_DM_CBACK_DATA* eventData)
613 __FUNCTION__, eventData->status);
614 sIsNfaEnabled = eventData->status == NFA_STATUS_OK;
642 if (eventData->status == NFA_STATUS_OK &&
643 eventData->get_config.tlv_size <= sizeof(sConfig))
645 sCurrentConfigLen = eventData->get_config.tlv_size;
646 memcpy(sConfig, eventData->get_config.param_tlvs, eventData->get_config.tlv_size);
659 eventData->rf_field.status, eventData->rf_field.rf_field_status);
663 if (!sP2pActive && eventData->rf_field.status == NFA_STATUS_OK)
665 eventData->rf_field.rf_field_status == NFA_DM_RF_FIELD_ON);
714 PowerSwitch::getInstance ().deviceManagementCallback (dmEvent, eventData);