Home
last modified time | relevance | path

Searched refs:PeerToPeer (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Nfc/nci/jni/
DNativeLlcpSocket.cpp46 PeerToPeer::tJNI_HANDLE jniHandle = in nativeLlcpSocket_doConnect()
47 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnect()
48 bool stat = PeerToPeer::getInstance().connectConnOriented(jniHandle, nSap); in nativeLlcpSocket_doConnect()
69 PeerToPeer::tJNI_HANDLE jniHandle = in nativeLlcpSocket_doConnectBy()
70 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnectBy()
76 bool stat = PeerToPeer::getInstance().connectConnOriented( in nativeLlcpSocket_doConnectBy()
97 PeerToPeer::tJNI_HANDLE jniHandle = in nativeLlcpSocket_doClose()
98 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doClose()
99 bool stat = PeerToPeer::getInstance().disconnectConnOriented(jniHandle); in nativeLlcpSocket_doClose()
122 PeerToPeer::tJNI_HANDLE jniHandle = in nativeLlcpSocket_doSend()
[all …]
DPeerToPeer.cpp51 PeerToPeer PeerToPeer::sP2p;
65 PeerToPeer::PeerToPeer() in PeerToPeer() function in PeerToPeer
85 PeerToPeer::~PeerToPeer() {} in ~PeerToPeer()
96 PeerToPeer& PeerToPeer::getInstance() { return sP2p; } in getInstance()
107 void PeerToPeer::initialize() { in initialize()
125 sp<P2pServer> PeerToPeer::findServerLocked(tNFA_HANDLE nfaP2pServerHandle) { in findServerLocked()
148 sp<P2pServer> PeerToPeer::findServerLocked(tJNI_HANDLE jniHandle) { in findServerLocked()
170 sp<P2pServer> PeerToPeer::findServerLocked(const char* serviceName) { in findServerLocked()
192 bool PeerToPeer::registerServer(tJNI_HANDLE jniHandle, in registerServer()
252 void PeerToPeer::removeServer(tJNI_HANDLE jniHandle) { in removeServer()
[all …]
DPeerToPeer.h40 class PeerToPeer {
53 PeerToPeer();
64 ~PeerToPeer();
75 static PeerToPeer& getInstance();
377 static PeerToPeer sP2p;
564 PeerToPeer::tJNI_HANDLE mJniHandle; // JNI handle of the P2P connection
597 PeerToPeer::tJNI_HANDLE mJniHandle; // JNI Handle
611 P2pServer(PeerToPeer::tJNI_HANDLE jniHandle, const char* serviceName);
637 bool accept(PeerToPeer::tJNI_HANDLE serverJniHandle,
638 PeerToPeer::tJNI_HANDLE connJniHandle, int maxInfoUnit,
[all …]
DNativeLlcpServiceSocket.cpp54 PeerToPeer::tJNI_HANDLE serverHandle; // handle of the local server in nativeLlcpServiceSocket_doAccept()
56 PeerToPeer::tJNI_HANDLE connHandle = in nativeLlcpServiceSocket_doAccept()
57 PeerToPeer::getInstance().getNewJniHandle(); in nativeLlcpServiceSocket_doAccept()
61 serverHandle = (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpServiceSocket_doAccept()
63 stat = PeerToPeer::getInstance().accept(serverHandle, connHandle, miu, rw); in nativeLlcpServiceSocket_doAccept()
115 PeerToPeer::tJNI_HANDLE jniServerHandle = 0; in nativeLlcpServiceSocket_doClose()
120 stat = PeerToPeer::getInstance().deregisterServer(jniServerHandle); in nativeLlcpServiceSocket_doClose()
DNativeNfcManager.cpp599 PeerToPeer::getInstance().llcpActivatedHandler(getNative(0, 0), in nfaConnectionCallback()
606 PeerToPeer::getInstance().llcpDeactivatedHandler( in nfaConnectionCallback()
612 PeerToPeer::getInstance().llcpFirstPacketHandler(getNative(0, 0)); in nfaConnectionCallback()
639 PeerToPeer::getInstance().connectionEventHandler(connEvent, eventData); in nfaConnectionCallback()
1107 PeerToPeer::getInstance().initialize(); in nfcManager_doInitialize()
1108 PeerToPeer::getInstance().handleNfcOnOff(true); in nfcManager_doInitialize()
1271 PeerToPeer::getInstance().enableP2pListening(true); in nfcManager_enableDiscovery()
1275 PeerToPeer::getInstance().enableP2pListening(false); in nfcManager_enableDiscovery()
1346 PeerToPeer::getInstance().enableP2pListening(false); in nfcManager_disableDiscovery()
1376 PeerToPeer::tJNI_HANDLE jniHandle = in nfcManager_doCreateLlcpServiceSocket()
[all …]