Lines Matching refs:fn
194 static const char fn[] = "PeerToPeer::registerServer"; in registerServer() local
196 << StringPrintf("%s: enter; service name: %s JNI handle: %u", fn, in registerServer()
204 "%s: service name=%s already registered, handle: 0x%04x", fn, in registerServer()
218 "%s: added new p2p server index: %d handle: %u name: %s", fn, ii, in registerServer()
226 LOG(ERROR) << StringPrintf("%s: service name=%s no free entry", fn, in registerServer()
233 "%s: got new p2p server h=0x%X", fn, pSrv->mNfaP2pServerHandle); in registerServer()
236 LOG(ERROR) << StringPrintf("%s: invalid server handle", fn); in registerServer()
253 static const char fn[] = "PeerToPeer::removeServer"; in removeServer() local
261 fn, jniHandle, mServers[i]->mNfaP2pServerHandle, in removeServer()
268 LOG(ERROR) << StringPrintf("%s: unknown server jni handle: %u", fn, in removeServer()
285 static const char fn[] = "PeerToPeer::llcpActivatedHandler"; in llcpActivatedHandler() local
286 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: enter", fn); in llcpActivatedHandler()
296 LOG(ERROR) << StringPrintf("%s: jni env is null", fn); in llcpActivatedHandler()
300 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: get object class", fn); in llcpActivatedHandler()
304 LOG(ERROR) << StringPrintf("%s: fail get p2p device", fn); in llcpActivatedHandler()
308 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: instantiate", fn); in llcpActivatedHandler()
317 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: p2p initiator", fn); in llcpActivatedHandler()
320 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: p2p target", fn); in llcpActivatedHandler()
338 << StringPrintf("%s: notify nfc service", fn); in llcpActivatedHandler()
346 LOG(ERROR) << StringPrintf("%s: fail notify", fn); in llcpActivatedHandler()
349 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in llcpActivatedHandler()
365 static const char fn[] = "PeerToPeer::llcpDeactivatedHandler"; in llcpDeactivatedHandler() local
366 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: enter", fn); in llcpDeactivatedHandler()
371 LOG(ERROR) << StringPrintf("%s: jni env is null", fn); in llcpDeactivatedHandler()
376 << StringPrintf("%s: notify nfc service", fn); in llcpDeactivatedHandler()
383 LOG(ERROR) << StringPrintf("%s: fail notify", fn); in llcpDeactivatedHandler()
388 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in llcpDeactivatedHandler()
392 static const char fn[] = "PeerToPeer::llcpFirstPacketHandler"; in llcpFirstPacketHandler() local
393 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: enter", fn); in llcpFirstPacketHandler()
398 LOG(ERROR) << StringPrintf("%s: jni env is null", fn); in llcpFirstPacketHandler()
403 << StringPrintf("%s: notify nfc service", fn); in llcpFirstPacketHandler()
410 LOG(ERROR) << StringPrintf("%s: fail notify", fn); in llcpFirstPacketHandler()
413 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in llcpFirstPacketHandler()
430 static const char fn[] = "PeerToPeer::accept"; in accept() local
436 fn, serverJniHandle, connJniHandle, maxInfoUnit, recvWindow); in accept()
440 LOG(ERROR) << StringPrintf("%s: unknown server jni handle: %u", fn, in accept()
460 static const char fn[] = "PeerToPeer::deregisterServer"; in deregisterServer() local
462 << StringPrintf("%s: enter; JNI handle: %u", fn, jniHandle); in deregisterServer()
469 LOG(ERROR) << StringPrintf("%s: unknown service handle: %u", fn, jniHandle); in deregisterServer()
487 LOG(ERROR) << StringPrintf("%s: deregister error=0x%X", fn, nfaStat); in deregisterServer()
496 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in deregisterServer()
513 static const char fn[] = "PeerToPeer::createClient"; in createClient() local
516 "%s: enter: jni h: %u miu: %u rw: %u", fn, jniHandle, miu, rw); in createClient()
533 LOG(ERROR) << StringPrintf("%s: fail", fn); in createClient()
539 fn, client.get(), jniHandle); in createClient()
549 "%s: exit; new client jniHandle: %u NFA Handle: 0x%04x", fn, in createClient()
554 "%s: FAILED; new client jniHandle: %u NFA Handle: 0x%04x", fn, in createClient()
572 static const char fn[] = "PeerToPeer::removeConn"; in removeConn() local
584 "%s: deleted client handle: %u index: %u", fn, jniHandle, ii); in removeConn()
598 LOG(ERROR) << StringPrintf("%s: could not find handle: %u", fn, jniHandle); in removeConn()
614 static const char fn[] = "PeerToPeer::connectConnOriented"; in connectConnOriented() local
616 "%s: enter; h: %u service name=%s", fn, jniHandle, serviceName); in connectConnOriented()
619 << StringPrintf("%s: exit; h: %u stat: %u", fn, jniHandle, stat); in connectConnOriented()
636 static const char fn[] = "PeerToPeer::connectConnOriented"; in connectConnOriented() local
638 "%s: enter; h: %u dest sap: 0x%X", fn, jniHandle, destinationSap); in connectConnOriented()
641 << StringPrintf("%s: exit; h: %u stat: %u", fn, jniHandle, stat); in connectConnOriented()
660 static const char fn[] = "PeerToPeer::createDataLinkConn"; in createDataLinkConn() local
661 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: enter", fn); in createDataLinkConn()
666 LOG(ERROR) << StringPrintf("%s: can't find client, JNI handle: %u", fn, in createDataLinkConn()
687 "%s: wait for connected event mConnectingEvent: 0x%p", fn, in createDataLinkConn()
701 LOG(ERROR) << StringPrintf("%s: fail; error=0x%X", fn, nfaStat); in createDataLinkConn()
704 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in createDataLinkConn()
850 static const char fn[] = "PeerToPeer::send"; in send() local
855 LOG(ERROR) << StringPrintf("%s: can't find connection handle: %u", fn, in send()
861 << StringPrintf("%s: send data; jniHandle: %u nfaHandle: 0x%04X", fn, in send()
876 << StringPrintf("%s: peer disconnected", fn); in send()
883 << StringPrintf("%s: exit OK; JNI handle: %u NFA Handle: 0x%04x", fn, in send()
888 fn, jniHandle, pConn->mNfaConnHandle, nfaStat); in send()
908 static const char fn[] = "PeerToPeer::receive"; in receive() local
910 "%s: enter; jniHandle: %u bufferLen: %u", fn, jniHandle, bufferLen); in receive()
918 LOG(ERROR) << StringPrintf("%s: can't find connection handle: %u", fn, in receive()
924 << StringPrintf("%s: jniHandle: %u nfaHandle: 0x%04X buf len=%u", fn, in receive()
938 << StringPrintf("%s: waiting for data...", fn); in receive()
946 << StringPrintf("%s: exit; nfa h: 0x%X ok: %u actual len: %u", fn, in receive()
962 static const char fn[] = "PeerToPeer::disconnectConnOriented"; in disconnectConnOriented() local
968 << StringPrintf("%s: enter; jni handle: %u", fn, jniHandle); in disconnectConnOriented()
971 LOG(ERROR) << StringPrintf("%s: can't find connection handle: %u", fn, in disconnectConnOriented()
995 "%s: try disconn nfa h=0x%04X", fn, pConn->mNfaConnHandle); in disconnectConnOriented()
1000 LOG(ERROR) << StringPrintf("%s: fail p2p disconnect", fn); in disconnectConnOriented()
1010 << StringPrintf("%s: exit; jni handle: %u", fn, jniHandle); in disconnectConnOriented()
1025 static const char fn[] = "PeerToPeer::getRemoteMaxInfoUnit"; in getRemoteMaxInfoUnit() local
1029 LOG(ERROR) << StringPrintf("%s: can't find client jniHandle: %u", fn, in getRemoteMaxInfoUnit()
1034 "%s: jniHandle: %u MIU: %u", fn, jniHandle, pConn->mRemoteMaxInfoUnit); in getRemoteMaxInfoUnit()
1049 static const char fn[] = "PeerToPeer::getRemoteRecvWindow"; in getRemoteRecvWindow() local
1051 << StringPrintf("%s: client jni handle: %u", fn, jniHandle); in getRemoteRecvWindow()
1055 LOG(ERROR) << StringPrintf("%s: can't find client", fn); in getRemoteRecvWindow()
1116 static const char fn[] = "PeerToPeer::enableP2pListening"; in enableP2pListening() local
1120 << StringPrintf("%s: enter isEnable: %u mIsP2pListening: %u", fn, in enableP2pListening()
1131 LOG(ERROR) << StringPrintf("%s: fail enable listen; error=0x%X", fn, in enableP2pListening()
1140 LOG(ERROR) << StringPrintf("%s: fail disable listen; error=0x%X", fn, in enableP2pListening()
1144 << StringPrintf("%s: exit; mIsP2pListening: %u", fn, mIsP2pListening); in enableP2pListening()
1158 static const char fn[] = "PeerToPeer::handleNfcOnOff"; in handleNfcOnOff() local
1160 << StringPrintf("%s: enter; is on=%u", fn, isOn); in handleNfcOnOff()
1199 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in handleNfcOnOff()
1215 static const char fn[] = "PeerToPeer::nfaServerCallback"; in nfaServerCallback() local
1220 << StringPrintf("%s: enter; event=0x%X", fn, p2pEvent); in nfaServerCallback()
1229 fn, eventData->reg_server.server_handle, in nfaServerCallback()
1237 "%s: NFA_P2P_REG_SERVER_EVT for unknown service: %s", fn, in nfaServerCallback()
1248 << StringPrintf("%s: NFA_P2P_ACTIVATED_EVT; handle: 0x%04x", fn, in nfaServerCallback()
1254 << StringPrintf("%s: NFA_P2P_DEACTIVATED_EVT; handle: 0x%04x", fn, in nfaServerCallback()
1262 fn, eventData->conn_req.server_handle, in nfaServerCallback()
1270 fn); in nfaServerCallback()
1274 "%s: NFA_P2P_CONN_REQ_EVT; server jni h=%u", fn, pSrv->mJniHandle); in nfaServerCallback()
1280 "%s: NFA_P2P_CONN_REQ_EVT; server not listening", fn); in nfaServerCallback()
1289 fn, pSrv->mJniHandle, pConn->mJniHandle); in nfaServerCallback()
1296 "%s: NFA_P2P_CONNECTED_EVT; h=0x%x remote sap=0x%X", fn, in nfaServerCallback()
1302 << StringPrintf("%s: NFA_P2P_DISC_EVT; h=0x%04x; reason=0x%X", fn, in nfaServerCallback()
1307 "%s: NFA_P2P_DISC_EVT: can't find conn for NFA handle: 0x%04x", fn, in nfaServerCallback()
1314 "%s: NFA_P2P_DISC_EVT; try guard disconn event", fn); in nfaServerCallback()
1318 "%s: NFA_P2P_DISC_EVT; notified disconn event", fn); in nfaServerCallback()
1322 "%s: NFA_P2P_DISC_EVT; try guard congest event", fn); in nfaServerCallback()
1326 "%s: NFA_P2P_DISC_EVT; notified congest event", fn); in nfaServerCallback()
1330 << StringPrintf("%s: NFA_P2P_DISC_EVT; try guard read event", fn); in nfaServerCallback()
1334 << StringPrintf("%s: NFA_P2P_DISC_EVT; notified read event", fn); in nfaServerCallback()
1344 "%s: NFA_P2P_DATA_EVT: can't find conn for NFA handle: 0x%04x", fn, in nfaServerCallback()
1348 << StringPrintf("%s: NFA_P2P_DATA_EVT; h=0x%X; remote sap=0x%X", fn, in nfaServerCallback()
1360 fn, eventData->congest.handle); in nfaServerCallback()
1363 "%s: NFA_P2P_CONGEST_EVT; nfa handle: 0x%04x congested: %u", fn, in nfaServerCallback()
1374 << StringPrintf("%s: unknown event 0x%X ????", fn, p2pEvent); in nfaServerCallback()
1377 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: exit", fn); in nfaServerCallback()
1393 static const char fn[] = "PeerToPeer::nfaClientCallback"; in nfaClientCallback() local
1398 << StringPrintf("%s: enter; event=%u", fn, p2pEvent); in nfaClientCallback()
1406 "%s: NFA_P2P_REG_CLIENT_EVT: can't find waiting client", fn); in nfaClientCallback()
1410 fn, eventData->reg_client.client_handle, pClient.get()); in nfaClientCallback()
1422 "%s: NFA_P2P_ACTIVATED_EVT: can't find client", fn); in nfaClientCallback()
1425 "%s: NFA_P2P_ACTIVATED_EVT; Conn Handle: 0x%04x, pClient: 0x%p", fn, in nfaClientCallback()
1432 << StringPrintf("%s: NFA_P2P_DEACTIVATED_EVT: conn handle: 0x%X", fn, in nfaClientCallback()
1441 "%s: NFA_P2P_CONNECTED_EVT: can't find client: 0x%04x", fn, in nfaClientCallback()
1447 fn, eventData->connected.client_handle, in nfaClientCallback()
1463 << StringPrintf("%s: NFA_P2P_DISC_EVT; h=0x%04x; reason=0x%X", fn, in nfaClientCallback()
1471 fn, eventData->disc.handle); in nfaClientCallback()
1482 "%s: NFA_P2P_DISC_EVT; try guard disconn event", fn); in nfaClientCallback()
1486 "%s: NFA_P2P_DISC_EVT; notified disconn event", fn); in nfaClientCallback()
1490 "%s: NFA_P2P_DISC_EVT; try guard congest event", fn); in nfaClientCallback()
1494 "%s: NFA_P2P_DISC_EVT; notified congest event", fn); in nfaClientCallback()
1498 << StringPrintf("%s: NFA_P2P_DISC_EVT; try guard read event", fn); in nfaClientCallback()
1502 << StringPrintf("%s: NFA_P2P_DISC_EVT; notified read event", fn); in nfaClientCallback()
1512 "%s: NFA_P2P_DATA_EVT: can't find conn for NFA handle: 0x%04x", fn, in nfaClientCallback()
1516 << StringPrintf("%s: NFA_P2P_DATA_EVT; h=0x%X; remote sap=0x%X", fn, in nfaClientCallback()
1528 fn, eventData->congest.handle); in nfaClientCallback()
1531 "%s: NFA_P2P_CONGEST_EVT; nfa handle: 0x%04x congested: %u", fn, in nfaClientCallback()
1540 LOG(ERROR) << StringPrintf("%s: unknown event 0x%X ????", fn, p2pEvent); in nfaClientCallback()
1605 static const char fn[] = "P2pServer::registerWithStack"; in registerWithStack() local
1607 << StringPrintf("%s: enter; service name: %s JNI handle: %u", fn, in registerWithStack()
1634 LOG(ERROR) << StringPrintf("%s: fail set LLCP config; error=0x%X", fn, in registerWithStack()
1646 LOG(ERROR) << StringPrintf("%s: fail register p2p server; error=0x%X", fn, in registerWithStack()
1651 << StringPrintf("%s: wait for listen-completion event", fn); in registerWithStack()
1662 static const char fn[] = "P2pServer::accept"; in accept() local
1668 fn); in accept()
1679 fn, serverJniHandle, connJniHandle); in accept()
1684 fn, serverJniHandle, connJniHandle, connection->mNfaConnHandle); in accept()
1690 << StringPrintf("%s: no handle assigned", fn); in accept()
1696 "%s: overriding the miu passed by the app(%d) with stack miu(%zu)", fn, in accept()
1704 fn, serverJniHandle, connJniHandle, connection->mNfaConnHandle); in accept()
1709 LOG(ERROR) << StringPrintf("%s: fail to accept remote; error=0x%X", fn, in accept()
1715 "%s: exit; serverJniHandle: %u; connJniHandle: %u; nfa conn h: 0x%X", fn, in accept()