Lines Matching defs:pClient
544 ALOGD ("%s: pClient: 0x%p assigned for client jniHandle: %u", fn, client.get(), jniHandle);
669 sp<P2pClient> pClient = NULL;
671 if ((pClient = findClient (jniHandle)) == NULL)
678 SyncEventGuard guard (pClient->mConnectingEvent);
679 pClient->mIsConnecting = true;
682 nfaStat = NFA_P2pConnectByName (pClient->mNfaP2pClientHandle,
683 const_cast<char*>(serviceName), pClient->mClientConn->mMaxInfoUnit,
684 pClient->mClientConn->mRecvWindow);
686 nfaStat = NFA_P2pConnectBySap (pClient->mNfaP2pClientHandle, destinationSap,
687 pClient->mClientConn->mMaxInfoUnit, pClient->mClientConn->mRecvWindow);
690 ALOGD ("%s: wait for connected event mConnectingEvent: 0x%p", fn, pClient.get());
691 pClient->mConnectingEvent.wait();
697 if (pClient->mClientConn->mNfaConnHandle == NFA_HANDLE_INVALID)
703 pClient->mIsConnecting = false;
980 sp<P2pClient> pClient = NULL;
992 if ( ((pClient = findClient(jniHandle)) != NULL) && (pClient->mIsConnecting) )
994 SyncEventGuard guard (pClient->mConnectingEvent);
995 pClient->mConnectingEvent.notifyOne();
1374 sp<P2pClient> pClient = NULL;
1382 if ((pClient = sP2p.findClient ((tNFA_HANDLE)NFA_HANDLE_INVALID)) == NULL)
1388 ALOGD ("%s: NFA_P2P_REG_CLIENT_EVT; Conn Handle: 0x%04x, pClient: 0x%p", fn, eventData->reg_client.client_handle, pClient.get());
1390 SyncEventGuard guard (pClient->mRegisteringEvent);
1391 pClient->mNfaP2pClientHandle = eventData->reg_client.client_handle;
1392 pClient->mRegisteringEvent.notifyOne();
1398 if ((pClient = sP2p.findClient (eventData->activated.handle)) == NULL)
1404 ALOGD ("%s: NFA_P2P_ACTIVATED_EVT; Conn Handle: 0x%04x, pClient: 0x%p", fn, eventData->activated.handle, pClient.get());
1414 if ((pClient = sP2p.findClient (eventData->connected.client_handle)) == NULL)
1420 ALOGD ("%s: NFA_P2P_CONNECTED_EVT; client_handle=0x%04x conn_handle: 0x%04x remote sap=0x%X pClient: 0x%p", fn,
1421 eventData->connected.client_handle, eventData->connected.conn_handle, eventData->connected.remote_sap, pClient.get());
1423 SyncEventGuard guard (pClient->mConnectingEvent);
1424 pClient->mClientConn->mNfaConnHandle = eventData->connected.conn_handle;
1425 pClient->mClientConn->mRemoteMaxInfoUnit = eventData->connected.remote_miu;
1426 pClient->mClientConn->mRemoteRecvWindow = eventData->connected.remote_rw;
1427 pClient->mConnectingEvent.notifyOne(); //unblock createDataLinkConn()
1437 if ((pClient = sP2p.findClient (eventData->disc.handle)) == NULL)
1443 SyncEventGuard guard (pClient->mConnectingEvent);
1444 pClient->mConnectingEvent.notifyOne();