Lines Matching refs:mClients
73 memset(mClients, 0, sizeof(mClients)); in PeerToPeer()
521 if (mClients[i] == NULL) { in createClient()
522 mClients[i] = client = new P2pClient(); in createClient()
524 mClients[i]->mClientConn->mJniHandle = jniHandle; in createClient()
525 mClients[i]->mClientConn->mMaxInfoUnit = miu; in createClient()
526 mClients[i]->mClientConn->mRecvWindow = rw; in createClient()
542 SyncEventGuard guard(mClients[i]->mRegisteringEvent); in createClient()
544 mClients[i]->mRegisteringEvent.wait(); // wait for NFA_P2P_REG_CLIENT_EVT in createClient()
547 if (mClients[i]->mNfaP2pClientHandle != NFA_HANDLE_INVALID) { in createClient()
577 if ((mClients[ii] != NULL) && in removeConn()
578 (mClients[ii]->mClientConn->mJniHandle == jniHandle)) { in removeConn()
579 if (mClients[ii]->mNfaP2pClientHandle != NFA_HANDLE_INVALID) in removeConn()
580 NFA_P2pDeregister(mClients[ii]->mNfaP2pClientHandle); in removeConn()
582 mClients[ii] = NULL; in removeConn()
721 if ((mClients[i] != NULL) && in findClient()
722 (mClients[i]->mNfaP2pClientHandle == nfaConnHandle)) in findClient()
723 return (mClients[i]); in findClient()
741 if ((mClients[i] != NULL) && in findClient()
742 (mClients[i]->mClientConn->mJniHandle == jniHandle)) in findClient()
743 return (mClients[i]); in findClient()
761 if ((mClients[i] != NULL) && in findClientCon()
762 (mClients[i]->mClientConn->mNfaConnHandle == nfaConnHandle)) in findClientCon()
763 return (mClients[i]); in findClientCon()
782 if ((mClients[ii] != NULL) && in findConnection()
783 (mClients[ii]->mClientConn->mNfaConnHandle == nfaConnHandle)) { in findConnection()
784 return mClients[ii]->mClientConn; in findConnection()
816 if ((mClients[ii] != NULL) && in findConnection()
817 (mClients[ii]->mClientConn->mJniHandle == jniHandle)) { in findConnection()
818 return mClients[ii]->mClientConn; in findConnection()
1168 memset(mClients, 0, sizeof(mClients)); in handleNfcOnOff()
1172 if (mClients[ii] != NULL) { in handleNfcOnOff()
1173 if (mClients[ii]->mClientConn->mNfaConnHandle == NFA_HANDLE_INVALID) { in handleNfcOnOff()
1174 SyncEventGuard guard(mClients[ii]->mConnectingEvent); in handleNfcOnOff()
1175 mClients[ii]->mConnectingEvent.notifyOne(); in handleNfcOnOff()
1177 mClients[ii]->mClientConn->mNfaConnHandle = NFA_HANDLE_INVALID; in handleNfcOnOff()
1179 SyncEventGuard guard1(mClients[ii]->mClientConn->mCongEvent); in handleNfcOnOff()
1180 mClients[ii] in handleNfcOnOff()
1184 SyncEventGuard guard2(mClients[ii]->mClientConn->mReadEvent); in handleNfcOnOff()
1185 mClients[ii] in handleNfcOnOff()