Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pConfig.java65 return passphrase; in getPassphrase()
69 public String passphrase = ""; field in WifiP2pConfig
214 TextUtils.isEmpty(passphrase) ? "<empty>" : "<non-empty>"); in toString()
232 passphrase = source.passphrase; in WifiP2pConfig()
244 dest.writeString(passphrase); in writeToParcel()
258 config.passphrase = in.readString();
359 public @NonNull Builder setPassphrase(@NonNull String passphrase) { in setPassphrase() argument
360 if (TextUtils.isEmpty(passphrase)) { in setPassphrase()
364 if (passphrase.length() < 8 || passphrase.length() > 63) { in setPassphrase()
368 mPassphrase = passphrase; in setPassphrase()
[all …]
DWifiP2pGroup.java255 public void setPassphrase(String passphrase) { in setPassphrase() argument
256 mPassphrase = passphrase; in setPassphrase()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java124 public final String passphrase; field in WifiAwareNetworkSpecifier
156 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol) { in WifiAwareNetworkSpecifier() argument
164 this.passphrase = passphrase; in WifiAwareNetworkSpecifier()
216 dest.writeString(passphrase); in writeToParcel()
235 Arrays.hashCode(pmk), passphrase, port, transportProtocol); in hashCode()
258 && Objects.equals(passphrase, lhs.passphrase) in equals()
277 .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()
DWifiAwareSession.java294 @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument
304 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase()
308 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase); in createNetworkSpecifierPassphrase()
DDiscoverySession.java345 @NonNull PeerHandle peerHandle, @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument
346 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase()
366 passphrase); in createNetworkSpecifierPassphrase()
DWifiAwareManager.java516 @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
521 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null")); in createNetworkSpecifier()
552 passphrase, in createNetworkSpecifier()
559 @NonNull byte[] peer, @Nullable byte[] pmk, @Nullable String passphrase) { in createNetworkSpecifier() argument
563 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null")); in createNetworkSpecifier()
592 passphrase, in createNetworkSpecifier()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java291 final String passphrase = "SomeSecurePassword"; in testDataPathWithPortInfoOnPublisher() local
304 null, passphrase, true, 0, 5, 6); in testDataPathWithPortInfoOnPublisher()
331 final String passphrase = "SomeSecurePassword"; in testDataPathWithPortInfoInvalidPort() local
343 null, passphrase, false, 0, -3, 6); in testDataPathWithPortInfoInvalidPort()
1335 ns.passphrase, in testDataPathInitiatorResponderMismatchUtility()
1396 ns.passphrase, in testDataPathInitiatorResponderInvalidUidUtility()
1459 ns.passphrase, in testDataPathInitiatorResponderInvalidPackageNameUtility()
1512 final String passphrase = "some passphrase"; in testDataPathInitiatorUtilityMore() local
1545 providePassphrase ? passphrase : null, 0); in testDataPathInitiatorUtilityMore()
1549 providePassphrase ? passphrase : null, false, 0); in testDataPathInitiatorUtilityMore()
[all …]
DWifiAwareNativeApiTest.java667 String passphrase = "blahblah"; in validateInitiateDataPath() local
678 usePmk ? pmk : null, usePassphrase ? passphrase : null, isOutOfBand, appInfo, cap); in validateInitiateDataPath()
698 equalTo(nidpr.securityConfig.passphrase.size())); in validateInitiateDataPath()
707 collector.checkThat("securityConfig.passphrase", passphrase.getBytes(), in validateInitiateDataPath()
708 equalTo(convertArrayListToNativeByteArray(nidpr.securityConfig.passphrase))); in validateInitiateDataPath()
731 String passphrase = "blahblah"; in validateRespondToDataPathRequest() local
742 usePassphrase ? passphrase : null, appInfo, isOutOfBand, cap); in validateRespondToDataPathRequest()
761 equalTo(nrtdpir.securityConfig.passphrase.size())); in validateRespondToDataPathRequest()
770 collector.checkThat("securityConfig.passphrase", passphrase.getBytes(), in validateRespondToDataPathRequest()
772 nrtdpir.securityConfig.passphrase))); in validateRespondToDataPathRequest()
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
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkSuggestion.java319 public @NonNull Builder setWpa2Passphrase(@NonNull String passphrase) { in setWpa2Passphrase() argument
320 checkNotNull(passphrase); in setWpa2Passphrase()
322 if (!asciiEncoder.canEncode(passphrase)) { in setWpa2Passphrase()
325 mWpa2PskPassphrase = passphrase; in setWpa2Passphrase()
337 public @NonNull Builder setWpa3Passphrase(@NonNull String passphrase) { in setWpa3Passphrase() argument
338 checkNotNull(passphrase); in setWpa3Passphrase()
340 if (!asciiEncoder.canEncode(passphrase)) { in setWpa3Passphrase()
343 mWpa3SaePassphrase = passphrase; in setWpa3Passphrase()
562 public @NonNull Builder setWapiPassphrase(@NonNull String passphrase) { in setWapiPassphrase() argument
563 checkNotNull(passphrase); in setWapiPassphrase()
[all …]
DWifiNetworkSpecifier.java279 public @NonNull Builder setWpa2Passphrase(@NonNull String passphrase) { in setWpa2Passphrase() argument
280 checkNotNull(passphrase); in setWpa2Passphrase()
282 if (!asciiEncoder.canEncode(passphrase)) { in setWpa2Passphrase()
285 mWpa2PskPassphrase = passphrase; in setWpa2Passphrase()
297 public @NonNull Builder setWpa3Passphrase(@NonNull String passphrase) { in setWpa3Passphrase() argument
298 checkNotNull(passphrase); in setWpa3Passphrase()
300 if (!asciiEncoder.canEncode(passphrase)) { in setWpa3Passphrase()
303 mWpa3SaePassphrase = passphrase; in setWpa3Passphrase()
DSoftApConfiguration.java324 @Nullable String passphrase, boolean hiddenSsid, @NonNull SparseIntArray channels, in SoftApConfiguration() argument
332 mPassphrase = passphrase; in SoftApConfiguration()
1026 public Builder setPassphrase(@Nullable String passphrase, @SecurityType int securityType) { in setPassphrase() argument
1028 if (passphrase != null) { in setPassphrase()
1033 Preconditions.checkStringNotEmpty(passphrase); in setPassphrase()
1036 if (passphrase.length() < PSK_MIN_LEN || passphrase.length() > PSK_MAX_LEN) { in setPassphrase()
1045 mPassphrase = passphrase; in setPassphrase()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java490 nnri.networkSpecifier.passphrase, in onDataPathRequest()
1020 nnri.networkSpecifier.pmk, nnri.networkSpecifier.passphrase, in needNetworkFor()
1375 networkSpecifier.sessionId, networkSpecifier.passphrase); in getCanonicalDescriptor()
1451 if (TextUtils.isEmpty(ns.passphrase) && ns.pmk == null) { in processNetworkSpecifier()
1514 if (!TextUtils.isEmpty(ns.passphrase)) { // non-null indicates usage in processNetworkSpecifier()
1515 if (!WifiAwareUtils.validatePassphrase(ns.passphrase)) { in processNetworkSpecifier()
1517 + " -- invalid passphrase length: " + ns.passphrase.length()); in processNetworkSpecifier()
1571 String passphrase) { in CanonicalConnectionInfo() argument
1575 this.passphrase = passphrase; in CanonicalConnectionInfo()
1589 public final String passphrase; field in WifiAwareDataPathStateManager.CanonicalConnectionInfo
[all …]
DWifiAwareNativeApi.java1037 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPath() argument
1044 + ", passphrase=" + (TextUtils.isEmpty(passphrase) ? "<empty>" : "<*>") in initiateDataPath()
1074 if (passphrase != null && passphrase.length() != 0) { in initiateDataPath()
1078 convertNativeByteArrayToArrayList(passphrase.getBytes(), req.securityConfig.passphrase); in initiateDataPath()
1120 String interfaceName, byte[] pmk, String passphrase, byte[] appInfo, in respondToDataPathRequest() argument
1151 if (passphrase != null && passphrase.length() != 0) { in respondToDataPathRequest()
1155 convertNativeByteArrayToArrayList(passphrase.getBytes(), req.securityConfig.passphrase); in respondToDataPathRequest()
DWifiAwareStateManager.java931 String passphrase, boolean isOutOfBand, byte[] appInfo) { in initiateDataPathSetup() argument
941 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase); in initiateDataPathSetup()
951 byte[] pmk, String passphrase, byte[] appInfo, boolean isOutOfBand) { in respondToDataPathRequest() argument
958 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase); in respondToDataPathRequest()
1924 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE); in processCommand() local
1930 interfaceName, pmk, passphrase, isOutOfBand, appInfo); in processCommand()
1940 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE); in processCommand() local
1945 ndpId, interfaceName, pmk, passphrase, appInfo, isOutOfBand); in processCommand()
2712 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, in initiateDataPathSetupLocal() argument
2721 (passphrase == null) ? "" : "*") + ", isOutOfBand=" in initiateDataPathSetupLocal()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java988 final String passphrase = PASSPHRASE_VALID; in testNetworkSpecifierWithClient() local
1074 peerHandle, passphrase); in testNetworkSpecifierWithClient()
1076 peerHandle).setPskPassphrase(passphrase).setPort(port).setTransportProtocol( in testNetworkSpecifierWithClient()
1085 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase)); in testNetworkSpecifierWithClient()
1092 collector.checkThat("passphrase", passphrase, equalTo(nsb.passphrase)); in testNetworkSpecifierWithClient()
1111 final String passphrase = PASSPHRASE_VALID; in testNetworkSpecifierDirect() local
1150 passphrase); in testNetworkSpecifierDirect()
1156 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase)); in testNetworkSpecifierDirect()
1287 String passphrase, boolean useBuilder) throws Exception { in executeNetworkSpecifierWithClient() argument
1333 peerHandle).setPskPassphrase(passphrase).build(); in executeNetworkSpecifierWithClient()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceController.java137 String passphrase = getCarSoftApConfig().getPassphrase(); in getSyncedPassword() local
138 if (!TextUtils.isEmpty(passphrase)) { in getSyncedPassword()
139 return passphrase; in getSyncedPassword()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java157 String passphrase = BackupUtils.readString(in); in retrieveSoftApConfigurationFromBackupData() local
160 configBuilder.setPassphrase(passphrase, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in retrieveSoftApConfigurationFromBackupData()
162 configBuilder.setPassphrase(passphrase, securityType); in retrieveSoftApConfigurationFromBackupData()
DSoftApStoreData.java184 String passphrase = null; in deserializeData() local
231 passphrase = (String) value; in deserializeData()
326 softApConfigBuilder.setPassphrase(passphrase, securityType); in deserializeData()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java48 String passphrase, boolean isGo, in createGroup() argument
53 group.setPassphrase(passphrase); in createGroup()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackV1_4Impl.java171 int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress, in onGroupStarted() argument
174 ssid, frequency, psk, passphrase, goDeviceAddress, isPersistent); in onGroupStarted()
DSupplicantP2pIfaceCallbackImpl.java268 int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress, in onGroupStarted() argument
290 group.setPassphrase(passphrase); in onGroupStarted()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHostapdHalTest.java1103 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_SAE_WithoutACS()
1150 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_SAE_Transition_WithoutACS()
1324 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_WithMeteredSAE()
1372 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_WithNonMeteredSAE()
1469 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_DualBandConfig()
1520 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDevice()
1574 assertEquals(NETWORK_PSK, mNetworkParamsV13Captor.getValue().V1_2.passphrase); in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDeviceBut11AXDisabled()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java99 int networkId, String networkName, String passphrase, boolean isGo, String goAddr) { in createP2pGroup() argument
103 group.setPassphrase(passphrase); in createP2pGroup()

12