Home
last modified time | relevance | path

Searched refs:networkKey (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java422 final NetworkAsKey networkKey = new NetworkAsKey(network); in handleLinkPropertiesChanged() local
425 createSocket(networkKey, lp); in handleLinkPropertiesChanged()
498 private void createSocket(NetworkKey networkKey, LinkProperties lp) { in createSocket() argument
512 if (networkKey == LOCAL_NET) { in createSocket()
516 mActiveNetworksTransports.get(((NetworkAsKey) networkKey).mNetwork); in createSocket()
520 mSharedLog.wtf("transports is missing for key: " + networkKey); in createSocket()
528 mSharedLog.log("Create socket on net:" + networkKey + ", ifName:" + interfaceName); in createSocket()
535 networkKey == LOCAL_NET ? null : ((NetworkAsKey) networkKey).mNetwork; in createSocket()
541 if (networkKey == LOCAL_NET) { in createSocket()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java143 byte[] networkKey = new byte[fieldSize]; in parseCredential()
144 payload.get(networkKey); in parseCredential()
146 result.preSharedKey = getPskValidFormat(new String(networkKey)); in parseCredential()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DActiveOperationalDataset.java193 byte[] networkKey, in ActiveOperationalDataset() argument
205 this.mNetworkKey = networkKey.clone(); in ActiveOperationalDataset()
841 public Builder setNetworkKey(@NonNull @Size(LENGTH_NETWORK_KEY) byte[] networkKey) { in setNetworkKey() argument
842 requireNonNull(networkKey, "networkKey cannot be null"); in setNetworkKey()
844 networkKey.length == LENGTH_NETWORK_KEY, in setNetworkKey()
846 networkKey.length, in setNetworkKey()
848 this.mNetworkKey = networkKey.clone(); in setNetworkKey()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DActiveOperationalDatasetTest.java476 final byte[] networkKey = in builder_setValidNetworkKey_success()
483 new Builder(DEFAULT_DATASET).setNetworkKey(networkKey).build(); in builder_setValidNetworkKey_success()
485 assertThat(dataset.getNetworkKey()).isEqualTo(networkKey); in builder_setValidNetworkKey_success()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java3426 String networkKey = "NETWORK_KEY"; in checkScanScheduleForSingleSuggestionsNetworkConnected() local
3427 when(mWifiConfigManager.getConfiguredNetwork(networkKey)).thenReturn(config); in checkScanScheduleForSingleSuggestionsNetworkConnected()
3428 when(mSuggestionConfig.getProfileKey()).thenReturn(networkKey); in checkScanScheduleForSingleSuggestionsNetworkConnected()
3476 String networkKey = "NETWORK_KEY"; in checkScanScheduleForSavedPasspointSuggestionNetworkConnected() local
3477 when(mWifiConfigManager.getConfiguredNetwork(networkKey)).thenReturn(config); in checkScanScheduleForSavedPasspointSuggestionNetworkConnected()
3478 when(mSuggestionConfig.getProfileKey()).thenReturn(networkKey); in checkScanScheduleForSavedPasspointSuggestionNetworkConnected()