Home
last modified time | relevance | path

Searched refs:mGatewayConnection (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionRetryTimeoutStateTest.java51 mGatewayConnection.setUnderlyingNetwork(TEST_UNDERLYING_NETWORK_RECORD_1); in setUp()
52 mGatewayConnection.transitionTo(mGatewayConnection.mRetryTimeoutState); in setUp()
55 mGatewayConnection.setNetworkAgent(mNetworkAgent); in setUp()
60 mGatewayConnection in testNewNetworkTriggerRetry()
65 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggerRetry()
68 assertNotNull(mGatewayConnection.getNetworkAgent()); in testNewNetworkTriggerRetry()
74 mGatewayConnection in testSameNetworkDoesNotTriggerRetry()
79 assertEquals(mGatewayConnection.mRetryTimeoutState, mGatewayConnection.getCurrentState()); in testSameNetworkDoesNotTriggerRetry()
82 assertNotNull(mGatewayConnection.getNetworkAgent()); in testSameNetworkDoesNotTriggerRetry()
88 mGatewayConnection in testNullNetworkTriggersDisconnect()
[all …]
DVcnGatewayConnectionConnectingStateTest.java48 mGatewayConnection.setUnderlyingNetwork(TEST_UNDERLYING_NETWORK_RECORD_1); in setUp()
49 mGatewayConnection.transitionTo(mGatewayConnection.mConnectingState); in setUp()
52 mIkeSession = mGatewayConnection.getIkeSession(); in setUp()
66 mGatewayConnection in testNullNetworkTriggersDisconnect()
71 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNullNetworkTriggersDisconnect()
78 mGatewayConnection in testNewNetworkTriggersReconnect()
83 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggersReconnect()
91 mGatewayConnection in testSameNetworkDoesNotTriggerReconnect()
96 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testSameNetworkDoesNotTriggerReconnect()
104 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testChildSessionClosedTriggersDisconnect()
[all …]
DVcnGatewayConnectionDisconnectingStateTest.java41 mGatewayConnection.setIkeSession( in setUp()
42 mGatewayConnection.buildIkeSession(TEST_UNDERLYING_NETWORK_RECORD_2.network)); in setUp()
46 mGatewayConnection.setUnderlyingNetwork(TEST_UNDERLYING_NETWORK_RECORD_2); in setUp()
47 mGatewayConnection.transitionTo(mGatewayConnection.mDisconnectingState); in setUp()
56 assertEquals(mGatewayConnection.mRetryTimeoutState, mGatewayConnection.getCurrentState()); in testIkeSessionClosed()
79 mGatewayConnection.teardownAsynchronously(); in testTeardown()
83 mGatewayConnection.sendDisconnectRequestedAndAcquireWakelock("TEST", false); in testTeardown()
87 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testTeardown()
89 assertTrue(mGatewayConnection.isQuitting()); in testTeardown()
95 mGatewayConnection.mDisconnectingState); in testSafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent()
[all …]
DVcnGatewayConnectionDisconnectedStateTest.java53 mGatewayConnection.setTunnelInterface(tunnelIface); in setUp()
80 mGatewayConnection in testNetworkChangesTriggerStateTransitions()
85 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testNetworkChangesTriggerStateTransitions()
91 mGatewayConnection in testNullNetworkDoesNotTriggerStateTransition()
96 assertEquals(mGatewayConnection.mDisconnectedState, mGatewayConnection.getCurrentState()); in testNullNetworkDoesNotTriggerStateTransition()
102 mGatewayConnection.teardownAsynchronously(); in testTeardown()
106 mGatewayConnection.sendDisconnectRequestedAndAcquireWakelock("TEST", false); in testTeardown()
109 assertNull(mGatewayConnection.getCurrentState()); in testTeardown()
112 assertTrue(mGatewayConnection.isQuitting()); in testTeardown()
118 mGatewayConnection.sendDisconnectRequestedAndAcquireWakelock("TEST", false); in testNonTeardownDisconnectRequest()
[all …]
DVcnGatewayConnectionConnectedStateTest.java119 mGatewayConnection.setUnderlyingNetwork(TEST_UNDERLYING_NETWORK_RECORD_1); in setUp()
121 mIkeSession = mGatewayConnection.buildIkeSession(TEST_UNDERLYING_NETWORK_RECORD_1.network); in setUp()
122 mGatewayConnection.setIkeSession(mIkeSession); in setUp()
124 mGatewayConnection.transitionTo(mGatewayConnection.mConnectedState); in setUp()
142 mGatewayConnection in testNullNetworkDoesNotTriggerDisconnect()
147 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testNullNetworkDoesNotTriggerDisconnect()
156 mGatewayConnection in testNullNetworkAirplaneModeDisconnects()
161 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNullNetworkAirplaneModeDisconnects()
167 mGatewayConnection in testNewNetworkTriggersMigration()
172 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggersMigration()
[all …]
DVcnGatewayConnectionTest.java226 mGatewayConnection.buildConnectedLinkProperties( in testBuildLinkProperties()
240 mGatewayConnection.buildConnectedLinkProperties( in testBuildLinkProperties()
262 mGatewayConnection.updateSubscriptionSnapshot(updatedSnapshot); in testSubscriptionSnapshotUpdateNotifiesUnderlyingNetworkController()
274 mGatewayConnection in testNonNullUnderlyingNetworkRecordUpdateCancelsAlarm()
280 mGatewayConnection in testNonNullUnderlyingNetworkRecordUpdateCancelsAlarm()
292 mGatewayConnection.setIkeSession(vcnIkeSession); in testQuittingCleansUpPersistentState()
293 mGatewayConnection.setNetworkAgent(vcnNetworkAgent); in testQuittingCleansUpPersistentState()
295 mGatewayConnection.quitNow(); in testQuittingCleansUpPersistentState()
298 assertNull(mGatewayConnection.getIkeSession()); in testQuittingCleansUpPersistentState()
300 assertNull(mGatewayConnection.getNetworkAgent()); in testQuittingCleansUpPersistentState()
[all …]
DVcnGatewayConnectionTestBase.java185 protected VcnGatewayConnection mGatewayConnection; field in VcnGatewayConnectionTestBase
270 mGatewayConnection = in setUp()
365 assertEquals(isInSafeMode, mGatewayConnection.isInSafeMode()); in verifySafeModeStateAndCallbackFired()
372 mGatewayConnection.setNetworkAgent(mockNetworkAgent); in verifySafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent()
381 assertEquals(expectedState, mGatewayConnection.getCurrentState()); in verifySafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent()
385 assertNull(mGatewayConnection.getNetworkAgent()); in verifySafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent()