Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/cts/
DIpSecManagerTunnelTest.java104 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in IpSecManagerTunnelTest
117 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, true); in setUpBeforeClass()
127 sTunNetworkCallback = mCtsNetUtils.setupAndGetTestNetwork(testIface.getInterfaceName()); in setUpBeforeClass()
140 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, true); in setUp()
148 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in tearDownAfterClass()
162 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testSecurityExceptionCreateTunnelInterfaceWithoutAppop()
165 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in testSecurityExceptionCreateTunnelInterfaceWithoutAppop()
177 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testSecurityExceptionBuildTunnelTransformWithoutAppop()
180 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in testSecurityExceptionBuildTunnelTransformWithoutAppop()
585 testNetworkCb = mCtsNetUtils.setupAndGetTestNetwork(tunnelIface.getInterfaceName());
[all …]
DIkev2VpnTest.java171 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in Ikev2VpnTest
198 mCtsNetUtils.setAppopPrivileged(appop, allow); in setAppop()
261 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfilePsk()
279 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfileUsernamePassword()
297 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfileDigitalSignature()
316 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in verifyProvisionVpnProfile()
329 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileNoPreviousConsent()
337 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfilePlatformVpnConsented()
345 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileVpnServiceConsented()
353 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileAllPreConsented()
[all …]
DMultinetworkApiTest.java61 private CtsNetUtils mCtsNetUtils; field in MultinetworkApiTest
70 mCtsNetUtils = new CtsNetUtils(getContext()); in setUp()
225 mCtsNetUtils.storePrivateDnsSetting(); in testResNApiNXDomainPrivateDns()
229 mCtsNetUtils.setPrivateDnsStrictMode(GOOGLE_PRIVATE_DNS_SERVER); in testResNApiNXDomainPrivateDns()
232 mCtsNetUtils.awaitPrivateDnsSetting("NxDomain test wait private DNS setting timeout", in testResNApiNXDomainPrivateDns()
237 mCtsNetUtils.restorePrivateDnsSetting(); in testResNApiNXDomainPrivateDns()
DDnsResolverTest.java93 private CtsNetUtils mCtsNetUtils; field in DnsResolverTest
109 mCtsNetUtils = new CtsNetUtils(getContext()); in setUp()
110 mCtsNetUtils.storePrivateDnsSetting(); in setUp()
115 mCtsNetUtils.restorePrivateDnsSetting(); in tearDown()
402 mCtsNetUtils.setPrivateDnsStrictMode(GOOGLE_PRIVATE_DNS_SERVER); in doTestRawQueryNXDomainWithPrivateDns()
407 mCtsNetUtils.awaitPrivateDnsSetting(msg + " wait private DNS setting timeout", in doTestRawQueryNXDomainWithPrivateDns()
671 mCtsNetUtils.setPrivateDnsStrictMode(INVALID_PRIVATE_DNS_SERVER); in testPrivateDnsBypass()
679 mCtsNetUtils.awaitPrivateDnsSetting(msg + " wait private DNS setting timeout", in testPrivateDnsBypass()
DConnectivityManagerTest.java180 private CtsNetUtils mCtsNetUtils; field in ConnectivityManagerTest
189 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
213 mCtsNetUtils.disconnectFromWifi(null); in tearDown()
215 if (mCtsNetUtils.cellConnectAttempted()) { in tearDown()
216 mCtsNetUtils.disconnectFromCell(); in tearDown()
228 return mCtsNetUtils.connectToWifi(); in ensureWifiConnected()
344 Network wifiNetwork = mCtsNetUtils.connectToWifi(); in testOpenConnection()
345 Network cellNetwork = mCtsNetUtils.connectToCell(); in testOpenConnection()
600 mCtsNetUtils.disconnectFromWifi(null); in testRequestNetworkCallback_onUnavailable()
617 mCtsNetUtils.connectToWifi(); in testRequestNetworkCallback_onUnavailable()
[all …]
/cts/tests/tests/net/api23Test/src/android/net/cts/api23test/
DConnectivityManagerApi23Test.java46 private CtsNetUtils mCtsNetUtils; field in ConnectivityManagerApi23Test
54 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
67 mCtsNetUtils.toggleWifi(); in testConnectivityChanged_manifestRequestOnly_shouldNotReceiveIntent()
90 mCtsNetUtils.toggleWifi(); in testConnectivityChanged_manifestRequestOnlyPreN_shouldReceiveIntent()
108 mCtsNetUtils.toggleWifi(); in testConnectivityChanged_whenRegistered_shouldReceiveIntent()
/cts/tests/tests/tethering/src/android/tethering/cts/
DTetheringManagerTest.java102 private CtsNetUtils mCtsNetUtils; field in TetheringManagerTest
126 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
760 mCtsNetUtils.disconnectFromWifi(null); in testTetheringUpstream()
796 mCtsNetUtils.connectToWifi(); in testTetheringUpstream()