Lines Matching refs:ii

213   for (int ii = 0; ii < sMax; ii++) {  in registerServer()  local
214 if (mServers[ii] == NULL) { in registerServer()
215 pSrv = mServers[ii] = new P2pServer(jniHandle, serviceName); in registerServer()
218 "%s: added new p2p server index: %d handle: %u name: %s", fn, ii, in registerServer()
576 for (int ii = 0; ii < sMax; ii++) { in removeConn() local
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()
584 "%s: deleted client handle: %u index: %u", fn, jniHandle, ii); in removeConn()
590 for (int ii = 0; ii < sMax; ii++) { in removeConn() local
591 if (mServers[ii] != NULL) { in removeConn()
592 if (mServers[ii]->removeServerConnection(jniHandle)) { in removeConn()
781 for (int ii = 0; ii < sMax; ii++) { in findConnection() local
782 if ((mClients[ii] != NULL) && in findConnection()
783 (mClients[ii]->mClientConn->mNfaConnHandle == nfaConnHandle)) { in findConnection()
784 return mClients[ii]->mClientConn; in findConnection()
789 for (int ii = 0; ii < sMax; ii++) { in findConnection() local
790 if (mServers[ii] != NULL) { in findConnection()
791 sp<NfaConn> conn = mServers[ii]->findServerConnection(nfaConnHandle); in findConnection()
815 for (int ii = 0; ii < sMax; ii++) { in findConnection() local
816 if ((mClients[ii] != NULL) && in findConnection()
817 (mClients[ii]->mClientConn->mJniHandle == jniHandle)) { in findConnection()
818 return mClients[ii]->mClientConn; in findConnection()
823 for (int ii = 0; ii < sMax; ii++) { in findConnection() local
824 if (mServers[ii] != NULL) { in findConnection()
825 sp<NfaConn> conn = mServers[ii]->findServerConnection(jniHandle); in findConnection()
1171 for (int ii = 0; ii < sMax; ii++) { in handleNfcOnOff() local
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()
1193 for (int ii = 0; ii < sMax; ii++) { in handleNfcOnOff() local
1194 if (mServers[ii] != NULL) { in handleNfcOnOff()
1195 mServers[ii]->unblockAll(); in handleNfcOnOff()
1741 for (int ii = 0; ii < MAX_NFA_CONNS_PER_SERVER; ii++) { in allocateConnection() local
1742 if (mServerConn[ii] == NULL) { in allocateConnection()
1743 mServerConn[ii] = new NfaConn; in allocateConnection()
1744 mServerConn[ii]->mJniHandle = jniHandle; in allocateConnection()
1745 return mServerConn[ii]; in allocateConnection()