Searched refs:passphrase (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/aware/
H A DWifiAwareUtils.java60 * Validates that the passphrase is a non-null string of the right size (per the HAL min/max
63 * @param passphrase Passphrase to test
64 * @return true if passphrase is valid, false if not
66 public static boolean validatePassphrase(String passphrase) { argument
67 if (passphrase == null
68 || passphrase.length() < Constants.NanParamSizeLimits.MIN_PASSPHRASE_LENGTH
69 || passphrase.length() > Constants.NanParamSizeLimits.MAX_PASSPHRASE_LENGTH) {
H A DWifiAwareNetworkSpecifier.java38 * TYPE: in band, specific peer: role, client_id, session_id, peer_id, pmk/passphrase optional
44 * TYPE: in band, any peer: role, client_id, session_id, pmk/passphrase optional
51 * TYPE: out-of-band: role, client_id, peer_mac, pmk/passphrase optional
57 * TYPE: out-of-band, any peer: role, client_id, pmk/passphrase optional
106 * The PMK of the requested data-path. Can be null. Only one or none of pmk or passphrase should
114 * passphrase should be specified.
117 public final String passphrase; field in class:WifiAwareNetworkSpecifier
130 byte[] peerMac, byte[] pmk, String passphrase, int requestorUid) {
138 this.passphrase = passphrase;
129 WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, byte[] peerMac, byte[] pmk, String passphrase, int requestorUid) argument
[all...]
H A DDiscoverySession.java328 * @param passphrase The passphrase to be used to encrypt the link. The PMK is generated from
329 * the passphrase. Use the
340 @NonNull PeerHandle peerHandle, @NonNull String passphrase) {
341 if (!WifiAwareUtils.validatePassphrase(passphrase)) {
361 passphrase);
339 createNetworkSpecifierPassphrase( @onNull PeerHandle peerHandle, @NonNull String passphrase) argument
H A DWifiAwareSession.java265 * @param passphrase The passphrase to be used to encrypt the link. The PMK is generated from
266 * the passphrase. Use {@link #createNetworkSpecifierOpen(int, byte[])} to
277 @NonNull String passphrase) {
287 if (!WifiAwareUtils.validatePassphrase(passphrase)) {
291 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase);
275 createNetworkSpecifierPassphrase( @ifiAwareManager.DataPathRole int role, @NonNull byte[] peer, @NonNull String passphrase) argument
H A DWifiAwareManager.java410 @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) {
415 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null"));
441 passphrase,
447 @NonNull byte[] peer, @Nullable byte[] pmk, @Nullable String passphrase) {
451 + ", passphrase=" + ((passphrase == null) ? "null" : "non-null"));
480 passphrase,
409 createNetworkSpecifier(int clientId, int role, int sessionId, @NonNull PeerHandle peerHandle, @Nullable byte[] pmk, @Nullable String passphrase) argument
446 createNetworkSpecifier(int clientId, @DataPathRole int role, @NonNull byte[] peer, @Nullable byte[] pmk, @Nullable String passphrase) argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
H A DTestUtils.java105 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase,
112 String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand,
104 initiateDataPath(short transactionId, int peerId, int channelRequestType, int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand, Capabilities capabilities) argument
111 respondToDataPathRequest(short transactionId, boolean accept, int ndpId, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand, Capabilities capabilities) argument
H A DWifiAwareDataPathStateManagerTest.java915 ns.passphrase,
971 ns.passphrase,
1005 final String passphrase = "some passphrase";
1038 providePassphrase ? passphrase : null, 0);
1042 providePassphrase ? passphrase : null, false, 0);
1055 eq(providePassphrase ? passphrase : null), eq(useDirect), any());
1120 final String passphrase = "some passphrase";
1149 providePassphrase ? passphrase
1225 getSessionNetworkRequest(int clientId, int sessionId, PeerHandle peerHandle, byte[] pmk, String passphrase, boolean doPublish, int requestId) argument
1308 getDirectNetworkRequest(int clientId, int role, byte[] peer, byte[] pmk, String passphrase, int requestId) argument
1465 createNetworkSpecifier(int clientId, int role, int sessionId, PeerHandle peerHandle, byte[] pmk, String passphrase) argument
1484 createNetworkSpecifier(int clientId, int role, byte[] peer, byte[] pmk, String passphrase) argument
[all...]
H A DWifiAwareMetricsTest.java462 addNetworkInfoToCache(networkRequestCache, 12, uid2, ndi1, "passphrase of some kind");
631 int index, int uid, String interfaceName, String passphrase) {
633 passphrase, 0);
628 addNetworkInfoToCache( Map<WifiAwareNetworkSpecifier, WifiAwareDataPathStateManager .AwareNetworkRequestInformation> networkRequestCache, int index, int uid, String interfaceName, String passphrase) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
H A DWifiAwareDataPathStateManager.java393 nnri.networkSpecifier.passphrase, nnri.networkSpecifier.isOutOfBand());
798 nnri.networkSpecifier.passphrase, nnri.networkSpecifier.isOutOfBand());
1062 networkSpecifier.sessionId, networkSpecifier.passphrase);
1188 // validate passphrase & PMK (if provided)
1189 if (!TextUtils.isEmpty(ns.passphrase)) { // non-null indicates usage
1190 if (!WifiAwareUtils.validatePassphrase(ns.passphrase)) {
1192 + " -- invalid passphrase length: " + ns.passphrase.length());
1241 String passphrase) {
1245 this.passphrase
1240 CanonicalConnectionInfo(byte[] peerDiscoveryMac, byte[] pmk, int sessionId, String passphrase) argument
1259 public final String passphrase; field in class:WifiAwareDataPathStateManager.CanonicalConnectionInfo
[all...]
H A DWifiAwareNativeApi.java885 * @param passphrase Passphrase for the data-path.
889 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase,
923 if (passphrase != null && passphrase.length() != 0) {
927 convertNativeByteArrayToArrayList(passphrase.getBytes(), req.securityConfig.passphrase);
961 * @param passphrase Passphrase for the data-path.
967 String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand,
997 if (passphrase != null && passphrase
888 initiateDataPath(short transactionId, int peerId, int channelRequestType, int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand, Capabilities capabilities) argument
966 respondToDataPathRequest(short transactionId, boolean accept, int ndpId, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand, Capabilities capabilities) argument
[all...]
H A DWifiAwareStateManager.java194 private static final String MESSAGE_BUNDLE_KEY_PASSPHRASE = "passphrase";
779 String passphrase, boolean isOutOfBand) {
789 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase);
798 byte[] pmk, String passphrase, boolean isOutOfBand) {
805 msg.getData().putString(MESSAGE_BUNDLE_KEY_PASSPHRASE, passphrase);
1717 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE);
1722 interfaceName, pmk, passphrase, isOutOfBand);
1741 String passphrase = data.getString(MESSAGE_BUNDLE_KEY_PASSPHRASE);
1745 ndpId, interfaceName, pmk, passphrase, isOutOfBand);
2471 int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase,
777 initiateDataPathSetup(WifiAwareNetworkSpecifier networkSpecifier, int peerId, int channelRequestType, int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand) argument
797 respondToDataPathRequest(boolean accept, int ndpId, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand) argument
2469 initiateDataPathSetupLocal(short transactionId, WifiAwareNetworkSpecifier networkSpecifier, int peerId, int channelRequestType, int channel, byte[] peer, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand) argument
2494 respondToDataPathRequestLocal(short transactionId, boolean accept, int ndpId, String interfaceName, byte[] pmk, String passphrase, boolean isOutOfBand) argument
[all...]
H A DWifiAwareMetrics.java416 boolean isSecure = !TextUtils.isEmpty(anri.networkSpecifier.passphrase) || (
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pGroup.java60 /** The passphrase used for WPA2-PSK */
73 "(?:passphrase=)?(?:\"(.{0,63})\")? " +
86 * passphrase="fKG4jMe3"] go_dev_addr=fa:7b:7a:42:02:13 [PERSISTENT]
231 public void setPassphrase(String passphrase) { argument
232 mPassphrase = passphrase;
236 * Get the passphrase of the group. This function will return a valid passphrase only
237 * at the group owner. Legacy Wi-Fi clients will need this passphrase alongside
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
H A DWifiAwareManagerTest.java914 final String passphrase = PASSPHRASE_VALID;
971 peerHandle, passphrase);
978 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase));
995 final String passphrase = PASSPHRASE_VALID;
1034 passphrase);
1040 collector.checkThat("passphrase", passphrase, equalTo(ns.passphrase));
1104 executeNetworkSpecifierWithClient(PeerHandle peerHandle, boolean doPmk, byte[] pmk, String passphrase) argument
1218 executeNetworkSpecifierDirect(byte[] someMac, boolean doPmk, byte[] pmk, String passphrase, boolean doInitiator) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DSupplicantP2pIfaceCallback.java252 * @param passphrase PSK passphrase used to secure the group.
257 int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress,
278 group.setPassphrase(passphrase);
256 onGroupStarted(String groupIfName, boolean isGo, ArrayList<Byte> ssid, int frequency, byte[] psk, String passphrase, byte[] goDeviceAddress, boolean isPersistent) argument

Completed in 257 milliseconds