Home
last modified time | relevance | path

Searched refs:peerMac (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java110 public final byte[] peerMac; field in WifiAwareNetworkSpecifier
156 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol) { in WifiAwareNetworkSpecifier() argument
162 this.peerMac = peerMac; in WifiAwareNetworkSpecifier()
214 dest.writeByteArray(peerMac); in writeToParcel()
234 return Objects.hash(type, role, clientId, sessionId, peerId, Arrays.hashCode(peerMac), in hashCode()
256 && Arrays.equals(peerMac, lhs.peerMac) in equals()
273 .append(", peerMac=").append((peerMac == null) ? "<null>" : "<non-null>") in toString()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java272 public void onMatch(int requestorInstanceId, byte[] peerMac, byte[] serviceSpecificInfo, in onMatch() argument
274 int peerId = getPeerIdOrAddIfNew(requestorInstanceId, peerMac); in onMatch()
324 public void onMessageReceived(int requestorInstanceId, byte[] peerMac, byte[] message) { in onMessageReceived() argument
325 int peerId = getPeerIdOrAddIfNew(requestorInstanceId, peerMac); in onMessageReceived()
334 private int getPeerIdOrAddIfNew(int requestorInstanceId, byte[] peerMac) { in getPeerIdOrAddIfNew() argument
337 if (peerInfo.mInstanceId == requestorInstanceId && Arrays.equals(peerMac, in getPeerIdOrAddIfNew()
344 PeerInfo newPeerInfo = new PeerInfo(requestorInstanceId, peerMac); in getPeerIdOrAddIfNew()
DWifiAwareDataPathStateManager.java801 public void onDataPathSchedUpdate(byte[] peerMac, List<Integer> ndpIds, in onDataPathSchedUpdate() argument
804 Log.v(TAG, "onDataPathSchedUpdate: peerMac=" + MacAddress.fromBytes(peerMac).toString() in onDataPathSchedUpdate()
816 if (!Arrays.equals(peerMac, ndpInfo.peerDiscoveryMac)) { in onDataPathSchedUpdate()
818 + MacAddress.fromBytes(peerMac).toString() + " doesn't match NDP NMI=" in onDataPathSchedUpdate()
1385 byte[] peerMac = ns.peerMac; in processNetworkSpecifier()
1490 peerMac = peerInfo.mMac; in processNetworkSpecifier()
1491 if (peerMac == null || peerMac.length != 6) { in processNetworkSpecifier()
1534 nnri.specifiedPeerDiscoveryMac = peerMac; in processNetworkSpecifier()
DWifiAwareStateManager.java1199 public void onMatchNotification(int pubSubId, int requestorInstanceId, byte[] peerMac, in onMatchNotification() argument
1205 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_MAC_ADDRESS, peerMac); in onMatchNotification()
1242 public void onMessageReceivedNotification(int pubSubId, int requestorInstanceId, byte[] peerMac, in onMessageReceivedNotification() argument
1248 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_MAC_ADDRESS, peerMac); in onMessageReceivedNotification()
1330 public void onDataPathScheduleUpdateNotification(byte[] peerMac, ArrayList<Integer> ndpIds, in onDataPathScheduleUpdateNotification() argument
1334 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_MAC_ADDRESS, peerMac); in onDataPathScheduleUpdateNotification()
1537 byte[] peerMac = msg.getData().getByteArray(MESSAGE_BUNDLE_KEY_MAC_ADDRESS); in processNotification()
1544 onMatchLocal(pubSubId, requestorInstanceId, peerMac, serviceSpecificInfo, in processNotification()
1566 byte[] peerMac = msg.getData().getByteArray(MESSAGE_BUNDLE_KEY_MAC_ADDRESS); in processNotification()
1569 onMessageReceivedLocal(pubSubId, requestorInstanceId, peerMac, message); in processNotification()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java1404 final byte[] peerMac = HexEncoding.decode("060708090A0B".toCharArray(), false); in testMatchAndMessages()
1467 mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), in testMatchAndMessages()
1475 mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), in testMatchAndMessages()
1486 mDut.onMessageReceivedNotification(subscribeId, requestorId, peerMac, peerMsg.getBytes()); in testMatchAndMessages()
1496 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); in testMatchAndMessages()
1506 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId2)); in testMatchAndMessages()
1741 final byte[] peerMac = HexEncoding.decode("060708090A0B".toCharArray(), false); in testSendMessageToInvalidPeerId()
1776 mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), in testSendMessageToInvalidPeerId()
1809 final byte[] peerMac = HexEncoding.decode("060708090A0B".toCharArray(), false); in testSendMessageErrorsImmediateQueueTimeout()
1844 mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), in testSendMessageErrorsImmediateQueueTimeout()
[all …]
DWifiAwareDataPathStateManagerTest.java1333 ns.peerMac, in testDataPathInitiatorResponderMismatchUtility()
1394 ns.peerMac, in testDataPathInitiatorResponderInvalidUidUtility()
1457 ns.peerMac, in testDataPathInitiatorResponderInvalidPackageNameUtility()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java1137 collector.checkThat("peer_mac", someMac, equalTo(ns.peerMac)); in testNetworkSpecifierDirect()
1145 collector.checkThat("peer_mac", someMac, equalTo(ns.peerMac)); in testNetworkSpecifierDirect()
1155 collector.checkThat("peer_mac", someMac, equalTo(ns.peerMac)); in testNetworkSpecifierDirect()
/packages/modules/Wifi/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt347 Landroid/net/wifi/aware/WifiAwareNetworkSpecifier;->peerMac:[B