Home
last modified time | relevance | path

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

/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnTest.java90 private VcnContext mVcnContext; field in VcnTest
108 mVcnContext = mock(VcnContext.class); in setUp()
120 doReturn(mContext).when(mVcnContext).getContext(); in setUp()
121 doReturn(mTestLooper.getLooper()).when(mVcnContext).getLooper(); in setUp()
122 doReturn(mVcnNetworkProvider).when(mVcnContext).getVcnNetworkProvider(); in setUp()
123 doReturn(mContentResolver).when(mDeps).newVcnContentResolver(eq(mVcnContext)); in setUp()
144 mVcnContext, in setUp()
224 mVcnContext, in testMobileDataStateCheckedOnInitialization_disabled()
282 eq(mVcnContext), in startGatewaysAndGetGatewayConnections()
359 eq(mVcnContext), in verifyGatewayQuit()
DVcnGatewayConnectionTestBase.java137 @NonNull protected final VcnContext mVcnContext; field in VcnGatewayConnectionTestBase
158 mVcnContext = mock(VcnContext.class); in VcnGatewayConnectionTestBase()
176 doReturn(mContext).when(mVcnContext).getContext(); in VcnGatewayConnectionTestBase()
177 doReturn(mTestLooper.getLooper()).when(mVcnContext).getLooper(); in VcnGatewayConnectionTestBase()
178 doReturn(mVcnNetworkProvider).when(mVcnContext).getVcnNetworkProvider(); in VcnGatewayConnectionTestBase()
196 doReturn(msg).when(mDeps).newWakeupMessage(eq(mVcnContext), any(), eq(cmdName), any()); in setUpWakeupMessage()
213 mVcnContext, in setUp()
261 verify(mDeps).newWakeupMessage(eq(mVcnContext), any(), eq(tag), runnableCaptor.capture()); in verifyWakeupMessageSetUpAndGetCallback()
DUnderlyingNetworkTrackerTest.java111 private VcnContext mVcnContext; field in UnderlyingNetworkTrackerTest
119 mVcnContext = in setUp()
145 mVcnContext, in setUp()
152 reset(mVcnContext); in resetVcnContext()
153 doNothing().when(mVcnContext).ensureRunningOnLooperThread(); in resetVcnContext()
DVcnGatewayConnectionDisconnectedStateTest.java63 mVcnContext, in testEnterWhileQuittingTriggersQuit()
DVcnGatewayConnectionConnectedStateTest.java184 mVcnContext, in testCreatedTransformsAreAppliedWithDun()
290 eq(mVcnContext), in testChildOpenedRegistersNetwork()
412 eq(mVcnContext), in testSubsequentFailedValidationTriggersSafeMode()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcn.java143 @NonNull private final VcnContext mVcnContext; field in Vcn
206 mVcnContext = vcnContext; in Vcn()
211 mContentResolver = mDeps.newVcnContentResolver(mVcnContext); in Vcn()
225 mVcnContext.getVcnNetworkProvider().registerListener(mRequestListener); in Vcn()
340 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleConfigUpdated()
345 mVcnContext.getVcnNetworkProvider().unregisterListener(mRequestListener); in handleTeardown()
412 mVcnContext, in handleNetworkRequested()
447 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleGatewayConnectionQuit()
489 mVcnContext.getVcnNetworkProvider().resendAllRequests(mRequestListener); in handleMobileDataToggled()
497 mVcnContext.getContext().getSystemService(TelephonyManager.class); in getMobileDataStatus()
DUnderlyingNetworkTracker.java123 @NonNull private final VcnContext mVcnContext; field in UnderlyingNetworkTracker
164 mVcnContext = Objects.requireNonNull(vcnContext, "Missing vcnContext"); in UnderlyingNetworkTracker()
170 mHandler = new Handler(mVcnContext.getLooper()); in UnderlyingNetworkTracker()
172 mConnectivityManager = mVcnContext.getContext().getSystemService(ConnectivityManager.class); in UnderlyingNetworkTracker()
173 mVcnContext in UnderlyingNetworkTracker()
181 mVcnContext in UnderlyingNetworkTracker()
278 if (mVcnContext.isInTestMode()) { in getRouteSelectionRequest()
399 mVcnContext.ensureRunningOnLooperThread(); in teardown()
405 mVcnContext in teardown()
DVcnGatewayConnection.java522 @NonNull private final VcnContext mVcnContext; field in VcnGatewayConnection
666 mVcnContext = vcnContext; in VcnGatewayConnection()
679 mDeps.newWakeLock(mVcnContext.getContext(), PowerManager.PARTIAL_WAKE_LOCK, TAG); in VcnGatewayConnection()
683 mVcnContext, in VcnGatewayConnection()
687 mIpSecManager = mVcnContext.getContext().getSystemService(IpSecManager.class); in VcnGatewayConnection()
703 mVcnContext.ensureRunningOnLooperThread(); in isInSafeMode()
763 mVcnContext.ensureRunningOnLooperThread(); in updateSubscriptionSnapshot()
776 mVcnContext.ensureRunningOnLooperThread(); in onSelectedUnderlyingNetworkChanged()
802 mVcnContext.ensureRunningOnLooperThread(); in acquireWakeLock()
812 mVcnContext.ensureRunningOnLooperThread(); in releaseWakeLock()
[all …]
/frameworks/base/tests/vcn/java/com/android/server/
DVcnManagementServiceTest.java168 private final VcnContext mVcnContext = mock(VcnContext.class); field in VcnManagementServiceTest
198 doReturn(mMockContext).when(mVcnContext).getContext(); in VcnManagementServiceTest()
201 doReturn(mVcnContext) in VcnManagementServiceTest()
443 .newVcn(eq(mVcnContext), eq(TEST_UUID_1), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackStartsInstances()
445 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackStartsInstances()
462 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), eq(snapshot), any()); in testTelephonyNetworkTrackerCallbackSwitchingActiveDataStartsAndStopsInstances()
820 .newVcn(eq(mVcnContext), eq(TEST_UUID_2), eq(TEST_VCN_CONFIG), any(), any()); in testSetVcnConfigClearVcnConfigStartsUpdatesAndTearsDownVcns()
1155 eq(mVcnContext), in triggerVcnSafeMode()