Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java176 ScoredNetwork newNetwork; in shouldWriteAndReadFromParcelWhenAllFieldsSet() local
183 newNetwork = ScoredNetwork.CREATOR.createFromParcel(parcel); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
189 assertEquals(CURVE.start, newNetwork.rssiCurve.start); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
190 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
191 assertTrue(Arrays.equals(CURVE.rssiBuckets, newNetwork.rssiCurve.rssiBuckets)); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
192 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
193 assertNotNull(newNetwork.attributes); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
196 newNetwork.attributes.getInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET)); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
202 ScoredNetwork newNetwork; in shouldWriteAndReadFromParcelWithoutBundle() local
209 newNetwork = ScoredNetwork.CREATOR.createFromParcel(parcel); in shouldWriteAndReadFromParcelWithoutBundle()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java312 ScanResult newNetwork = new ScanResult(); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated() local
313 newNetwork.SSID = TEST_SSID_2; in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
316 mOpenNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
323 OPEN_NET_NOTIFIER_TAG, newNetwork); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java1278 boolean newNetwork = (existingInternalConfig == null); in addOrUpdateNetworkInternal()
1281 newNetwork || WifiConfigurationUtil.hasIpChanged( in addOrUpdateNetworkInternal()
1284 newNetwork || WifiConfigurationUtil.hasProxyChanged( in addOrUpdateNetworkInternal()
1288 newNetwork || WifiConfigurationUtil.hasCredentialChanged( in addOrUpdateNetworkInternal()
1305 && (!newInternalConfig.isPasspoint() || newNetwork)) { in addOrUpdateNetworkInternal()
1314 result.setIsNewNetwork(newNetwork); in addOrUpdateNetworkInternal()
DSupplicantStaIfaceHal.java1265 Mutable<ISupplicantNetwork> newNetwork = new Mutable<>(); in addNetwork()
1270 newNetwork.value = network; in addNetwork()
1276 if (newNetwork.value != null) { in addNetwork()
1279 ISupplicantStaNetwork.asInterface(newNetwork.value.asBinder())); in addNetwork()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2386 private void updateDataActivityTracking(NetworkAgentInfo newNetwork, in updateDataActivityTracking() argument
2388 if (newNetwork != null) { in updateDataActivityTracking()
2389 setupDataActivityTracking(newNetwork); in updateDataActivityTracking()
6693 private void makeDefault(@Nullable final NetworkAgentInfo newNetwork) { in makeDefault() argument
6694 if (DBG) log("Switching to new default network: " + newNetwork); in makeDefault()
6696 mDefaultNetworkNai = newNetwork; in makeDefault()
6699 if (null != newNetwork) { in makeDefault()
6700 mNMS.setDefaultNetId(newNetwork.network.netId); in makeDefault()
6708 notifyLockdownVpn(newNetwork); in makeDefault()
6709 handleApplyDefaultProxy(null != newNetwork in makeDefault()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1980 TestNetworkAgentWrapper oldNetwork, newNetwork; in testMultipleLingering() local
1984 newNetwork = mCellNetworkAgent; in testMultipleLingering()
1988 newNetwork = mWiFiNetworkAgent; in testMultipleLingering()
1994 defaultCallback.expectAvailableCallbacksValidated(newNetwork); in testMultipleLingering()
1995 assertEquals(newNetwork.getNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()