Home
last modified time | relevance | path

Searched refs:passphrase (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pConfig.java61 public String passphrase = ""; field in WifiP2pConfig
170 TextUtils.isEmpty(passphrase) ? "<empty>" : "<non-empty>"); in toString()
188 passphrase = source.passphrase; in WifiP2pConfig()
200 dest.writeString(passphrase); in writeToParcel()
214 config.passphrase = in.readString();
315 public @NonNull Builder setPassphrase(@NonNull String passphrase) { in setPassphrase() argument
316 if (TextUtils.isEmpty(passphrase)) { in setPassphrase()
320 if (passphrase.length() < 8 || passphrase.length() > 63) { in setPassphrase()
324 mPassphrase = passphrase; in setPassphrase()
451 config.passphrase = mPassphrase; in build()
DWifiP2pGroup.java240 public void setPassphrase(String passphrase) { in setPassphrase() argument
241 mPassphrase = passphrase; in setPassphrase()
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java118 public final String passphrase; field in WifiAwareNetworkSpecifier
159 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol, in WifiAwareNetworkSpecifier() argument
168 this.passphrase = passphrase; in WifiAwareNetworkSpecifier()
222 dest.writeString(passphrase); in writeToParcel()
242 Arrays.hashCode(pmk), passphrase, port, transportProtocol, requestorUid); in hashCode()
265 && Objects.equals(passphrase, lhs.passphrase) in equals()
285 .append(", passphrase=").append((passphrase == null) ? "<null>" : "<non-null>") in toString()
DWifiAwareUtils.java66 public static boolean validatePassphrase(String passphrase) { in validatePassphrase() argument
67 if (passphrase == null in validatePassphrase()
68 || passphrase.length() < Constants.NanParamSizeLimits.MIN_PASSPHRASE_LENGTH in validatePassphrase()
69 || passphrase.length() > Constants.NanParamSizeLimits.MAX_PASSPHRASE_LENGTH) { in validatePassphrase()
DDiscoverySession.java344 @NonNull PeerHandle peerHandle, @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument
345 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase()
365 passphrase); in createNetworkSpecifierPassphrase()
DWifiAwareSession.java277 @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument
287 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase()
291 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase); in createNetworkSpecifierPassphrase()
DWifiAwareManager.java399 @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
404 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null")); in createNetworkSpecifier()
435 passphrase, in createNetworkSpecifier()
443 @NonNull byte[] peer, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
447 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null")); in createNetworkSpecifier()
476 passphrase, in createNetworkSpecifier()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java180 public @NonNull Builder setWpa2Passphrase(@NonNull String passphrase) { in setWpa2Passphrase() argument
181 checkNotNull(passphrase); in setWpa2Passphrase()
183 if (!asciiEncoder.canEncode(passphrase)) { in setWpa2Passphrase()
186 mWpa2PskPassphrase = passphrase; in setWpa2Passphrase()
198 public @NonNull Builder setWpa3Passphrase(@NonNull String passphrase) { in setWpa3Passphrase() argument
199 checkNotNull(passphrase); in setWpa3Passphrase()
201 if (!asciiEncoder.canEncode(passphrase)) { in setWpa3Passphrase()
204 mWpa3SaePassphrase = passphrase; in setWpa3Passphrase()
DWifiNetworkSpecifier.java203 public @NonNull Builder setWpa2Passphrase(@NonNull String passphrase) { in setWpa2Passphrase() argument
204 checkNotNull(passphrase); in setWpa2Passphrase()
206 if (!asciiEncoder.canEncode(passphrase)) { in setWpa2Passphrase()
209 mWpa2PskPassphrase = passphrase; in setWpa2Passphrase()
221 public @NonNull Builder setWpa3Passphrase(@NonNull String passphrase) { in setWpa3Passphrase() argument
222 checkNotNull(passphrase); in setWpa3Passphrase()
224 if (!asciiEncoder.canEncode(passphrase)) { in setWpa3Passphrase()
227 mWpa3SaePassphrase = passphrase; in setWpa3Passphrase()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java322 final String passphrase = "SomeSecurePassword"; in testDataPathWithPortInfoOnPublisher() local
335 null, passphrase, true, 0, 5, 6); in testDataPathWithPortInfoOnPublisher()
361 final String passphrase = "SomeSecurePassword"; in testDataPathWithPortInfoInvalidPort() local
373 null, passphrase, false, 0, -3, 6); in testDataPathWithPortInfoInvalidPort()
1199 ns.passphrase, in testDataPathInitiatorResponderMismatchUtility()
1258 ns.passphrase, in testDataPathInitiatorResponderInvalidUidUtility()
1309 final String passphrase = "some passphrase"; in testDataPathInitiatorUtilityMore() local
1342 providePassphrase ? passphrase : null, 0); in testDataPathInitiatorUtilityMore()
1346 providePassphrase ? passphrase : null, false, 0); in testDataPathInitiatorUtilityMore()
1359 eq(providePassphrase ? passphrase : null), eq(useDirect), any(), any()); in testDataPathInitiatorUtilityMore()
[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.java650 String passphrase = "blahblah"; in validateInitiateDataPath() local
661 usePmk ? pmk : null, usePassphrase ? passphrase : null, isOutOfBand, appInfo, cap); in validateInitiateDataPath()
681 equalTo(nidpr.securityConfig.passphrase.size())); in validateInitiateDataPath()
690 collector.checkThat("securityConfig.passphrase", passphrase.getBytes(), in validateInitiateDataPath()
691 equalTo(convertArrayListToNativeByteArray(nidpr.securityConfig.passphrase))); in validateInitiateDataPath()
714 String passphrase = "blahblah"; in validateRespondToDataPathRequest() local
725 usePassphrase ? passphrase : null, appInfo, isOutOfBand, cap); in validateRespondToDataPathRequest()
744 equalTo(nrtdpir.securityConfig.passphrase.size())); in validateRespondToDataPathRequest()
753 collector.checkThat("securityConfig.passphrase", passphrase.getBytes(), in validateRespondToDataPathRequest()
755 nrtdpir.securityConfig.passphrase))); in validateRespondToDataPathRequest()
DWifiAwareMetricsTest.java636 int index, int uid, String interfaceName, String passphrase) { in addNetworkInfoToCache() argument
638 passphrase, 0, 0, 0); in addNetworkInfoToCache()
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java48 String passphrase, boolean isGo, in createGroup() argument
53 group.setPassphrase(passphrase); in createGroup()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java443 nnri.networkSpecifier.passphrase, in onDataPathRequest()
942 nnri.networkSpecifier.passphrase, nnri.networkSpecifier.isOutOfBand(), in needNetworkFor()
1229 networkSpecifier.sessionId, networkSpecifier.passphrase); in getCanonicalDescriptor()
1304 if (TextUtils.isEmpty(ns.passphrase) && ns.pmk == null) { in processNetworkSpecifier()
1375 if (!TextUtils.isEmpty(ns.passphrase)) { // non-null indicates usage in processNetworkSpecifier()
1376 if (!WifiAwareUtils.validatePassphrase(ns.passphrase)) { in processNetworkSpecifier()
1378 + " -- invalid passphrase length: " + ns.passphrase.length()); in processNetworkSpecifier()
1430 String passphrase) { in CanonicalConnectionInfo() argument
1434 this.passphrase = passphrase; in CanonicalConnectionInfo()
1448 public final String passphrase; field in WifiAwareDataPathStateManager.CanonicalConnectionInfo
[all …]
DWifiAwareNativeApi.java896 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPath() argument
903 + ", passphrase=" + (TextUtils.isEmpty(passphrase) ? "<empty>" : "<*>") in initiateDataPath()
933 if (passphrase != null && passphrase.length() != 0) { in initiateDataPath()
937 convertNativeByteArrayToArrayList(passphrase.getBytes(), req.securityConfig.passphrase); in initiateDataPath()
979 String interfaceName, byte[] pmk, String passphrase, byte[] appInfo, in respondToDataPathRequest() argument
1010 if (passphrase != null && passphrase.length() != 0) { in respondToDataPathRequest()
1014 convertNativeByteArrayToArrayList(passphrase.getBytes(), req.securityConfig.passphrase); in respondToDataPathRequest()
DWifiAwareStateManager.java784 String passphrase, boolean isOutOfBand, byte[] appInfo) { in initiateDataPathSetup() argument
794 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase); in initiateDataPathSetup()
804 byte[] pmk, String passphrase, byte[] appInfo, boolean isOutOfBand) { in respondToDataPathRequest() argument
811 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase); in respondToDataPathRequest()
1727 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE); in processCommand() local
1733 interfaceName, pmk, passphrase, isOutOfBand, appInfo); in processCommand()
1752 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE); in processCommand() local
1757 ndpId, interfaceName, pmk, passphrase, appInfo, isOutOfBand); in processCommand()
2483 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPathSetupLocal() argument
2492 (passphrase == null) ? "" : "*") + ", isOutOfBand=" in initiateDataPathSetupLocal()
[all …]
DWifiAwareMetrics.java416 boolean isSecure = !TextUtils.isEmpty(anri.networkSpecifier.passphrase) || ( in recordNdpCreation()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java923 final String passphrase = PASSPHRASE_VALID; in testNetworkSpecifierWithClient() local
1009 peerHandle, passphrase); in testNetworkSpecifierWithClient()
1011 peerHandle).setPskPassphrase(passphrase).setPort(port).setTransportProtocol( in testNetworkSpecifierWithClient()
1020 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase)); in testNetworkSpecifierWithClient()
1027 collector.checkThat("passphrase", passphrase, equalTo(nsb.passphrase)); in testNetworkSpecifierWithClient()
1046 final String passphrase = PASSPHRASE_VALID; in testNetworkSpecifierDirect() local
1085 passphrase); in testNetworkSpecifierDirect()
1091 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase)); in testNetworkSpecifierDirect()
1222 String passphrase, boolean useBuilder) throws Exception { in executeNetworkSpecifierWithClient() argument
1268 peerHandle).setPskPassphrase(passphrase).build(); in executeNetworkSpecifierWithClient()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java263 int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress, in onGroupStarted() argument
285 group.setPassphrase(passphrase); in onGroupStarted()
DWifiP2pNative.java602 config.passphrase, in p2pGroupAdd()
DSupplicantP2pIfaceHal.java1195 public boolean groupAdd(String networkName, String passphrase, in groupAdd() argument
1212 + (TextUtils.isEmpty(passphrase) ? "<Empty>" : "<Non-Empty>") in groupAdd()
1217 ssid, passphrase, isPersistent, freq, macAddress, join)); in groupAdd()
DWifiP2pServiceImpl.java3303 && !TextUtils.isEmpty(config.passphrase)) { in isConfigValidAsGroup()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java89 int networkId, String networkName, String passphrase, boolean isGo, String goAddr) { in createP2pGroup() argument
93 group.setPassphrase(passphrase); in createP2pGroup()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt45845 Landroid/net/wifi/aware/WifiAwareNetworkSpecifier;->passphrase:Ljava/lang/String;