Home
last modified time | relevance | path

Searched refs:peerHandle (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/rtt/
DResponderConfig.java139 public final PeerHandle peerHandle; field in ResponderConfig
208 this.peerHandle = null; in ResponderConfig()
239 public ResponderConfig(@NonNull PeerHandle peerHandle, @ResponderType int responderType, in ResponderConfig() argument
243 this.peerHandle = peerHandle; in ResponderConfig()
277 public ResponderConfig(@NonNull MacAddress macAddress, @NonNull PeerHandle peerHandle, in ResponderConfig() argument
282 this.peerHandle = peerHandle; in ResponderConfig()
354 public static ResponderConfig fromWifiAwarePeerHandleWithDefaults(PeerHandle peerHandle) { in fromWifiAwarePeerHandleWithDefaults() argument
360 return new ResponderConfig(peerHandle, RESPONDER_AWARE, true, CHANNEL_WIDTH_20MHZ, in fromWifiAwarePeerHandleWithDefaults()
371 if (macAddress == null && peerHandle == null || macAddress != null && peerHandle != null) { in isValid()
394 if (peerHandle == null) { in writeToParcel()
[all …]
DRangingRequest.java210 public Builder addWifiAwarePeer(@NonNull PeerHandle peerHandle) { in addWifiAwarePeer() argument
211 if (peerHandle == null) { in addWifiAwarePeer()
215 return addResponder(ResponderConfig.fromWifiAwarePeerHandleWithDefaults(peerHandle)); in addWifiAwarePeer()
DRangingResult.java108 public RangingResult(@RangeResultStatus int status, PeerHandle peerHandle, int distanceMm, in RangingResult() argument
114 mPeerHandle = peerHandle; in RangingResult()
370 PeerHandle peerHandle = null;
372 peerHandle = new PeerHandle(in.readInt());
385 return new RangingResult(status, peerHandle, distanceMm, distanceStdDevMm, rssi,
/frameworks/base/wifi/java/android/net/wifi/aware/
DDiscoverySession.java207 public void sendMessage(@NonNull PeerHandle peerHandle, int messageId, in sendMessage() argument
220 mgr.sendMessage(mClientId, mSessionId, peerHandle, message, messageId, retryCount); in sendMessage()
250 public void sendMessage(@NonNull PeerHandle peerHandle, int messageId, in sendMessage() argument
252 sendMessage(peerHandle, messageId, message, 0); in sendMessage()
289 public NetworkSpecifier createNetworkSpecifierOpen(@NonNull PeerHandle peerHandle) { in createNetworkSpecifierOpen() argument
305 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, null); in createNetworkSpecifierOpen()
344 @NonNull PeerHandle peerHandle, @NonNull String passphrase) { in createNetworkSpecifierPassphrase()
364 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, in createNetworkSpecifierPassphrase()
407 public NetworkSpecifier createNetworkSpecifierPmk(@NonNull PeerHandle peerHandle, in createNetworkSpecifierPmk() argument
428 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, pmk, null); in createNetworkSpecifierPmk()
DParcelablePeerHandle.java33 public ParcelablePeerHandle(@NonNull PeerHandle peerHandle) { in ParcelablePeerHandle() argument
34 super(peerHandle.peerId); in ParcelablePeerHandle()
56 int peerHandle = in.readInt();
57 return new ParcelablePeerHandle(new PeerHandle(peerHandle));
DDiscoverySessionCallback.java114 public void onServiceDiscovered(PeerHandle peerHandle, in onServiceDiscovered() argument
146 public void onServiceDiscoveredWithinRange(PeerHandle peerHandle, in onServiceDiscoveredWithinRange() argument
189 public void onMessageReceived(PeerHandle peerHandle, byte[] message) { in onMessageReceived() argument
DWifiAwareManager.java376 public void sendMessage(int clientId, int sessionId, PeerHandle peerHandle, byte[] message, in sendMessage() argument
378 if (peerHandle == null) { in sendMessage()
385 + ", peerHandle=" + peerHandle.peerId + ", messageId=" in sendMessage()
390 mService.sendMessage(clientId, sessionId, peerHandle.peerId, message, messageId, in sendMessage()
399 @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
402 + ", peerHandle=" + ((peerHandle == null) ? peerHandle : peerHandle.peerId) in createNetworkSpecifier()
420 if (peerHandle == null) { in createNetworkSpecifier()
427 (peerHandle == null) ? WifiAwareNetworkSpecifier.NETWORK_SPECIFIER_TYPE_IB_ANY_PEER in createNetworkSpecifier()
432 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
DWifiAwareNetworkSpecifier.java325 public Builder(@NonNull DiscoverySession discoverySession, @NonNull PeerHandle peerHandle) { in Builder() argument
329 if (peerHandle == null) { in Builder()
333 mPeerHandle = peerHandle; in Builder()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java285 final PeerHandle peerHandle = new PeerHandle(873); in testPublishFlow() local
325 publishSession.getValue().sendMessage(peerHandle, messageId, string1.getBytes()); in testPublishFlow()
326 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()
435 final PeerHandle peerHandle = new PeerHandle(873); in testSubscribeFlow() local
474 subscribeSession.getValue().sendMessage(peerHandle, messageId, string1.getBytes()); in testSubscribeFlow()
475 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); in testSubscribeFlow()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java989 if (rttPeer.peerHandle != null && rttPeer.macAddress == null) { in processAwarePeerHandles()
990 peerIdsNeedingTranslation.add(rttPeer.peerHandle.peerId); in processAwarePeerHandles()
1052 if (rttPeer.peerHandle != null && rttPeer.macAddress == null) { in processReceivedAwarePeerMacAddresses()
1053 byte[] mac = peerIdToMacMap.get(rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()
1056 + "address for peerId=" + rttPeer.peerHandle.peerId); in processReceivedAwarePeerMacAddresses()
1061 rttPeer.peerHandle, rttPeer.responderType, rttPeer.supports80211mc, in processReceivedAwarePeerMacAddresses()
1155 if (peer.peerHandle == null) { in postProcessResults()
1161 new RangingResult(errorCode, peer.peerHandle, 0, 0, 0, 0, 0, null, in postProcessResults()
1200 if (peer.peerHandle == null) { in postProcessResults()
1207 finalResults.add(new RangingResult(status, peer.peerHandle, in postProcessResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttTestUtils.java132 if (peer.peerHandle == null) { in getDummyRangingResults()
138 peer.peerHandle, rangeCmBase++, rangeStdDevCmBase++, rssiBase++, in getDummyRangingResults()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java234 PeerHandle peerHandle = new PeerHandle(10); in testRangingResultsParcel() local
261 result = new RangingResult(status, peerHandle, distanceCm, distanceStdDevCm, rssi, in testRangingResultsParcel()
284 PeerHandle peerHandle = new PeerHandle(10); in testRangingResultsEqualityLciLcr() local
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java1579 PeerHandle peerHandle, byte[] pmk, String passphrase, boolean doPublish, int requestId) in getSessionNetworkRequest() argument
1581 return getSessionNetworkRequestMore(clientId, sessionId, peerHandle, pmk, passphrase, in getSessionNetworkRequest()
1586 PeerHandle peerHandle, byte[] pmk, String passphrase, boolean doPublish, int requestId, in getSessionNetworkRequestMore() argument
1643 peerHandle, null, null, port, transportProtocol); in getSessionNetworkRequestMore()
1648 peerHandle, pmk, null, port, transportProtocol); in getSessionNetworkRequestMore()
1653 peerHandle, null, passphrase, port, transportProtocol); in getSessionNetworkRequestMore()
1848 PeerHandle peerHandle, byte[] pmk, String passphrase, int port, int transportProtocol) { in createNetworkSpecifier() argument
1850 (peerHandle == null) ? WifiAwareNetworkSpecifier.NETWORK_SPECIFIER_TYPE_IB_ANY_PEER in createNetworkSpecifier()
1855 peerHandle != null ? peerHandle.peerId : 0, // 0 is an invalid peer ID in createNetworkSpecifier()
/frameworks/base/api/
Dsystem-current.txt5017 field public final android.net.wifi.aware.PeerHandle peerHandle;