Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/aware/
DPeerHandle.java39 public PeerHandle(int peerId) { in PeerHandle() argument
40 this.peerId = peerId; in PeerHandle()
44 public int peerId; field in PeerHandle
56 return peerId == ((PeerHandle) o).peerId; in equals()
61 return peerId; in hashCode()
DWifiAwareNetworkSpecifier.java97 public final int peerId; field in WifiAwareNetworkSpecifier
158 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument
165 this.peerId = peerId; in WifiAwareNetworkSpecifier()
219 dest.writeInt(peerId); in writeToParcel()
241 return Objects.hash(type, role, clientId, sessionId, peerId, Arrays.hashCode(peerMac), in hashCode()
262 && peerId == lhs.peerId in equals()
279 .append(", peerId=").append(peerId) in toString()
467 mDiscoverySession.mClientId, mDiscoverySession.mSessionId, mPeerHandle.peerId, in build()
DIWifiAwareDiscoverySessionCallback.aidl31 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
DWifiAwareManager.java385 + ", peerHandle=" + peerHandle.peerId + ", messageId=" in sendMessage()
390 mService.sendMessage(clientId, sessionId, peerHandle.peerId, message, messageId, in sendMessage()
402 + ", peerHandle=" + ((peerHandle == null) ? peerHandle : peerHandle.peerId) in createNetworkSpecifier()
432 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
709 private void onMatchCommon(int messageType, int peerId, byte[] serviceSpecificInfo, in onMatchCommon() argument
716 msg.arg1 = peerId; in onMatchCommon()
723 public void onMatch(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter) { in onMatch() argument
724 if (VDBG) Log.v(TAG, "onMatch: peerId=" + peerId); in onMatch()
726 onMatchCommon(CALLBACK_MATCH, peerId, serviceSpecificInfo, matchFilter, 0); in onMatch()
730 public void onMatchWithDistance(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter, in onMatchWithDistance() argument
[all …]
DParcelablePeerHandle.java34 super(peerHandle.peerId); in ParcelablePeerHandle()
44 dest.writeInt(peerId); in writeToParcel()
DIWifiAwareManager.aidl53 void sendMessage(int clientId, int discoverySessionId, int peerId, in byte[] message, in sendMessage() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDppManager.java252 int peerId = mWifiNative.addDppPeerUri(mClientIfaceName, enrolleeUri); in startDppAsConfiguratorInitiator() local
254 if (peerId < 0) { in startDppAsConfiguratorInitiator()
261 mDppRequestInfo.peerId = peerId; in startDppAsConfiguratorInitiator()
274 mDppRequestInfo.peerId, 0, ssidEncoded, passwordEncoded, psk, in startDppAsConfiguratorInitiator()
286 + mDppRequestInfo.peerId); in startDppAsConfiguratorInitiator()
335 int peerId = mWifiNative.addDppPeerUri(mClientIfaceName, configuratorUri); in startDppAsEnrolleeInitiator() local
337 if (peerId < 0) { in startDppAsEnrolleeInitiator()
342 mDppRequestInfo.peerId = peerId; in startDppAsEnrolleeInitiator()
347 if (!mWifiNative.startDppEnrolleeInitiator(mClientIfaceName, mDppRequestInfo.peerId, in startDppAsEnrolleeInitiator()
357 + mDppRequestInfo.peerId); in startDppAsEnrolleeInitiator()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java113 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()
DWifiAwareNativeCallback.java406 + 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()
DWifiAwareStateManager.java513 for (int peerId : peerIds) { in requestMacAddresses()
515 peerId); in requestMacAddresses()
517 peerIdToMacMap.put(peerId, peerInfo.mMac); in requestMacAddresses()
676 public void sendMessage(int clientId, int sessionId, int peerId, byte[] message, int messageId, in sendMessage() argument
682 msg.getData().putInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID, peerId); in sendMessage()
782 public void initiateDataPathSetup(WifiAwareNetworkSpecifier networkSpecifier, int peerId, in initiateDataPathSetup() argument
788 msg.getData().putInt(MESSAGE_BUNDLE_KEY_PEER_ID, peerId); in initiateDataPathSetup()
1669 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID); in processCommand() local
1676 sessionId, peerId, message, messageId); in processCommand()
1721 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_PEER_ID); in processCommand() local
[all …]
DWifiAwareServiceImpl.java393 public void sendMessage(int clientId, int sessionId, int peerId, byte[] message, int messageId, in sendMessage() argument
417 + clientId + ", peerId=" + peerId + ", messageId=" + messageId in sendMessage()
421 mStateManager.sendMessage(clientId, sessionId, peerId, message, messageId, retryCount); in sendMessage()
DWifiAwareNativeApi.java716 req.peerId = requestorInstanceId; in sendMessage()
895 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument
899 Log.v(TAG, "initiateDataPath: transactionId=" + transactionId + ", peerId=" + peerId in initiateDataPath()
921 req.peerId = peerId; in initiateDataPath()
DWifiAwareDataPathStateManager.java1340 ns.peerId); in processNetworkSpecifier()
1344 + ns.peerId); in processNetworkSpecifier()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java326 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testPublishFlow()
327 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testPublishFlow()
333 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); in testPublishFlow()
347 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow()
350 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow()
475 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testSubscribeFlow()
476 sessionProxyCallback.getValue().onMatchWithDistance(peerHandle.peerId, string1.getBytes(), in testSubscribeFlow()
478 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testSubscribeFlow()
484 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); in testSubscribeFlow()
489 assertEquals((peerIdCaptor.getValue()).peerId, peerHandle.peerId); in testSubscribeFlow()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java549 int peerId = 2032; in testSendMessage() local
554 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessage()
556 verify(mAwareStateManagerMock).sendMessage(clientId, sessionId, peerId, message, messageId, in testSendMessage()
566 int peerId = 2032; in testSendMessageTooLong() local
571 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessageTooLong()
573 verify(mAwareStateManagerMock).sendMessage(clientId, sessionId, peerId, message, messageId, in testSendMessageTooLong()
DTestUtils.java104 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument
DWifiAwareNativeApiTest.java643 int peerId = 555; in validateInitiateDataPath() local
660 mDut.initiateDataPath(tid, peerId, channelRequestType, channel, peer, interfaceName, in validateInitiateDataPath()
666 collector.checkThat("peerId", peerId, equalTo(nidpr.peerId)); in validateInitiateDataPath()
DWifiAwareDataPathStateManagerTest.java1192 ns.peerId, in testDataPathInitiatorResponderMismatchUtility()
1251 ns.peerId, in testDataPathInitiatorResponderInvalidUidUtility()
1855 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
1891 DataPathEndPointInfo(int sessionId, int peerId, Messenger messenger, in DataPathEndPointInfo() argument
1894 mPeerHandle = new PeerHandle(peerId); in DataPathEndPointInfo()
DWifiAwareStateManagerTest.java1608 ArgumentCaptor<Integer> peerId = ArgumentCaptor.forClass(Integer.class); in testMessageWhilePeerChangesIdentity() local
1642 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity()
1644 mDut.sendMessage(clientId, sessionId.getValue(), peerId.getValue(), msgToPeer1.getBytes(), in testMessageWhilePeerChangesIdentity()
1660 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity()
1662 mDut.sendMessage(clientId, sessionId.getValue(), peerId.getValue(), msgToPeer2.getBytes(), in testMessageWhilePeerChangesIdentity()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DRangingResult.java342 dest.writeInt(mPeerHandle.peerId); in writeToParcel()
401 mPeerHandle == null ? "<null>" : mPeerHandle.peerId).append(", distanceMm=").append( in toString()
DResponderConfig.java398 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/
DRttServiceImplTest.java318 peerHandleToMacMap.put(peerHandle1.peerId, macAwarePeer1); in testRangingFlowUsingAwarePeerHandles()
319 peerHandleToMacMap.put(peerHandle2.peerId, macAwarePeer2); in testRangingFlowUsingAwarePeerHandles()
320 peerHandleToMacMap.put(peerHandle3.peerId, null); // bad answer from Aware (expired?) in testRangingFlowUsingAwarePeerHandles()
1466 for (Integer peerId: peerIds) { in answer()
1468 MacAddress macAddr = mPeerIdToMacMap.get(peerId); in answer()
1473 result.put(peerId, macBytes); in answer()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java990 peerIdsNeedingTranslation.add(rttPeer.peerHandle.peerId); in processAwarePeerHandles()
1053 byte[] mac = peerIdToMacMap.get(rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()
1056 + "address for peerId=" + rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()