Home
last modified time | relevance | path

Searched refs:newNetwork (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java329 private void updateDefaultNetwork(@Nullable Network newNetwork) { in updateDefaultNetwork() argument
331 mDefaultNetwork = newNetwork; in updateDefaultNetwork()
333 if (newNetwork != null) updateNotifications(newNetwork); in updateDefaultNetwork()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMultinetworkApiTest.java186 Network newNetwork = Network.fromNetworkHandle(networkHandle); in testNetworkHandle() local
187 assertEquals(newNetwork, network); in testNetworkHandle()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java317 ScanResult newNetwork = new ScanResult(); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() local
318 newNetwork.SSID = TEST_SSID_2; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
321 mOpenNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
328 OPEN_NET_NOTIFIER_TAG, newNetwork); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java5927 Network newNetwork = mockNewNetworkAndAddress(true /* isIpv4 */); in verifyMobikeActiveMobilityEvent() local
5929 callback.onAvailable(newNetwork); in verifyMobikeActiveMobilityEvent()
5933 newNetwork, UPDATED_LOCAL_ADDRESS, REMOTE_ADDRESS, callback); in verifyMobikeActiveMobilityEvent()
5936 eq(newNetwork), eq(true /* isIpv4 */), eq(REMOTE_ADDRESS), anyInt()); in verifyMobikeActiveMobilityEvent()
5975 Network newNetwork = mock(Network.class); in mockNewNetworkAndAddress() local
5984 when(mMockConnectManager.getLinkProperties(eq(newNetwork))).thenReturn(linkProperties); in mockNewNetworkAndAddress()
5987 setupDnsResolutionForNetwork(newNetwork, dnsLookups, remoteAddress); in mockNewNetworkAndAddress()
5990 eq(newNetwork), eq(isIpv4), eq(remoteAddress), anyInt())) in mockNewNetworkAndAddress()
5993 return newNetwork; in mockNewNetworkAndAddress()
6033 Network newNetwork = mock(Network.class); in testSetNetworkMobikeNotActive() local
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java1334 boolean newNetwork = (existingInternalConfig == null); in addOrUpdateNetworkInternal()
1337 newNetwork || WifiConfigurationUtil.hasIpChanged( in addOrUpdateNetworkInternal()
1340 newNetwork || WifiConfigurationUtil.hasProxyChanged( in addOrUpdateNetworkInternal()
1344 newNetwork || WifiConfigurationUtil.hasCredentialChanged( in addOrUpdateNetworkInternal()
1371 && (!newInternalConfig.isPasspoint() || newNetwork)) { in addOrUpdateNetworkInternal()
1383 newNetwork); in addOrUpdateNetworkInternal()
DSupplicantStaIfaceHal.java1341 Mutable<ISupplicantNetwork> newNetwork = new Mutable<>(); in addNetwork()
1346 newNetwork.value = network; in addNetwork()
1352 if (newNetwork.value != null) { in addNetwork()
1355 ISupplicantStaNetwork.asInterface(newNetwork.value.asBinder())); in addNetwork()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java7938 @Nullable final NetworkAgentInfo newNetwork) { in RequestReassignment() argument
7943 mNewNetwork = newNetwork; in RequestReassignment()
9728 public void updateDataActivityTracking(NetworkAgentInfo newNetwork, in updateDataActivityTracking() argument
9730 if (newNetwork != null) { in updateDataActivityTracking()
9731 setupDataActivityTracking(newNetwork); in updateDataActivityTracking()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java2769 TestNetworkAgentWrapper oldNetwork, newNetwork; in testMultipleLingering() local
2773 newNetwork = mCellNetworkAgent; in testMultipleLingering()
2777 newNetwork = mWiFiNetworkAgent; in testMultipleLingering()
2783 defaultCallback.expectAvailableCallbacksValidated(newNetwork); in testMultipleLingering()
2784 assertEquals(newNetwork.getNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()