Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java170 ScoredNetwork newNetwork; in shouldWriteAndReadFromParcelWhenAllFieldsSet() local
177 newNetwork = ScoredNetwork.CREATOR.createFromParcel(parcel); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
183 assertEquals(CURVE.start, newNetwork.rssiCurve.start); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
184 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
185 assertTrue(Arrays.equals(CURVE.rssiBuckets, newNetwork.rssiCurve.rssiBuckets)); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
186 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
187 assertNotNull(newNetwork.attributes); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
190 newNetwork.attributes.getInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET)); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
196 ScoredNetwork newNetwork; in shouldWriteAndReadFromParcelWithoutBundle() local
203 newNetwork = ScoredNetwork.CREATOR.createFromParcel(parcel); in shouldWriteAndReadFromParcelWithoutBundle()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java5170 private void makeDefault(NetworkAgentInfo newNetwork) { in makeDefault() argument
5171 if (DBG) log("Switching to new default network: " + newNetwork); in makeDefault()
5172 setupDataActivityTracking(newNetwork); in makeDefault()
5174 mNetd.setDefaultNetId(newNetwork.network.netId); in makeDefault()
5179 notifyLockdownVpn(newNetwork); in makeDefault()
5180 handleApplyDefaultProxy(newNetwork.linkProperties.getHttpProxy()); in makeDefault()
5181 updateTcpBufferSizes(newNetwork); in makeDefault()
5182 mDnsManager.setDefaultDnsSystemProperties(newNetwork.linkProperties.getDnsServers()); in makeDefault()
5238 private void rematchNetworkAndRequests(NetworkAgentInfo newNetwork, in rematchNetworkAndRequests() argument
5240 if (!newNetwork.everConnected) return; in rematchNetworkAndRequests()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java307 ScanResult newNetwork = new ScanResult(); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() local
308 newNetwork.SSID = TEST_SSID_2; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
311 mOpenNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
318 OPEN_NET_NOTIFIER_TAG, newNetwork); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
DCarrierNetworkNotifierTest.java308 ScanResult newNetwork = new ScanResult(); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() local
309 newNetwork.SSID = TEST_SSID_2; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
312 mCarrierNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
319 CARRIER_NET_NOTIFIER_TAG, newNetwork); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java1037 boolean newNetwork = (existingInternalConfig == null); in addOrUpdateNetworkInternal()
1040 newNetwork || WifiConfigurationUtil.hasIpChanged( in addOrUpdateNetworkInternal()
1043 newNetwork || WifiConfigurationUtil.hasProxyChanged( in addOrUpdateNetworkInternal()
1047 newNetwork || WifiConfigurationUtil.hasCredentialChanged( in addOrUpdateNetworkInternal()
1073 result.setIsNewNetwork(newNetwork); in addOrUpdateNetworkInternal()
DSupplicantStaIfaceHal.java1005 Mutable<ISupplicantNetwork> newNetwork = new Mutable<>(); in addNetwork()
1010 newNetwork.value = network; in addNetwork()
1016 if (newNetwork.value != null) { in addNetwork()
1019 ISupplicantStaNetwork.asInterface(newNetwork.value.asBinder())); in addNetwork()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1809 MockNetworkAgent oldNetwork, newNetwork; in testMultipleLingering() local
1813 newNetwork = mCellNetworkAgent; in testMultipleLingering()
1817 newNetwork = mWiFiNetworkAgent; in testMultipleLingering()
1823 defaultCallback.expectAvailableCallbacksValidated(newNetwork); in testMultipleLingering()
1824 assertEquals(newNetwork.getNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()