Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java111 public final byte[] pmk; field in WifiAwareNetworkSpecifier
159 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol, in WifiAwareNetworkSpecifier() argument
167 this.pmk = pmk; in WifiAwareNetworkSpecifier()
221 dest.writeByteArray(pmk); in writeToParcel()
242 Arrays.hashCode(pmk), passphrase, port, transportProtocol, requestorUid); in hashCode()
264 && Arrays.equals(pmk, lhs.pmk) in equals()
283 .append(", pmk=").append((pmk == null) ? "<null>" : "<non-null>") in toString()
356 public @NonNull Builder setPmk(@NonNull byte[] pmk) { in setPmk() argument
357 if (!WifiAwareUtils.validatePmk(pmk)) { in setPmk()
360 mPmk = pmk; in setPmk()
DWifiAwareUtils.java82 public static boolean validatePmk(byte[] pmk) { in validatePmk() argument
83 if (pmk == null || pmk.length != 32) { in validatePmk()
DDiscoverySession.java408 @NonNull byte[] pmk) { in createNetworkSpecifierPmk() argument
409 if (!WifiAwareUtils.validatePmk(pmk)) { in createNetworkSpecifierPmk()
428 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, pmk, null); in createNetworkSpecifierPmk()
DWifiAwareSession.java327 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer, @NonNull byte[] pmk) { in createNetworkSpecifierPmk() argument
337 if (!WifiAwareUtils.validatePmk(pmk)) { in createNetworkSpecifierPmk()
340 return mgr.createNetworkSpecifier(mClientId, role, peer, pmk, null); in createNetworkSpecifierPmk()
DWifiAwareManager.java399 @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
403 + ", pmk=" + ((pmk == null) ? "null" : "non-null") in createNetworkSpecifier()
434 pmk, in createNetworkSpecifier()
443 @NonNull byte[] peer, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
446 + ", pmk=" + ((pmk == null) ? "null" : "non-null") in createNetworkSpecifier()
475 pmk, in createNetworkSpecifier()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java284 final byte[] pmk = "01234567890123456789012345678901".getBytes(); in testDataPathPmkWithoutPermission()
299 NetworkRequest nr = getSessionNetworkRequest(clientId, res.mSessionId, res.mPeerHandle, pmk, in testDataPathPmkWithoutPermission()
772 byte[] pmk = new byte[32]; in testMultipleNdi()
773 pmk[0] = (byte) i; in testMultipleNdi()
776 WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR, peerDiscoveryMac, pmk, in testMultipleNdi()
789 ifNameCaptor.capture(), eq(pmk), eq(null), eq(true), any(), any()); in testMultipleNdi()
1173 final byte[] pmk = "01234567890123456789012345678901".getBytes(); in testDataPathInitiatorResponderMismatchUtility()
1185 NetworkRequest nr = getSessionNetworkRequest(clientId, res.mSessionId, res.mPeerHandle, pmk, in testDataPathInitiatorResponderMismatchUtility()
1198 ns.pmk, in testDataPathInitiatorResponderMismatchUtility()
1232 final byte[] pmk = "01234567890123456789012345678901".getBytes(); in testDataPathInitiatorResponderInvalidUidUtility()
[all …]
DTestUtils.java105 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPath() argument
112 String interfaceName, byte[] pmk, String passphrase, byte[] appInfo, in respondToDataPathRequest() argument
DWifiAwareNativeApiTest.java649 final byte[] pmk = "01234567890123456789012345678901".getBytes(); in validateInitiateDataPath()
661 usePmk ? pmk : null, usePassphrase ? passphrase : null, isOutOfBand, appInfo, cap); in validateInitiateDataPath()
679 collector.checkThat("securityConfig.pmk", pmk, equalTo(nidpr.securityConfig.pmk)); in validateInitiateDataPath()
713 final byte[] pmk = "01234567890123456789012345678901".getBytes(); in validateRespondToDataPathRequest()
724 mDut.respondToDataPathRequest(tid, accept, ndpId, interfaceName, usePmk ? pmk : null, in validateRespondToDataPathRequest()
742 collector.checkThat("securityConfig.pmk", pmk, equalTo(nrtdpir.securityConfig.pmk)); in validateRespondToDataPathRequest()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java922 final byte[] pmk = PMK_VALID; in testNetworkSpecifierWithClient()
984 peerHandle, pmk); in testNetworkSpecifierWithClient()
986 pmk).setPort(port).setTransportProtocol(transportProtocol).build(); in testNetworkSpecifierWithClient()
994 collector.checkThat("pmk", pmk , equalTo(ns.pmk)); in testNetworkSpecifierWithClient()
1001 collector.checkThat("pmk", pmk , equalTo(nsb.pmk)); in testNetworkSpecifierWithClient()
1045 final byte[] pmk = PMK_VALID; in testNetworkSpecifierDirect()
1075 ns = (WifiAwareNetworkSpecifier) session.createNetworkSpecifierPmk(role, someMac, pmk); in testNetworkSpecifierDirect()
1081 collector.checkThat("pmk", pmk, equalTo(ns.pmk)); in testNetworkSpecifierDirect()
1221 private void executeNetworkSpecifierWithClient(PeerHandle peerHandle, boolean doPmk, byte[] pmk, in executeNetworkSpecifierWithClient() argument
1261 pmk).build(); in executeNetworkSpecifierWithClient()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java442 mMgr.respondToDataPathRequest(true, ndpId, nnri.interfaceName, nnri.networkSpecifier.pmk, in onDataPathRequest()
941 nnri.peerDiscoveryMac, nnri.interfaceName, nnri.networkSpecifier.pmk, in needNetworkFor()
1228 return new CanonicalConnectionInfo(peerDiscoveryMac, networkSpecifier.pmk, in getCanonicalDescriptor()
1304 if (TextUtils.isEmpty(ns.passphrase) && ns.pmk == null) { in processNetworkSpecifier()
1365 if (ns.pmk != null && ns.pmk.length != 0) { in processNetworkSpecifier()
1382 if (ns.pmk != null && !WifiAwareUtils.validatePmk(ns.pmk)) { // non-null indicates usage in processNetworkSpecifier()
1384 + " -- invalid pmk length: " + ns.pmk.length); in processNetworkSpecifier()
1429 CanonicalConnectionInfo(byte[] peerDiscoveryMac, byte[] pmk, int sessionId, in CanonicalConnectionInfo() argument
1432 this.pmk = pmk; in CanonicalConnectionInfo()
1445 public final byte[] pmk; field in WifiAwareDataPathStateManager.CanonicalConnectionInfo
[all …]
DWifiAwareNativeApi.java896 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPath() argument
902 + interfaceName + ", pmk=" + ((pmk == null) ? "<null>" : "<*>") in initiateDataPath()
927 if (pmk != null && pmk.length != 0) { in initiateDataPath()
931 copyArray(pmk, req.securityConfig.pmk); in initiateDataPath()
979 String interfaceName, byte[] pmk, String passphrase, byte[] appInfo, in respondToDataPathRequest() argument
1004 if (pmk != null && pmk.length != 0) { in respondToDataPathRequest()
1008 copyArray(pmk, req.securityConfig.pmk); in respondToDataPathRequest()
DWifiAwareStateManager.java783 int channelRequestType, int channel, byte[] peer, String interfaceName, byte[] pmk, in initiateDataPathSetup() argument
793 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_PMK, pmk); in initiateDataPathSetup()
804 byte[] pmk, String passphrase, byte[] appInfo, boolean isOutOfBand) { in respondToDataPathRequest() argument
810 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_PMK, pmk); in respondToDataPathRequest()
1726 byte[] pmk = data.getByteArray(MESSAGE_BUNDLE_KEY_PMK); in processCommand()
1733 interfaceName, pmk, passphrase, isOutOfBand, appInfo); in processCommand()
1751 byte[] pmk = data.getByteArray(MESSAGE_BUNDLE_KEY_PMK); in processCommand()
1757 ndpId, interfaceName, pmk, passphrase, appInfo, isOutOfBand); in processCommand()
2483 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPathSetupLocal() argument
2491 + ", pmk=" + ((pmk == null) ? "" : "*") + ", passphrase=" + ( in initiateDataPathSetupLocal()
[all …]
DWifiAwareMetrics.java417 anri.networkSpecifier.pmk != null && anri.networkSpecifier.pmk.length != 0); in recordNdpCreation()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt45848 Landroid/net/wifi/aware/WifiAwareNetworkSpecifier;->pmk:[B