Home
last modified time | relevance | path

Searched refs:mNetwork (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkControllerTest.java110 @Mock private Network mNetwork; field in UnderlyingNetworkControllerTest
328 mNetwork, in testUnderlyingNetworkRecordEquals()
334 mNetwork, in testUnderlyingNetworkRecordEquals()
340 mNetwork, in testUnderlyingNetworkRecordEquals()
378 cb.onAvailable(mNetwork); in verifyRegistrationOnAvailableAndGetCallback()
382 cb.onCapabilitiesChanged(mNetwork, responseNetworkCaps); in verifyRegistrationOnAvailableAndGetCallback()
383 cb.onLinkPropertiesChanged(mNetwork, INITIAL_LINK_PROPERTIES); in verifyRegistrationOnAvailableAndGetCallback()
384 cb.onBlockedStatusChanged(mNetwork, false /* isFalse */); in verifyRegistrationOnAvailableAndGetCallback()
388 mNetwork, in verifyRegistrationOnAvailableAndGetCallback()
402 cb.onCapabilitiesChanged(mNetwork, responseNetworkCaps); in testRecordTrackerCallbackNotifiedForNetworkCapabilitiesChange()
[all …]
DNetworkPriorityClassifierTest.java114 @Mock private Network mNetwork; field in NetworkPriorityClassifierTest
140 mNetwork, in setUp()
147 mNetwork, in setUp()
522 new UnderlyingNetworkRecord(mNetwork, nc, LINK_PROPERTIES, false /* isBlocked */); in testCalculatePriorityClassFailToMatchAny()
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java138 private Network mNetwork; field in SntpClientTest
149 mNetwork = mock(Network.class, CALLS_REAL_METHODS); in setUp()
165 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra0RServer() local
178 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra1Server() local
192 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra0Server() local
205 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra1Server() local
299 SntpClient.STANDARD_NTP_PORT, 5000, mNetwork)); in testDnsResolutionFailure()
307 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure() local
319 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync() local
335 mNetwork); in testAcceptOnlyServerAndBroadcastModes()
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkRecord.java194 @NonNull private final Network mNetwork; field in Builder
204 mNetwork = network; in Builder()
209 return mNetwork; in getNetwork()
246 mNetwork, mNetworkCapabilities, mLinkProperties, mIsBlocked); in build()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java72 private NetworkStateBroadcastReceiver mNetwork; field in TrackerService
150 mNetwork = new NetworkStateBroadcastReceiver(); in initLocationListeners()
157 registerReceiver(mNetwork, mIntentFilter); in initLocationListeners()
256 if (mNetwork != null) { in stopListeners()
257 unregisterReceiver(mNetwork); in stopListeners()
259 mNetwork = null; in stopListeners()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java75 private Network mNetwork = null; field in LockdownVpnTracker.NetworkCallback
81 if (!network.equals(mNetwork)) { in onLinkPropertiesChanged()
83 mNetwork = network; in onLinkPropertiesChanged()
99 mNetwork = null; in onLost()
107 return mNetwork; in getNetwork()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java77 private Network mNetwork; field in CaptivePortalLoginActivity
141 if (mNetwork.equals(mCm.getActiveNetwork())) break; in onDestroy()
165 mNetwork = network; in setNetwork()
243 urlConnection = (HttpURLConnection) mNetwork.openConnection( in testForCaptivePortal()
327 mNetwork = null; in releaseNetworkRequest()
364 if (mNetwork != null) { in onPageStarted()
383 if (mNetwork != null) { in onPageFinished()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DQosCallbackTrackerTest.java94 private Network mNetwork; field in QosCallbackTrackerTest
104 mNetwork = mock(Network.class); in setUp()
106 doReturn(mNetwork).when(mNetworkAgent).getNetwork(); in setUp()
107 doReturn(100).when(mNetwork).getNetId(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/
DDreamOverlayStatusBarViewControllerTest.java85 Network mNetwork; field in DreamOverlayStatusBarViewControllerTest
352 callbackCapture.getValue().onAvailable(mNetwork); in testWifiIconHiddenWhenWifiBecomesAvailable()
370 callbackCapture.getValue().onLost(mNetwork); in testWifiIconShownWhenWifiBecomesUnavailable()
389 callbackCapture.getValue().onCapabilitiesChanged(mNetwork, mNetworkCapabilities); in testWifiIconHiddenWhenCapabilitiesChange()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java732 private final Network mNetwork = mock(Network.class); field in ContextFixture
774 doAnswer(invocation -> mNetworkId++).when(mNetwork).getNetId(); in ContextFixture()
775 doReturn(mNetwork).when(mConnectivityManager).registerNetworkAgent( in ContextFixture()