Home
last modified time | relevance | path

Searched refs:peerId (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/nan/
DWifiNanSessionListener.java294 public void onMatch(int peerId, byte[] serviceSpecificInfo, in onMatch() argument
342 public void onMessageReceived(int peerId, byte[] message, int messageLength) { in onMessageReceived() argument
387 public void onMatch(int peerId, byte[] serviceSpecificInfo,
389 if (VDBG) Log.v(TAG, "onMatch: peerId=" + peerId);
392 data.putInt(MESSAGE_BUNDLE_KEY_PEER_ID, peerId);
423 public void onMessageReceived(int peerId, byte[] message, int messageLength) {
425 Log.v(TAG, "onMessageReceived: peerId='" + peerId + "', messageLength="
434 msg.arg2 = peerId;
DIWifiNanSessionListener.aidl32 void onMatch(int peerId, in byte[] serviceSpecificInfo, in onMatch() argument
37 void onMessageReceived(int peerId, in byte[] message, int messageLength); in onMessageReceived() argument
DWifiNanSession.java110 public void sendMessage(int peerId, byte[] message, int messageLength, int messageId) { in sendMessage() argument
111 mManager.sendMessage(mSessionId, peerId, message, messageLength, messageId); in sendMessage()
DWifiNanManager.java320 public void sendMessage(int sessionId, int peerId, byte[] message, int messageLength, in sendMessage() argument
324 Log.v(TAG, "sendMessage(): sessionId=" + sessionId + ", peerId=" + peerId in sendMessage()
327 mService.sendMessage(sessionId, peerId, message, messageLength, messageId); in sendMessage()
DIWifiNanManager.aidl46 void sendMessage(int sessionId, int peerId, in byte[] message, int messageLength, in sendMessage() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/
DWifiNanServiceImpl.java206 public void sendMessage(int sessionId, int peerId, byte[] message, int messageLength, in sendMessage() argument
214 + peerId + ", messageLength=" + messageLength + ", messageId=" in sendMessage()
218 mStateManager.sendMessage(getCallingUid(), sessionId, peerId, message, messageLength, in sendMessage() local
DWifiNanSessionState.java96 public void sendMessage(short transactionId, int peerId, byte[] message, int messageLength, in sendMessage() argument
105 String peerMacStr = mMacByRequestorInstanceId.get(peerId); in sendMessage()
114 WifiNanNative.getInstance().sendMessage(transactionId, mPubSubId, peerId, peerMac, message, in sendMessage()
DWifiNanStateManager.java193 public void sendMessage(int uid, int sessionId, int peerId, byte[] message, int messageLength, in sendMessage() argument
197 data.putInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID, peerId); in sendMessage()
420 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID); in handleMessage() local
426 + ") to peerId=" + peerId); in handleMessage()
429 sendFollowonMessageLocal(msg.arg1, sessionId, peerId, message, msg.arg2, in handleMessage()
765 private void sendFollowonMessageLocal(int uid, int sessionId, int peerId, byte[] message, in sendFollowonMessageLocal() argument
769 + peerId + ", messageLength=" + messageLength + ", messageId=" + messageId); in sendFollowonMessageLocal()
774 info.mSession.sendMessage(info.mTransactionId, peerId, message, messageLength, messageId); in sendFollowonMessageLocal()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
DWifiNanStateManagerTest.java677 final int peerId = 568; in testMessageWhilePeerChangesIdentity() local
728 mDut.onMessageReceived(publishId, peerId, peerMacOrig, msgFromPeer1.getBytes(), in testMessageWhilePeerChangesIdentity()
730 mDut.sendMessage(uid, sessionId, peerId, msgToPeer1.getBytes(), msgToPeer1.length(), in testMessageWhilePeerChangesIdentity()
737 inOrder.verify(mockSessionListener).onMessageReceived(peerId, msgFromPeer1.getBytes(), in testMessageWhilePeerChangesIdentity()
739 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), eq(peerId), in testMessageWhilePeerChangesIdentity()
744 mDut.onMessageReceived(publishId, peerId, peerMacLater, msgFromPeer2.getBytes(), in testMessageWhilePeerChangesIdentity()
746 mDut.sendMessage(uid, sessionId, peerId, msgToPeer2.getBytes(), msgToPeer2.length(), in testMessageWhilePeerChangesIdentity()
752 inOrder.verify(mockSessionListener).onMessageReceived(peerId, msgFromPeer2.getBytes(), in testMessageWhilePeerChangesIdentity()
754 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), eq(peerId), in testMessageWhilePeerChangesIdentity()