Lines Matching defs:RoutingManager
26 #include "RoutingManager.h"
37 const JNINativeMethod RoutingManager::sMethods [] =
39 {"doGetDefaultRouteDestination", "()I", (void*) RoutingManager::com_android_nfc_cardemulation_doGetDefaultRouteDestination},
40 {"doGetDefaultOffHostRouteDestination", "()I", (void*) RoutingManager::com_android_nfc_cardemulation_doGetDefaultOffHostRouteDestination},
41 {"doGetAidMatchingMode", "()I", (void*) RoutingManager::com_android_nfc_cardemulation_doGetAidMatchingMode}
46 RoutingManager::RoutingManager ()
48 static const char fn [] = "RoutingManager::RoutingManager()";
83 RoutingManager::~RoutingManager ()
88 bool RoutingManager::initialize (nfc_jni_native_data* native)
90 static const char fn [] = "RoutingManager::initialize()";
159 RoutingManager& RoutingManager::getInstance ()
161 static RoutingManager manager;
165 void RoutingManager::enableRoutingToHost()
191 void RoutingManager::disableRoutingToHost()
216 bool RoutingManager::addAidRouting(const UINT8* aid, UINT8 aidLen, int route)
218 static const char fn [] = "RoutingManager::addAidRouting";
232 bool RoutingManager::removeAidRouting(const UINT8* aid, UINT8 aidLen)
234 static const char fn [] = "RoutingManager::removeAidRouting";
248 bool RoutingManager::commitRouting()
250 static const char fn [] = "RoutingManager::commitRouting";
264 void RoutingManager::onNfccShutdown ()
266 static const char fn [] = "RoutingManager:onNfccShutdown";
306 void RoutingManager::notifyActivated ()
324 void RoutingManager::notifyDeactivated ()
343 void RoutingManager::handleData (const UINT8* data, UINT32 dataLen, tNFA_STATUS status)
363 ALOGE("RoutingManager::handleData: read data fail");
403 void RoutingManager::stackCallback (UINT8 event, tNFA_CONN_EVT_DATA* eventData)
405 static const char fn [] = "RoutingManager::stackCallback";
407 RoutingManager& routingManager = RoutingManager::getInstance();
427 routingManager.notifyActivated();
435 routingManager.notifyDeactivated();
462 void RoutingManager::nfaEeCallback (tNFA_EE_EVT event, tNFA_EE_CBACK_DATA* eventData)
464 static const char fn [] = "RoutingManager::nfaEeCallback";
466 RoutingManager& routingManager = RoutingManager::getInstance();
472 SyncEventGuard guard (routingManager.mEeRegisterEvent);
474 routingManager.mEeRegisterEvent.notifyOne();
480 SyncEventGuard guard (routingManager.mEeSetModeEvent);
483 routingManager.mEeSetModeEvent.notifyOne();
490 SyncEventGuard guard(routingManager.mRoutingEvent);
491 routingManager.mRoutingEvent.notifyOne();
498 SyncEventGuard guard(routingManager.mRoutingEvent);
499 routingManager.mRoutingEvent.notifyOne();
527 SyncEventGuard guard (routingManager.mEeInfoEvent);
528 memcpy (&routingManager.mEeInfo, &eventData->discover_req, sizeof(routingManager.mEeInfo));
529 routingManager.mReceivedEeInfo = true;
530 routingManager.mEeInfoEvent.notifyOne();
560 SyncEventGuard guard(routingManager.mEeUpdateEvent);
561 routingManager.mEeUpdateEvent.notifyOne();
571 int RoutingManager::registerJniFunctions (JNIEnv* e)
573 static const char fn [] = "RoutingManager::registerJniFunctions";
578 int RoutingManager::com_android_nfc_cardemulation_doGetDefaultRouteDestination (JNIEnv*)
583 int RoutingManager::com_android_nfc_cardemulation_doGetDefaultOffHostRouteDestination (JNIEnv*)
588 int RoutingManager::com_android_nfc_cardemulation_doGetAidMatchingMode (JNIEnv*)