/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionControllerTest.java | 1021 final Network newNetwork = mock(Network.class); in testNetworkUpdateWhenMobilityDisabled() local 1022 callback.onAvailable(newNetwork); in testNetworkUpdateWhenMobilityDisabled() 1023 callback.onCapabilitiesChanged(newNetwork, mock(NetworkCapabilities.class)); in testNetworkUpdateWhenMobilityDisabled() 1024 callback.onLinkPropertiesChanged(newNetwork, mock(LinkProperties.class)); in testNetworkUpdateWhenMobilityDisabled() 1127 Network newNetwork = mock(Network.class); in testOnUnderlyingNetworkUpdatedWithNewNetwork() local 1128 setupLocalAddressForNetwork(newNetwork, UPDATED_LOCAL_ADDRESS); in testOnUnderlyingNetworkUpdatedWithNewNetwork() 1129 setupRemoteAddressForNetwork(newNetwork, REMOTE_ADDRESS); in testOnUnderlyingNetworkUpdatedWithNewNetwork() 1132 onNetworkSetByUserWithDefaultParams(mIkeConnectionCtrl, newNetwork); in testOnUnderlyingNetworkUpdatedWithNewNetwork() 1139 newNetwork, UPDATED_LOCAL_ADDRESS, REMOTE_ADDRESS, callback); in testOnUnderlyingNetworkUpdatedWithNewNetwork() 1191 Network newNetwork = mock(Network.class); in verifyUnderlyingNetworkUpdated() local [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 329 private void updateDefaultNetwork(@Nullable Network newNetwork) { in updateDefaultNetwork() argument 331 mDefaultNetwork = newNetwork; in updateDefaultNetwork() 333 if (newNetwork != null) updateNotifications(newNetwork); in updateDefaultNetwork()
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | IwlanDataServiceTest.java | 339 Network newNetwork = createMockNetwork(mLinkProperties); in onSystemDefaultNetworkConnected() local 341 newNetwork, mLinkProperties, transportType, DEFAULT_SUB_INDEX); in onSystemDefaultNetworkConnected() 374 Network newNetwork = createMockNetwork(mLinkProperties); in testWifiOnReconnected() local 376 newNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testWifiOnReconnected() 377 verify(mMockEpdgTunnelManager, times(1)).updateNetwork(eq(newNetwork), eq(mLinkProperties)); in testWifiOnReconnected() 381 newNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testWifiOnReconnected() 382 verify(mMockEpdgTunnelManager, times(2)).updateNetwork(eq(newNetwork), eq(mLinkProperties)); in testWifiOnReconnected() 413 Network newNetwork = createMockNetwork(newLinkProperties); in testOnLinkPropertiesChangedForNonConnectedNetwork() local 415 networkCallback.onLinkPropertiesChanged(newNetwork, newLinkProperties); in testOnLinkPropertiesChangedForNonConnectedNetwork() 417 .updateNetwork(eq(newNetwork), any(LinkProperties.class)); in testOnLinkPropertiesChangedForNonConnectedNetwork() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | MultinetworkApiTest.java | 196 Network newNetwork = Network.fromNetworkHandle(networkHandle); in testNetworkHandle() local 197 assertEquals(newNetwork, network); in testNetworkHandle()
|
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | EpdgTunnelManagerTest.java | 2554 Network newNetwork = mock(Network.class); in testCloseTunnelWithIkeMobilityTimeout() local 2555 mEpdgTunnelManager.updateNetwork(newNetwork, mMockLinkProperties); in testCloseTunnelWithIkeMobilityTimeout() 2564 verify(mMockIkeSession, times(1)).setNetwork(eq(newNetwork)); in testCloseTunnelWithIkeMobilityTimeout() 2584 Network newNetwork = mock(Network.class); in testUpdateNetworkToOpenedTunnel() local 2585 mEpdgTunnelManager.updateNetwork(newNetwork, mMockLinkProperties); in testUpdateNetworkToOpenedTunnel() 2587 verify(mMockIkeSession, times(1)).setNetwork(eq(newNetwork)); in testUpdateNetworkToOpenedTunnel() 2593 Network newNetwork = mock(Network.class); in testUpdateNetworkForIncomingSetupRequest() local 2595 mEpdgTunnelManager.updateNetwork(newNetwork, mMockLinkProperties); in testUpdateNetworkForIncomingSetupRequest() 2613 eq(newNetwork), in testUpdateNetworkForIncomingSetupRequest() 2617 assertEquals(newNetwork, ikeSessionParams.getNetwork()); in testUpdateNetworkForIncomingSetupRequest() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | OpenNetworkNotifierTest.java | 326 ScanResult newNetwork = new ScanResult(); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() local 327 newNetwork.SSID = TEST_SSID_2; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() 328 newNetwork.BSSID = TEST_BSSID; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() 331 mOpenNetworks.add(new ScanDetail(newNetwork)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() 338 OPEN_NET_NOTIFIER_TAG, newNetwork); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 6621 Network newNetwork = mock(Network.class); in testMobilityDisabledNetworkUpdates() local 6622 callback.onAvailable(newNetwork); in testMobilityDisabledNetworkUpdates() 6623 callback.onCapabilitiesChanged(newNetwork, mock(NetworkCapabilities.class)); in testMobilityDisabledNetworkUpdates() 6624 callback.onLinkPropertiesChanged(newNetwork, mock(LinkProperties.class)); in testMobilityDisabledNetworkUpdates() 6656 Network newNetwork = mockNewNetworkAndAddress(true /* isIpv4 */); in verifyMobikeActiveMobilityEvent() local 6658 callback.onAvailable(newNetwork); in verifyMobikeActiveMobilityEvent() 6659 callback.onCapabilitiesChanged(newNetwork, mock(NetworkCapabilities.class)); in verifyMobikeActiveMobilityEvent() 6661 newNetwork, mMockConnectManager.getLinkProperties(newNetwork)); in verifyMobikeActiveMobilityEvent() 6665 newNetwork, UPDATED_LOCAL_ADDRESS, REMOTE_ADDRESS, callback); in verifyMobikeActiveMobilityEvent() 6668 eq(newNetwork), eq(true /* isIpv4 */), eq(REMOTE_ADDRESS), anyInt()); in verifyMobikeActiveMobilityEvent() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 1605 boolean newNetwork = (existingInternalConfig == null); in addOrUpdateNetworkInternal() 1608 newNetwork || WifiConfigurationUtil.hasIpChanged( in addOrUpdateNetworkInternal() 1611 newNetwork || WifiConfigurationUtil.hasProxyChanged( in addOrUpdateNetworkInternal() 1615 newNetwork || WifiConfigurationUtil.hasCredentialChanged( in addOrUpdateNetworkInternal() 1648 && (!newInternalConfig.isPasspoint() || newNetwork)) { in addOrUpdateNetworkInternal() 1661 newNetwork); in addOrUpdateNetworkInternal()
|
D | SupplicantStaIfaceHalHidlImpl.java | 1392 Mutable<ISupplicantNetwork> newNetwork = new Mutable<>(); in addNetwork() 1397 newNetwork.value = network; in addNetwork() 1403 if (newNetwork.value != null) { in addNetwork() 1406 ISupplicantStaNetwork.asInterface(newNetwork.value.asBinder())); in addNetwork()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 3581 private void maybeDestroyPendingSockets(NetworkAgentInfo newNetwork, 3585 final boolean isNewNetworkCellular = newNetwork != null 3586 && newNetwork.networkCapabilities.hasTransport(TRANSPORT_CELLULAR); 10582 @Nullable final NetworkAgentInfo newNetwork) { 10587 mNewNetwork = newNetwork; 12966 public void updateDefaultNetwork(NetworkAgentInfo newNetwork, 12975 if (!mTrackMultiNetworkActivities && newNetwork != null) { 12976 hasIdleTimer = setupDataActivityTracking(newNetwork); 12978 updateDefaultNetworkActivity(newNetwork, hasIdleTimer);
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 3653 TestNetworkAgentWrapper oldNetwork, newNetwork; 3657 newNetwork = mCellAgent; 3661 newNetwork = mWiFiAgent; 3667 defaultCallback.expectAvailableCallbacksValidated(newNetwork); 3668 assertEquals(newNetwork.getNetwork(), mCm.getActiveNetwork());
|