Home
last modified time | relevance | path

Searched refs:mVcnContext (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkController.java79 @NonNull private final VcnContext mVcnContext; field in UnderlyingNetworkController
122 mVcnContext = Objects.requireNonNull(vcnContext, "Missing vcnContext"); in UnderlyingNetworkController()
129 mHandler = new Handler(mVcnContext.getLooper()); in UnderlyingNetworkController()
131 mConnectivityManager = mVcnContext.getContext().getSystemService(ConnectivityManager.class); in UnderlyingNetworkController()
132 mVcnContext in UnderlyingNetworkController()
207 if (mVcnContext.isFlagNetworkMetricMonitorEnabled() in registerOrUpdateNetworkRequests()
208 && mVcnContext.isFlagIpSecTransformStateEnabled()) { in registerOrUpdateNetworkRequests()
288 if (mVcnContext.isInTestMode()) { in getRouteSelectionRequest()
431 if (mVcnContext.isFlagNetworkMetricMonitorEnabled() in updateSubscriptionSnapshot()
432 && mVcnContext.isFlagIpSecTransformStateEnabled()) { in updateSubscriptionSnapshot()
[all …]
DUnderlyingNetworkEvaluator.java58 @NonNull private final VcnContext mVcnContext; field in UnderlyingNetworkEvaluator
86 mVcnContext = Objects.requireNonNull(vcnContext, "Missing vcnContext"); in UnderlyingNetworkEvaluator()
87 mHandler = new Handler(mVcnContext.getLooper()); in UnderlyingNetworkEvaluator()
110 mVcnContext, in UnderlyingNetworkEvaluator()
166 mVcnContext.ensureRunningOnLooperThread(); in onValidationResultReceived()
180 mVcnContext, in updatePriorityClass()
193 return isIpSecPacketLossDetectorEnabled(mVcnContext); in isIpSecPacketLossDetectorEnabled()
DNetworkMetricMonitor.java51 @NonNull private final VcnContext mVcnContext; field in NetworkMetricMonitor
71 mVcnContext = Objects.requireNonNull(vcnContext, "Missing vcnContext"); in NetworkMetricMonitor()
208 return mVcnContext; in getVcnContext()
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DNetworkPriorityClassifierTest.java80 mVcnContext, in testMatchWithoutNotMeteredBit()
102 mVcnContext, in verifyMatchesPriorityRuleForUpstreamBandwidth()
125 mVcnContext, in verifyMatchesPriorityRuleForDownstreamBandwidth()
306 mVcnContext, in testMatchMacroCell()
323 mVcnContext, in testMatchOpportunisticCell()
341 mVcnContext, in verifyMatchMacroCellWithAllowedPlmnIds()
370 mVcnContext, in verifyMatchMacroCellWithAllowedSpecificCarrierIds()
396 mVcnContext, in testMatchWifiFailWithoutNotRoamingBit()
408 mVcnContext, in verifyMatchCellWithRequiredCapabilities()
442 mVcnContext, in testCalculatePriorityClass()
[all …]
DNetworkEvaluationTestBase.java116 protected VcnContext mVcnContext; field in NetworkEvaluationTestBase
131 mVcnContext = in setUp()
138 doNothing().when(mVcnContext).ensureRunningOnLooperThread(); in setUp()
140 doReturn(true).when(mVcnContext).isFlagNetworkMetricMonitorEnabled(); in setUp()
141 doReturn(true).when(mVcnContext).isFlagIpSecTransformStateEnabled(); in setUp()
DUnderlyingNetworkControllerTest.java168 private VcnContext mVcnContext; field in UnderlyingNetworkControllerTest
177 mVcnContext = in setUp()
184 resetVcnContext(mVcnContext); in setUp()
204 mVcnContext, in setUp()
218 mVcnContext, in setUp()
317 mVcnContext, in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
358 mVcnContext, in testNetworkCallbacksRegisteredOnStartupWithDedupedtCapabilities()
777 mVcnContext, in setupControllerAndGetNetworkListener()
803 mVcnContext, in bringupNetworkAndGetEvaluator()
DUnderlyingNetworkEvaluatorTest.java83 mVcnContext, in newUnderlyingNetworkEvaluator()
333 UnderlyingNetworkEvaluator.getComparator(mVcnContext) in testCompare()
DIpSecPacketLossDetectorTest.java107 mVcnContext, in setUp()
597 mVcnContext, in newDetectorAndSetTransform()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTestBase.java166 @NonNull protected final VcnContext mVcnContext; field in VcnGatewayConnectionTestBase
192 mVcnContext = mock(VcnContext.class); in VcnGatewayConnectionTestBase()
221 doReturn(mContext).when(mVcnContext).getContext(); in VcnGatewayConnectionTestBase()
222 doReturn(mTestLooper.getLooper()).when(mVcnContext).getLooper(); in VcnGatewayConnectionTestBase()
223 doReturn(mVcnNetworkProvider).when(mVcnContext).getVcnNetworkProvider(); in VcnGatewayConnectionTestBase()
224 doReturn(mFeatureFlags).when(mVcnContext).getFeatureFlags(); in VcnGatewayConnectionTestBase()
225 doReturn(true).when(mVcnContext).isFlagSafeModeTimeoutConfigEnabled(); in VcnGatewayConnectionTestBase()
226 doReturn(true).when(mVcnContext).isFlagIpSecTransformStateEnabled(); in VcnGatewayConnectionTestBase()
227 doReturn(true).when(mVcnContext).isFlagNetworkMetricMonitorEnabled(); in VcnGatewayConnectionTestBase()
251 doReturn(msg).when(deps).newWakeupMessage(eq(mVcnContext), any(), eq(cmdName), any()); in setUpWakeupMessage()
[all …]
DVcnTest.java91 private VcnContext mVcnContext; field in VcnTest
109 mVcnContext = mock(VcnContext.class); in setUp()
121 doReturn(mContext).when(mVcnContext).getContext(); in setUp()
122 doReturn(mTestLooper.getLooper()).when(mVcnContext).getLooper(); in setUp()
123 doReturn(mVcnNetworkProvider).when(mVcnContext).getVcnNetworkProvider(); in setUp()
124 doReturn(mContentResolver).when(mDeps).newVcnContentResolver(eq(mVcnContext)); in setUp()
145 mVcnContext, in setUp()
232 mVcnContext, in testMobileDataStateCheckedOnInitialization_disabled()
308 eq(mVcnContext), in startGatewaysAndGetGatewayConnections()
385 eq(mVcnContext), in verifyGatewayQuit()
DVcnGatewayConnectionTest.java321 mVcnContext, in buildConnectionWithDataStallHandling()
367 doReturn(isInTestMode).when(mVcnContext).isInTestMode(); in verifyGetSafeModeTimeoutMs()
368 doReturn(isConfigTimeoutSupported).when(mVcnContext).isFlagSafeModeTimeoutConfigEnabled(); in verifyGetSafeModeTimeoutMs()
374 VcnGatewayConnection.getSafeModeTimeoutMs(mVcnContext, snapshot, TEST_SUB_GRP); in verifyGetSafeModeTimeoutMs()
DVcnGatewayConnectionConnectedStateTest.java282 mVcnContext, in testCreatedTransformsAreAppliedWithDun()
432 eq(mVcnContext), in testChildOpenedRegistersNetwork()
650 eq(mVcnContext), in testSubsequentFailedValidationTriggersSafeMode()
677 mVcnContext, in verifySetSafeModeAlarm()
690 eq(mVcnContext), in verifySetSafeModeAlarm()
DVcnGatewayConnectionDisconnectedStateTest.java63 mVcnContext, in testEnterWhileQuittingTriggersQuit()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcn.java147 @NonNull private final VcnContext mVcnContext; field in Vcn
214 mVcnContext = vcnContext; in Vcn()
219 mContentResolver = mDeps.newVcnContentResolver(mVcnContext); in Vcn()
236 mVcnContext.getVcnNetworkProvider().registerListener(mRequestListener); in Vcn()
354 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleConfigUpdated()
359 mVcnContext.getVcnNetworkProvider().unregisterListener(mRequestListener); in handleTeardown()
431 mVcnContext, in handleNetworkRequested()
466 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleGatewayConnectionQuit()
537 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleMobileDataToggled()
566 return mVcnContext.getContext().getSystemService(TelephonyManager.class); in getTelephonyManager()
[all …]
DVcnGatewayConnection.java616 @NonNull private final VcnContext mVcnContext; field in VcnGatewayConnection
775 mVcnContext = vcnContext; in VcnGatewayConnection()
788 mDeps.newWakeLock(mVcnContext.getContext(), PowerManager.PARTIAL_WAKE_LOCK, TAG); in VcnGatewayConnection()
792 mVcnContext, in VcnGatewayConnection()
797 mIpSecManager = mVcnContext.getContext().getSystemService(IpSecManager.class); in VcnGatewayConnection()
798 mConnectivityManager = mVcnContext.getContext().getSystemService(ConnectivityManager.class); in VcnGatewayConnection()
800 mVcnContext.getContext().getSystemService(ConnectivityDiagnosticsManager.class); in VcnGatewayConnection()
828 mVcnContext.ensureRunningOnLooperThread(); in isInSafeMode()
888 mVcnContext.ensureRunningOnLooperThread(); in updateSubscriptionSnapshot()
899 mVcnContext.ensureRunningOnLooperThread(); in onDataStallSuspected()
[all …]
/frameworks/base/tests/vcn/java/com/android/server/
DVcnManagementServiceTest.java202 private final VcnContext mVcnContext = mock(VcnContext.class); field in VcnManagementServiceTest
239 doReturn(mMockContext).when(mVcnContext).getContext(); in VcnManagementServiceTest()
242 doReturn(mVcnContext) in VcnManagementServiceTest()
502 .newVcn(eq(mVcnContext), eq(TEST_UUID_1), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackStartsInstances()
504 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackStartsInstances()
521 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackSwitchingActiveDataStartsAndStopsInstances()
925 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), any(), any()); in testSetVcnConfigClearVcnConfigStartsUpdatesAndTearsDownVcns()
1520 eq(mVcnContext), in triggerVcnSafeMode()