Home
last modified time | relevance | path

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

/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkControllerTest.java160 @Mock private Network mNetwork; field in UnderlyingNetworkControllerTest
205 mNetwork, in setUp()
528 mNetwork, in testUnderlyingNetworkRecordEquals()
534 mNetwork, in testUnderlyingNetworkRecordEquals()
540 mNetwork, in testUnderlyingNetworkRecordEquals()
573 mNetwork, in testUpdateIpSecTransform()
634 cb.onAvailable(mNetwork); in verifyRegistrationOnAvailableAndGetCallback()
638 cb.onCapabilitiesChanged(mNetwork, responseNetworkCaps); in verifyRegistrationOnAvailableAndGetCallback()
639 cb.onLinkPropertiesChanged(mNetwork, INITIAL_LINK_PROPERTIES); in verifyRegistrationOnAvailableAndGetCallback()
640 cb.onBlockedStatusChanged(mNetwork, false /* isFalse */); in verifyRegistrationOnAvailableAndGetCallback()
[all …]
DUnderlyingNetworkEvaluatorTest.java84 mNetwork, in newUnderlyingNetworkEvaluator()
123 assertEquals(mNetwork, evaluator.getNetwork()); in testInitializedEvaluator()
157 mNetwork, in testValidEvaluator()
163 assertEquals(mNetwork, evaluator.getNetwork()); in testValidEvaluator()
DNetworkEvaluationTestBase.java108 @Mock protected Network mNetwork; field in NetworkEvaluationTestBase
128 when(mNetwork.getNetId()).thenReturn(-1); in setUp()
DIpSecPacketLossDetectorTest.java108 mNetwork, in setUp()
368 verify(mConnectivityManager).reportNetworkConnectivity(mNetwork, false); in testHandleLossRate_validationFail()
598 mNetwork, in newDetectorAndSetTransform()
DNetworkPriorityClassifierTest.java68 return new UnderlyingNetworkRecord(mNetwork, nc, LINK_PROPERTIES, false /* isBlocked */); in getTestNetworkRecord()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDefaultNetworkMonitor.java41 @Nullable private Network mNetwork; field in DefaultNetworkMonitor
47 mNetwork = network; in onAvailable()
53 if (network == mNetwork) { in onCapabilitiesChanged()
60 mNetwork = null; in onLost()
/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/apex/jobscheduler/framework/java/android/app/job/
DJobParameters.java304 private Network mNetwork; field in JobParameters
327 this.mNetwork = network; in JobParameters()
498 return mNetwork; in getNetwork()
593 mNetwork = Network.CREATOR.createFromParcel(in); in JobParameters()
595 mNetwork = null; in JobParameters()
604 mNetwork = network; in setNetwork()
639 if (mNetwork != null) { in writeToParcel()
641 mNetwork.writeToParcel(dest, flags); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkRecord.java95 @NonNull private final Network mNetwork; field in UnderlyingNetworkRecord.Builder
103 mNetwork = network; in Builder()
108 return mNetwork; in getNetwork()
140 mNetwork, mNetworkCapabilities, mLinkProperties, mIsBlocked); in build()
DNetworkMetricMonitor.java52 @NonNull private final Network mNetwork; field in NetworkMetricMonitor
72 mNetwork = Objects.requireNonNull(network, "Missing network"); in NetworkMetricMonitor()
213 return mNetwork; in getNetwork()
243 return " [Network " + mNetwork + "] "; in getLogPrefix()
/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java97 @Mock private Network mNetwork; field in LockdownVpnTrackerTest
221 callCallbacksForNetworkConnect(defaultCallback, mNetwork); in testDefaultNetworkConnected()
234 defaultCallback, mNetwork, TEST_CELL_NC, startingLp, true /* blocked */); in doTestDefaultLpChanged()
239 defaultCallback.onLinkPropertiesChanged(mNetwork, newLp); in doTestDefaultLpChanged()
289 callCallbacksForNetworkConnect(defaultCallback, mNetwork); in testDefaultNetworkChanged()
326 callCallbacksForNetworkConnect(defaultCallback, mNetwork); in testSystemDefaultLost()
329 defaultCallback.onLost(mNetwork); in testSystemDefaultLost()
/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/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/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/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java245 protected Network mNetwork; field in WifiEntry
371 if (mNetwork != null && mNetwork.equals(mDefaultNetwork)) { in isDefaultNetwork()
388 return underlyingNetworks != null && underlyingNetworks.contains(mNetwork); in isDefaultNetwork()
1001 if (network.equals(mNetwork)) { in onNetworkCapabilitiesChanged()
1018 mNetwork = network; in onNetworkCapabilitiesChanged()
1063 if (!network.equals(mNetwork)) { in onNetworkLost()
1122 if (!network.equals(mNetwork)) { in updateLinkProperties()
1168 if (connectivityReport.getNetwork().equals(mNetwork)) { in updateConnectivityReport()
DPasspointWifiEntry.java623 return mNetwork != null in canSignIn()
633 mContext.getSystemService(ConnectivityManager.class), mNetwork); in signIn() local
DStandardWifiEntry.java428 return mNetwork != null in canSignIn()
438 mContext.getSystemService(ConnectivityManager.class), mNetwork); in signIn() local
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DQosCallbackTrackerTest.java101 private Network mNetwork; field in QosCallbackTrackerTest
114 mNetwork = mock(Network.class); in setUp()
116 doReturn(mNetwork).when(mNetworkAgent).getNetwork(); in setUp()
117 doReturn(100).when(mNetwork).getNetId(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateControllerTest.java123 private Network mNetwork; field in InternetDialogDelegateControllerTest
262 when(mConnectivityManager.getActiveNetwork()).thenReturn(mNetwork); in connectCarrierNetwork_mergedCarrierEntryCanConnect_connectAndCreateSysUiToast()
263 when(mConnectivityManager.getNetworkCapabilities(mNetwork)) in connectCarrierNetwork_mergedCarrierEntryCanConnect_connectAndCreateSysUiToast()
310 when(mConnectivityManager.getActiveNetwork()).thenReturn(mNetwork); in connectCarrierNetwork_mergedCarrierEntryCanConnect_doNothingWhenMobileIsPrimary()
311 when(mConnectivityManager.getNetworkCapabilities(mNetwork)) in connectCarrierNetwork_mergedCarrierEntryCanConnect_doNothingWhenMobileIsPrimary()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java754 private final Network mNetwork = mock(Network.class); field in ContextFixture
794 doAnswer(invocation -> mNetworkId++).when(mNetwork).getNetId(); in ContextFixture()
795 doReturn(mNetwork).when(mConnectivityManager).registerNetworkAgent( in ContextFixture()