/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | PeerHandle.java | 38 public PeerHandle(int peerId) { in PeerHandle() argument 39 this.peerId = peerId; in PeerHandle() 43 public int peerId; field in PeerHandle 55 return peerId == ((PeerHandle) o).peerId; in equals() 60 return peerId; in hashCode()
|
D | WifiAwareNetworkSpecifier.java | 96 public final int peerId; field in WifiAwareNetworkSpecifier 129 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument 135 this.peerId = peerId; in WifiAwareNetworkSpecifier() 185 dest.writeInt(peerId); in writeToParcel() 211 result = 31 * result + peerId; in hashCode() 237 && peerId == lhs.peerId in equals() 252 .append(", peerId=").append(peerId) in toString()
|
D | IWifiAwareDiscoverySessionCallback.aidl | 31 void onMatch(int peerId, in byte[] serviceSpecificInfo, in byte[] matchFilter); in onMatch() argument 32 void onMatchWithDistance(int peerId, in byte[] serviceSpecificInfo, in byte[] matchFilter, in onMatchWithDistance() argument 37 void onMessageReceived(int peerId, in byte[] message); in onMessageReceived() argument
|
D | WifiAwareManager.java | 396 + ", peerHandle=" + peerHandle.peerId + ", messageId=" in sendMessage() 401 mService.sendMessage(clientId, sessionId, peerHandle.peerId, message, messageId, in sendMessage() 413 + ", peerHandle=" + ((peerHandle == null) ? peerHandle : peerHandle.peerId) in createNetworkSpecifier() 438 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier() 711 private void onMatchCommon(int messageType, int peerId, byte[] serviceSpecificInfo, in onMatchCommon() argument 718 msg.arg1 = peerId; in onMatchCommon() 725 public void onMatch(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter) { in onMatch() argument 726 if (VDBG) Log.v(TAG, "onMatch: peerId=" + peerId); in onMatch() 728 onMatchCommon(CALLBACK_MATCH, peerId, serviceSpecificInfo, matchFilter, 0); in onMatch() 732 public void onMatchWithDistance(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter, in onMatchWithDistance() argument [all …]
|
D | IWifiAwareManager.aidl | 53 void sendMessage(int clientId, int discoverySessionId, int peerId, in byte[] message, in sendMessage() argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDiscoverySessionState.java | 113 public PeerInfo getPeerInfo(int peerId) { in getPeerInfo() argument 114 return mPeerInfoByRequestorInstanceId.get(peerId); in getPeerInfo() 213 public boolean sendMessage(short transactionId, int peerId, byte[] message, int messageId) { in sendMessage() argument 214 PeerInfo peerInfo = mPeerInfoByRequestorInstanceId.get(peerId); in sendMessage() 259 int peerId = getPeerIdOrAddIfNew(requestorInstanceId, peerMac); in onMatch() local 263 mCallback.onMatch(peerId, serviceSpecificInfo, matchFilter); in onMatch() 265 mCallback.onMatchWithDistance(peerId, serviceSpecificInfo, matchFilter, rangeMm); in onMatch() 283 int peerId = getPeerIdOrAddIfNew(requestorInstanceId, peerMac); in onMessageReceived() local 286 mCallback.onMessageReceived(peerId, message); in onMessageReceived()
|
D | WifiAwareNativeCallback.java | 406 + event.peerId + ", addr=" + String.valueOf(HexEncoding.encode(event.addr)) in eventMatch() 419 mWifiAwareStateManager.onMatchNotification(event.discoverySessionId, event.peerId, in eventMatch() 426 public void eventMatchExpired(byte discoverySessionId, int peerId) { in eventMatchExpired() argument 429 + ", peerId=" + peerId); in eventMatchExpired() 440 + ", peerId=" + event.peerId + ", addr=" + String.valueOf( in eventFollowupReceived() 447 mWifiAwareStateManager.onMessageReceivedNotification(event.discoverySessionId, event.peerId, in eventFollowupReceived()
|
D | WifiAwareStateManager.java | 508 for (int peerId : peerIds) { in requestMacAddresses() 510 peerId); in requestMacAddresses() 512 peerIdToMacMap.put(peerId, peerInfo.mMac); in requestMacAddresses() 671 public void sendMessage(int clientId, int sessionId, int peerId, byte[] message, int messageId, in sendMessage() argument 677 msg.getData().putInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID, peerId); in sendMessage() 777 public void initiateDataPathSetup(WifiAwareNetworkSpecifier networkSpecifier, int peerId, in initiateDataPathSetup() argument 783 msg.getData().putInt(MESSAGE_BUNDLE_KEY_PEER_ID, peerId); in initiateDataPathSetup() 1659 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID); in processCommand() local 1666 sessionId, peerId, message, messageId); in processCommand() 1711 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_PEER_ID); in processCommand() local [all …]
|
D | WifiAwareServiceImpl.java | 392 public void sendMessage(int clientId, int sessionId, int peerId, byte[] message, int messageId, in sendMessage() argument 416 + clientId + ", peerId=" + peerId + ", messageId=" + messageId in sendMessage() 420 mStateManager.sendMessage(clientId, sessionId, peerId, message, messageId, retryCount); in sendMessage()
|
D | WifiAwareNativeApi.java | 712 req.peerId = requestorInstanceId; in sendMessage() 888 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument 892 Log.v(TAG, "initiateDataPath: transactionId=" + transactionId + ", peerId=" + peerId in initiateDataPath() 911 req.peerId = peerId; in initiateDataPath()
|
D | WifiAwareDataPathStateManager.java | 1148 ns.peerId); in processNetworkSpecifier() 1152 + ns.peerId); in processNetworkSpecifier()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 319 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testPublishFlow() 320 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testPublishFlow() 326 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); in testPublishFlow() 340 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow() 343 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow() 468 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testSubscribeFlow() 469 sessionProxyCallback.getValue().onMatchWithDistance(peerHandle.peerId, string1.getBytes(), in testSubscribeFlow() 471 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testSubscribeFlow() 477 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); in testSubscribeFlow() 482 assertEquals((peerIdCaptor.getValue()).peerId, peerHandle.peerId); in testSubscribeFlow() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 547 int peerId = 2032; in testSendMessage() local 552 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessage() 554 verify(mAwareStateManagerMock).sendMessage(clientId, sessionId, peerId, message, messageId, in testSendMessage() 564 int peerId = 2032; in testSendMessageTooLong() local 569 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessageTooLong() 571 verify(mAwareStateManagerMock).sendMessage(clientId, sessionId, peerId, message, messageId, in testSendMessageTooLong()
|
D | TestUtils.java | 104 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument
|
D | WifiAwareDataPathStateManagerTest.java | 912 ns.peerId, in testDataPathInitiatorResponderMismatchUtility() 968 ns.peerId, in testDataPathInitiatorResponderInvalidUidUtility() 1473 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier() 1504 DataPathEndPointInfo(int sessionId, int peerId, Messenger messenger) { in DataPathEndPointInfo() argument 1506 mPeerHandle = new PeerHandle(peerId); in DataPathEndPointInfo()
|
D | WifiAwareStateManagerTest.java | 1610 ArgumentCaptor<Integer> peerId = ArgumentCaptor.forClass(Integer.class); in testMessageWhilePeerChangesIdentity() local 1644 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity() 1646 mDut.sendMessage(clientId, sessionId.getValue(), peerId.getValue(), msgToPeer1.getBytes(), in testMessageWhilePeerChangesIdentity() 1662 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity() 1664 mDut.sendMessage(clientId, sessionId.getValue(), peerId.getValue(), msgToPeer2.getBytes(), in testMessageWhilePeerChangesIdentity()
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | RangingResult.java | 316 dest.writeInt(mPeerHandle.peerId); in writeToParcel() 370 mPeerHandle == null ? "<null>" : mPeerHandle.peerId).append(", distanceMm=").append( in toString()
|
D | ResponderConfig.java | 398 dest.writeInt(peerHandle.peerId); in writeToParcel() 474 ", peerHandle=").append(peerHandle == null ? "<null>" : peerHandle.peerId).append( in toString()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 313 peerHandleToMacMap.put(peerHandle1.peerId, macAwarePeer1); in testRangingFlowUsingAwarePeerHandles() 314 peerHandleToMacMap.put(peerHandle2.peerId, macAwarePeer2); in testRangingFlowUsingAwarePeerHandles() 1454 for (Integer peerId: peerIds) { in answer() 1455 byte[] mac = mPeerIdToMacMap.get(peerId).toByteArray(); in answer() 1460 result.put(peerId, mac); in answer()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 956 peerIdsNeedingTranslation.add(rttPeer.peerHandle.peerId); in processAwarePeerHandles() 1020 MacAddress.fromBytes(peerIdToMacMap.get(rttPeer.peerHandle.peerId)), in processReceivedAwarePeerMacAddresses()
|