Searched refs:jniHandle (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Nfc/nci/jni/ |
D | PeerToPeer.cpp | 161 sp<P2pServer> PeerToPeer::findServerLocked (tJNI_HANDLE jniHandle) in findServerLocked() argument 166 && (mServers[i]->mJniHandle == jniHandle) ) in findServerLocked() 212 bool PeerToPeer::registerServer (tJNI_HANDLE jniHandle, const char *serviceName) in registerServer() argument 215 ALOGD ("%s: enter; service name: %s JNI handle: %u", fn, serviceName, jniHandle); in registerServer() 225 pSrv->mJniHandle = jniHandle; in registerServer() 234 pSrv = mServers[ii] = new P2pServer(jniHandle, serviceName); in registerServer() 236 …ALOGD ("%s: added new p2p server index: %d handle: %u name: %s", fn, ii, jniHandle, serviceName… in registerServer() 253 removeServer (jniHandle); in registerServer() 269 void PeerToPeer::removeServer (tJNI_HANDLE jniHandle) in removeServer() argument 277 if ( (mServers[i] != NULL) && (mServers[i]->mJniHandle == jniHandle) ) in removeServer() [all …]
|
D | PeerToPeer.h | 150 bool registerServer (tJNI_HANDLE jniHandle, const char* serviceName); 162 bool deregisterServer (tJNI_HANDLE jniHandle); 193 bool createClient (tJNI_HANDLE jniHandle, UINT16 miu, UINT8 rw); 207 bool connectConnOriented (tJNI_HANDLE jniHandle, const char* serviceName); 221 bool connectConnOriented (tJNI_HANDLE jniHandle, UINT8 destinationSap); 236 bool send (tJNI_HANDLE jniHandle, UINT8* buffer, UINT16 bufferLen); 252 bool receive (tJNI_HANDLE jniHandle, UINT8* buffer, UINT16 bufferLen, UINT16& actualLen); 265 bool disconnectConnOriented (tJNI_HANDLE jniHandle); 278 UINT16 getRemoteMaxInfoUnit (tJNI_HANDLE jniHandle); 291 UINT8 getRemoteRecvWindow (tJNI_HANDLE jniHandle); [all …]
|
D | NativeLlcpSocket.cpp | 43 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnect() local 44 bool stat = PeerToPeer::getInstance().connectConnOriented (jniHandle, nSap); in nativeLlcpSocket_doConnect() 67 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnectBy() local 74 bool stat = PeerToPeer::getInstance().connectConnOriented(jniHandle, serviceName.c_str()); in nativeLlcpSocket_doConnectBy() 96 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doClose() local 97 bool stat = PeerToPeer::getInstance().disconnectConnOriented (jniHandle); in nativeLlcpSocket_doClose() 122 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doSend() local 124 bool stat = PeerToPeer::getInstance().send(jniHandle, raw_ptr, bytes.size()); in nativeLlcpSocket_doSend() 149 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doReceive() local 151 …bool stat = PeerToPeer::getInstance().receive(jniHandle, reinterpret_cast<UINT8*>(&bytes[0]), byte… in nativeLlcpSocket_doReceive() [all …]
|
D | NativeNfcManager.cpp | 1231 PeerToPeer::tJNI_HANDLE jniHandle = PeerToPeer::getInstance().getNewJniHandle (); in nfcManager_doCreateLlcpServiceSocket() local 1254 if (!PeerToPeer::getInstance().registerServer (jniHandle, serviceName.c_str())) in nfcManager_doCreateLlcpServiceSocket() 1264 e->SetIntField(serviceSocket, f, (jint) jniHandle); in nfcManager_doCreateLlcpServiceSocket() 1265 ALOGD ("%s: socket Handle = 0x%X", __FUNCTION__, jniHandle); in nfcManager_doCreateLlcpServiceSocket() 1388 PeerToPeer::tJNI_HANDLE jniHandle = PeerToPeer::getInstance().getNewJniHandle (); in nfcManager_doCreateLlcpSocket() local 1389 PeerToPeer::getInstance().createClient (jniHandle, miu, rw); in nfcManager_doCreateLlcpSocket() 1416 e->SetIntField (clientSocket, f, (jint) jniHandle); in nfcManager_doCreateLlcpSocket()
|