/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pConfig.java | 61 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()
|
D | WifiP2pGroup.java | 240 public void setPassphrase(String passphrase) { in setPassphrase() argument 241 mPassphrase = passphrase; in setPassphrase()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareNetworkSpecifier.java | 118 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()
|
D | WifiAwareUtils.java | 66 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()
|
D | DiscoverySession.java | 344 @NonNull PeerHandle peerHandle, @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument 345 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase() 365 passphrase); in createNetworkSpecifierPassphrase()
|
D | WifiAwareSession.java | 277 @NonNull String passphrase) { in createNetworkSpecifierPassphrase() argument 287 if (!WifiAwareUtils.validatePassphrase(passphrase)) { in createNetworkSpecifierPassphrase() 291 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase); in createNetworkSpecifierPassphrase()
|
D | WifiAwareManager.java | 399 @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/ |
D | WifiNetworkSuggestion.java | 180 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()
|
D | WifiNetworkSpecifier.java | 203 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/ |
D | WifiAwareDataPathStateManagerTest.java | 322 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 …]
|
D | TestUtils.java | 105 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
|
D | WifiAwareNativeApiTest.java | 650 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()
|
D | WifiAwareMetricsTest.java | 636 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/ |
D | WifiP2pGroupListTest.java | 48 String passphrase, boolean isGo, in createGroup() argument 53 group.setPassphrase(passphrase); in createGroup()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 443 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 …]
|
D | WifiAwareNativeApi.java | 896 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()
|
D | WifiAwareStateManager.java | 784 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 …]
|
D | WifiAwareMetrics.java | 416 boolean isSecure = !TextUtils.isEmpty(anri.networkSpecifier.passphrase) || ( in recordNdpCreation()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 923 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/ |
D | SupplicantP2pIfaceCallback.java | 263 int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress, in onGroupStarted() argument 285 group.setPassphrase(passphrase); in onGroupStarted()
|
D | WifiP2pNative.java | 602 config.passphrase, in p2pGroupAdd()
|
D | SupplicantP2pIfaceHal.java | 1195 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()
|
D | WifiP2pServiceImpl.java | 3303 && !TextUtils.isEmpty(config.passphrase)) { in isConfigValidAsGroup()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pNativeTest.java | 89 int networkId, String networkName, String passphrase, boolean isGo, String goAddr) { in createP2pGroup() argument 93 group.setPassphrase(passphrase); in createP2pGroup()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 45845 Landroid/net/wifi/aware/WifiAwareNetworkSpecifier;->passphrase:Ljava/lang/String;
|