Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java122 public PeerInfo getPeerInfo(int peerId) { in getPeerInfo() argument
123 return mPeerInfoByRequestorInstanceId.get(peerId); in getPeerInfo()
228 public boolean sendMessage(short transactionId, int peerId, byte[] message, int messageId) { in sendMessage() argument
229 PeerInfo peerInfo = mPeerInfoByRequestorInstanceId.get(peerId); in sendMessage()
274 int peerId = getPeerIdOrAddIfNew(requestorInstanceId, peerMac); in onMatch() local
278 mCallback.onMatch(peerId, serviceSpecificInfo, matchFilter); in onMatch()
280 mCallback.onMatchWithDistance(peerId, serviceSpecificInfo, matchFilter, rangeMm); in onMatch()
294 int peerId = 0; in onMatchExpired() local
298 peerId = mPeerInfoByRequestorInstanceId.keyAt(i); in onMatchExpired()
299 mPeerInfoByRequestorInstanceId.delete(peerId); in onMatchExpired()
[all …]
DWifiAwareNativeCallback.java465 + event.peerId + ", addr=" + String.valueOf(HexEncoding.encode(event.addr)) in eventMatch()
478 mWifiAwareStateManager.onMatchNotification(event.discoverySessionId, event.peerId, in eventMatch()
485 public void eventMatchExpired(byte discoverySessionId, int peerId) { in eventMatchExpired() argument
488 + ", peerId=" + peerId); in eventMatchExpired()
491 mWifiAwareStateManager.onMatchExpiredNotification(discoverySessionId, peerId); in eventMatchExpired()
498 + ", peerId=" + event.peerId + ", addr=" + String.valueOf( in eventFollowupReceived()
505 mWifiAwareStateManager.onMessageReceivedNotification(event.discoverySessionId, event.peerId, in eventFollowupReceived()
DWifiAwareStateManager.java611 for (int peerId : peerIds) { in requestMacAddresses()
613 peerId); in requestMacAddresses()
615 peerIdToMacMap.put(peerId, peerInfo.mMac); in requestMacAddresses()
820 public void sendMessage(int uid, int clientId, int sessionId, int peerId, byte[] message, in sendMessage() argument
826 msg.getData().putInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID, peerId); in sendMessage()
929 public void initiateDataPathSetup(WifiAwareNetworkSpecifier networkSpecifier, int peerId, in initiateDataPathSetup() argument
935 msg.getData().putInt(MESSAGE_BUNDLE_KEY_PEER_ID, peerId); in initiateDataPathSetup()
1865 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_MESSAGE_PEER_ID); in processCommand() local
1872 sessionId, peerId, message, messageId); in processCommand()
1918 int peerId = data.getInt(MESSAGE_BUNDLE_KEY_PEER_ID); in processCommand() local
[all …]
DWifiAwareServiceImpl.java410 public void sendMessage(int clientId, int sessionId, int peerId, byte[] message, int messageId, in sendMessage() argument
434 + clientId + ", peerId=" + peerId + ", messageId=" + messageId in sendMessage()
438 mStateManager.sendMessage(uid, clientId, sessionId, peerId, message, messageId, retryCount); in sendMessage()
DWifiAwareNativeApi.java857 req.peerId = requestorInstanceId; in sendMessage()
1036 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument
1040 Log.v(TAG, "initiateDataPath: transactionId=" + transactionId + ", peerId=" + peerId in initiateDataPath()
1062 req.peerId = peerId; in initiateDataPath()
DWifiAwareDataPathStateManager.java1481 ns.peerId); in processNetworkSpecifier()
1485 + ns.peerId); in processNetworkSpecifier()
/packages/modules/Wifi/framework/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()
DWifiAwareManager.java491 + ", peerHandle=" + peerHandle.peerId + ", messageId=" in sendMessage()
496 mService.sendMessage(clientId, sessionId, peerHandle.peerId, message, messageId, in sendMessage()
519 + ", peerHandle=" + ((peerHandle == null) ? peerHandle : peerHandle.peerId) in createNetworkSpecifier()
549 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
830 private void onMatchCommon(int messageType, int peerId, byte[] serviceSpecificInfo, in onMatchCommon() argument
837 msg.arg1 = peerId; in onMatchCommon()
844 public void onMatch(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter) { in onMatch() argument
845 if (VDBG) Log.v(TAG, "onMatch: peerId=" + peerId); in onMatch()
847 onMatchCommon(CALLBACK_MATCH, peerId, serviceSpecificInfo, matchFilter, 0); in onMatch()
851 public void onMatchWithDistance(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter, in onMatchWithDistance() argument
[all …]
DWifiAwareNetworkSpecifier.java103 public final int peerId; field in WifiAwareNetworkSpecifier
155 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument
161 this.peerId = peerId; in WifiAwareNetworkSpecifier()
213 dest.writeInt(peerId); in writeToParcel()
234 return Objects.hash(type, role, clientId, sessionId, peerId, Arrays.hashCode(peerMac), in hashCode()
255 && peerId == lhs.peerId in equals()
271 .append(", peerId=").append(peerId) in toString()
478 mDiscoverySession.mSessionId, mPeerHandle != null ? mPeerHandle.peerId : 0, 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
38 void onMatchExpired(int peerId); in onMatchExpired() argument
DParcelablePeerHandle.java34 super(peerHandle.peerId); in ParcelablePeerHandle()
44 dest.writeInt(peerId); in writeToParcel()
DIWifiAwareManager.aidl59 void sendMessage(int clientId, int discoverySessionId, int peerId, in byte[] message, in sendMessage() argument
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDppManager.java285 int peerId = mWifiNative.addDppPeerUri(mClientIfaceName, enrolleeUri); in startDppAsConfiguratorInitiator() local
287 if (peerId < 0) { in startDppAsConfiguratorInitiator()
294 mDppRequestInfo.peerId = peerId; in startDppAsConfiguratorInitiator()
307 mDppRequestInfo.peerId, 0, ssidEncoded, passwordEncoded, psk, in startDppAsConfiguratorInitiator()
319 + mDppRequestInfo.peerId); in startDppAsConfiguratorInitiator()
371 int peerId = mWifiNative.addDppPeerUri(mClientIfaceName, configuratorUri); in startDppAsEnrolleeInitiator() local
373 if (peerId < 0) { in startDppAsEnrolleeInitiator()
378 mDppRequestInfo.peerId = peerId; in startDppAsEnrolleeInitiator()
383 if (!mWifiNative.startDppEnrolleeInitiator(mClientIfaceName, mDppRequestInfo.peerId, in startDppAsEnrolleeInitiator()
393 + mDppRequestInfo.peerId); in startDppAsEnrolleeInitiator()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java363 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testPublishFlow()
364 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testPublishFlow()
370 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); in testPublishFlow()
384 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow()
387 assertEquals(peerIdCaptor.getValue().peerId, peerHandle.peerId); in testPublishFlow()
400 sessionProxyCallback.getValue().onMatchExpired(peerHandle.peerId); in testPublishFlow()
404 assertEquals(peerHandle.peerId, peerIdCaptor.getValue().peerId); in testPublishFlow()
519 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testSubscribeFlow()
520 sessionProxyCallback.getValue().onMatchWithDistance(peerHandle.peerId, string1.getBytes(), in testSubscribeFlow()
522 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); in testSubscribeFlow()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java585 int peerId = 2032; in testSendMessage() local
590 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessage()
593 eq(peerId), eq(message), eq(messageId), eq(0)); in testSendMessage()
602 int peerId = 2032; in testSendMessageTooLong() local
607 mDut.sendMessage(clientId, sessionId, peerId, message, messageId, 0); in testSendMessageTooLong()
610 eq(peerId), eq(message), eq(messageId), eq(0)); in testSendMessageTooLong()
DWifiAwareNativeApiTest.java660 int peerId = 555; in validateInitiateDataPath() local
677 mDut.initiateDataPath(tid, peerId, channelRequestType, channel, peer, interfaceName, in validateInitiateDataPath()
683 collector.checkThat("peerId", peerId, equalTo(nidpr.peerId)); in validateInitiateDataPath()
DTestUtils.java104 public boolean initiateDataPath(short transactionId, int peerId, int channelRequestType, in initiateDataPath() argument
DWifiAwareDataPathStateManagerTest.java1332 ns.peerId, in testDataPathInitiatorResponderMismatchUtility()
1393 ns.peerId, in testDataPathInitiatorResponderInvalidUidUtility()
1456 ns.peerId, in testDataPathInitiatorResponderInvalidPackageNameUtility()
2054 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
2087 DataPathEndPointInfo(int sessionId, int peerId, Messenger messenger) { in DataPathEndPointInfo() argument
2089 mPeerHandle = new PeerHandle(peerId); in DataPathEndPointInfo()
DWifiAwareStateManagerTest.java1660 ArgumentCaptor<Integer> peerId = ArgumentCaptor.forClass(Integer.class); in testMessageWhilePeerChangesIdentity() local
1692 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity()
1694 mDut.sendMessage(uid, clientId, sessionId.getValue(), peerId.getValue(), in testMessageWhilePeerChangesIdentity()
1710 inOrder.verify(mockSessionCallback).onMessageReceived(peerId.capture(), in testMessageWhilePeerChangesIdentity()
1712 mDut.sendMessage(uid, clientId, sessionId.getValue(), peerId.getValue(), in testMessageWhilePeerChangesIdentity()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DRangingResult.java389 dest.writeInt(mPeerHandle.peerId); in writeToParcel()
450 mPeerHandle == null ? "<null>" : mPeerHandle.peerId).append(", distanceMm=").append( in toString()
DResponderConfig.java412 dest.writeInt(peerHandle.peerId); in writeToParcel()
488 ", peerHandle=").append(peerHandle == null ? "<null>" : peerHandle.peerId).append( in toString()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java327 peerHandleToMacMap.put(peerHandle1.peerId, macAwarePeer1); in testRangingFlowUsingAwarePeerHandles()
328 peerHandleToMacMap.put(peerHandle2.peerId, macAwarePeer2); in testRangingFlowUsingAwarePeerHandles()
329 peerHandleToMacMap.put(peerHandle3.peerId, null); // bad answer from Aware (expired?) in testRangingFlowUsingAwarePeerHandles()
1439 for (Integer peerId: peerIds) { in answer()
1441 MacAddress macAddr = mPeerIdToMacMap.get(peerId); in answer()
1446 result.put(peerId, macBytes); in answer()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java972 peerIdsNeedingTranslation.add(rttPeer.peerHandle.peerId); in processAwarePeerHandles()
1019 byte[] mac = peerIdToMacMap.get(rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()
1022 + "address for peerId=" + rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()
/packages/modules/Wifi/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt180 Landroid/net/wifi/aware/PeerHandle;->peerId:I
346 Landroid/net/wifi/aware/WifiAwareNetworkSpecifier;->peerId:I