• Home
  • Raw
  • Download

Lines Matching refs:ii

230     for (int ii = 0; ii < sMax; ii++)  in registerServer()  local
232 if (mServers[ii] == NULL) in registerServer()
234 pSrv = mServers[ii] = new P2pServer(jniHandle, serviceName); in registerServer()
236 …ALOGV("%s: added new p2p server index: %d handle: %u name: %s", fn, ii, jniHandle, serviceName); in registerServer()
598 for (int ii = 0; ii < sMax; ii++) in removeConn() local
600 if ((mClients[ii] != NULL) && (mClients[ii]->mClientConn->mJniHandle == jniHandle)) in removeConn()
602 if (mClients[ii]->mNfaP2pClientHandle != NFA_HANDLE_INVALID) in removeConn()
603 NFA_P2pDeregister (mClients[ii]->mNfaP2pClientHandle); in removeConn()
605 mClients[ii] = NULL; in removeConn()
606 ALOGV("%s: deleted client handle: %u index: %u", fn, jniHandle, ii); in removeConn()
612 for (int ii = 0; ii < sMax; ii++) in removeConn() local
614 if (mServers[ii] != NULL) in removeConn()
616 if (mServers[ii]->removeServerConnection(jniHandle)) { in removeConn()
812 for (int ii = 0; ii < sMax; ii++) in findConnection() local
814 if ( (mClients[ii] != NULL) in findConnection()
815 && (mClients[ii]->mClientConn->mNfaConnHandle == nfaConnHandle) ) { in findConnection()
816 return mClients[ii]->mClientConn; in findConnection()
821 for (int ii = 0; ii < sMax; ii++) in findConnection() local
823 if (mServers[ii] != NULL) in findConnection()
825 sp<NfaConn> conn = mServers[ii]->findServerConnection(nfaConnHandle); in findConnection()
851 for (int ii = 0; ii < sMax; ii++) in findConnection() local
853 if ( (mClients[ii] != NULL) in findConnection()
854 && (mClients[ii]->mClientConn->mJniHandle == jniHandle) ) { in findConnection()
855 return mClients[ii]->mClientConn; in findConnection()
860 for (int ii = 0; ii < sMax; ii++) in findConnection() local
862 if (mServers[ii] != NULL) in findConnection()
864 sp<NfaConn> conn = mServers[ii]->findServerConnection(jniHandle); in findConnection()
1217 for (int ii = 0; ii < sMax; ii++) in handleNfcOnOff() local
1219 if (mClients[ii] != NULL) in handleNfcOnOff()
1221 if (mClients[ii]->mClientConn->mNfaConnHandle == NFA_HANDLE_INVALID) in handleNfcOnOff()
1223 SyncEventGuard guard (mClients[ii]->mConnectingEvent); in handleNfcOnOff()
1224 mClients[ii]->mConnectingEvent.notifyOne(); in handleNfcOnOff()
1228 mClients[ii]->mClientConn->mNfaConnHandle = NFA_HANDLE_INVALID; in handleNfcOnOff()
1230 SyncEventGuard guard1 (mClients[ii]->mClientConn->mCongEvent); in handleNfcOnOff()
1231 mClients[ii]->mClientConn->mCongEvent.notifyOne (); //unblock send() in handleNfcOnOff()
1234 SyncEventGuard guard2 (mClients[ii]->mClientConn->mReadEvent); in handleNfcOnOff()
1235 mClients[ii]->mClientConn->mReadEvent.notifyOne (); //unblock receive() in handleNfcOnOff()
1242 for (int ii = 0; ii < sMax; ii++) in handleNfcOnOff() local
1244 if (mServers[ii] != NULL) in handleNfcOnOff()
1246 mServers[ii]->unblockAll(); in handleNfcOnOff()
1755 for (int ii = 0; ii < MAX_NFA_CONNS_PER_SERVER; ii++) in allocateConnection() local
1757 if (mServerConn[ii] == NULL) in allocateConnection()
1759 mServerConn[ii] = new NfaConn; in allocateConnection()
1760 mServerConn[ii]->mJniHandle = jniHandle; in allocateConnection()
1761 return mServerConn[ii]; in allocateConnection()