Home
last modified time | relevance | path

Searched refs:networkName (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pConfig.java56 return networkName; in getNetworkName()
60 public String networkName = ""; field in WifiP2pConfig
212 sbuf.append("\n networkName: ").append(networkName); in toString()
231 networkName = source.networkName; in WifiP2pConfig()
243 dest.writeString(networkName); in writeToParcel()
257 config.networkName = in.readString();
326 public @NonNull Builder setNetworkName(@NonNull String networkName) { in setNetworkName() argument
327 if (TextUtils.isEmpty(networkName)) { in setNetworkName()
331 if (networkName.getBytes(StandardCharsets.UTF_8).length > MAX_SSID_BYTES) { in setNetworkName()
336 if (!networkName.matches("^DIRECT-[a-zA-Z0-9]{2}.*")) { in setNetworkName()
[all …]
DWifiP2pGroup.java178 public void setNetworkName(String networkName) { in setNetworkName() argument
179 mNetworkName = networkName; in setNetworkName()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DNetworkPasswordPreferenceControllerTest.java142 String networkName = "test_network_name"; in receiveNameChangeIntent_name_dialogNameSet() local
144 intent.putExtra(NetworkNamePreferenceController.KEY_NETWORK_NAME, networkName); in receiveNameChangeIntent_name_dialogNameSet()
148 assertThat(mPreference.getDialogTitle().toString()).isEqualTo(networkName); in receiveNameChangeIntent_name_dialogNameSet()
183 String networkName = "network_name"; in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected() local
191 intent.putExtra(NetworkNamePreferenceController.KEY_NETWORK_NAME, networkName); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected()
200 assertThat(config.SSID).contains(networkName); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java1098 public final byte[] networkName; field in EapSimAkaAttribute.AtKdfInput
1105 networkName = new byte[networkNameLength]; in AtKdfInput()
1106 byteBuffer.get(networkName); in AtKdfInput()
1113 public AtKdfInput(int lengthInbytes, byte[] networkName) in AtKdfInput() argument
1117 this.networkName = networkName; in AtKdfInput()
1123 byteBuffer.putShort((short) networkName.length); in encode()
1124 byteBuffer.put(networkName); in encode()
1126 int bytesUsed = MIN_ATTR_LENGTH + networkName.length; in encode()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeMethodStateMachine.java204 if (atKdfInput.networkName.length == 0) { in isValidChallengeAttributes()
211 new String(atKdfInput.networkName, StandardCharsets.UTF_8)); in isValidChallengeAttributes()
317 + atKdfInput.networkName.length + lengthFieldLen in deriveCkIkPrime()
322 dataToSign.put(atKdfInput.networkName); in deriveCkIkPrime()
323 dataToSign.putShort((short) atKdfInput.networkName.length); in deriveCkIkPrime()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java469 final String networkName = NetworkAgentInfo.toShortString(nai); in handleStopKeepalive() local
472 Log.e(TAG, "Attempt to stop keepalive on nonexistent network " + networkName); in handleStopKeepalive()
477 Log.e(TAG, "Attempt to stop nonexistent keepalive " + slot + " on " + networkName); in handleStopKeepalive()
486 final String networkName = NetworkAgentInfo.toShortString(nai); in cleanupStoppedKeepalive() local
489 Log.e(TAG, "Attempt to remove keepalive on nonexistent network " + networkName); in cleanupStoppedKeepalive()
494 Log.e(TAG, "Attempt to remove nonexistent keepalive " + slot + " on " + networkName); in cleanupStoppedKeepalive()
501 Log.d(TAG, "Remove keepalive " + slot + " on " + networkName + ", " in cleanupStoppedKeepalive()
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java283 @NonNull String networkName, in setEapAkaPrimeConfig() argument
288 subId, apptype, networkName, allowMismatchedNetworkNames)); in setEapAkaPrimeConfig()
661 @NonNull String networkName, in EapAkaPrimeConfig() argument
665 Objects.requireNonNull(networkName, "networkName must not be null"); in EapAkaPrimeConfig()
667 mNetworkName = networkName; in EapAkaPrimeConfig()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialsInstallDialog.java52 String networkName = bundle.getString(NETWORK_NAME); in displayDialog() local
53 … text.setText(String.format(getResources().getString(R.string.install_done), networkName)); in displayDialog() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtKdfInputTest.java54 assertArrayEquals(NETWORK_NAME_BYTES, atKdfInput.networkName); in testDecode()
66 assertArrayEquals(new byte[0], atKdfInput.networkName); in testDecodeEmptyNetworkName()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java47 int networkId, String networkName, in createGroup() argument
52 group.setNetworkName(networkName); in createGroup()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java915 final CharSequence networkName = getNetworkName(nc); in getHeaderTitle() local
916 if (TextUtils.isEmpty(networkName) in getHeaderTitle()
920 return getString(R.string.action_bar_title, networkName); in getHeaderTitle()
/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
102 group.setNetworkName(networkName); in createP2pGroup()
DWifiP2pServiceImplTest.java4174 mTestWifiP2pFastConnectionConfig.networkName = "DIRECT-xy-abcdefghijklmnopqrstuvw"; in testSendConnectMsgWithTooLongNetworkName()
4186 mTestWifiP2pFastConnectionConfig.networkName = "DIRECT-x"; in testSendConnectMsgWithTooShortNetworkName()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapAkaPrimeTypeDataTest.java117 assertArrayEquals(NETWORK_NAME_BYTES, ((AtKdfInput) entry.getValue()).networkName); in testDecode()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java589 config.networkName, in p2pGroupAdd()
DSupplicantP2pIfaceHal.java1282 public boolean groupAdd(String networkName, String passphrase, in groupAdd() argument
1289 java.util.ArrayList<Byte> ssid = NativeUtil.decodeSsid("\"" + networkName + "\""); in groupAdd()
1299 new SupplicantResult("groupAdd(" + networkName + ", " in groupAdd()
DWifiP2pServiceImpl.java3570 private boolean isValidNetworkName(String networkName) { in isValidNetworkName() argument
3571 if (TextUtils.isEmpty(networkName)) return false; in isValidNetworkName()
3573 byte[] ssidBytes = networkName.getBytes(StandardCharsets.UTF_8); in isValidNetworkName()
3590 if (isValidNetworkName(config.networkName) in isConfigValidAsGroup()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java4504 String networkName = (String) message.obj;
4505 if (networkName != null && !networkName.equals(getConnectingSsidInternal())) {
4506 loge("Network not found event received, network: " + networkName
4511 Log.d(getTag(), "Network not found event received: network: " + networkName);
4515 && mTargetWifiConfiguration.SSID.equals(networkName)) {
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp6066 IDnsResolver* dnsResolvSrv, const char* networkName) in ScopedNetwork() argument
6071 mNetworkName(networkName) { in ScopedNetwork()
6115 ScopedPhysicalNetwork(unsigned netId, const char* networkName) in ScopedPhysicalNetwork() argument
6116 : ScopedNetwork(netId, ConnectivityType::V4V6, nullptr, nullptr, networkName) {} in ScopedPhysicalNetwork()