Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecManagerTunnelTest.java121 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in IpSecManagerTunnelTest
134 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, true); in setUpBeforeClass()
146 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, true); in setUp()
161 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in tearDownAfterClass()
192 networkCallback = mCtsNetUtils.setupAndGetTestNetwork(testIface.getInterfaceName()); in TunNetworkWrapper()
220 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testSecurityExceptionCreateTunnelInterfaceWithoutAppop()
223 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in testSecurityExceptionCreateTunnelInterfaceWithoutAppop()
235 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testSecurityExceptionBuildTunnelTransformWithoutAppop()
238 mCtsNetUtils.setAppopPrivileged(OP_MANAGE_IPSEC_TUNNELS, false); in testSecurityExceptionBuildTunnelTransformWithoutAppop()
832 testNetworkCb = mCtsNetUtils.setupAndGetTestNetwork(tunnelIface.getInterfaceName());
[all …]
DIkev2VpnTest.java169 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in Ikev2VpnTest
196 mCtsNetUtils.setAppopPrivileged(appop, allow); in setAppop()
259 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfilePsk()
277 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfileUsernamePassword()
295 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testBuildIkev2VpnProfileDigitalSignature()
314 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in verifyProvisionVpnProfile()
327 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileNoPreviousConsent()
335 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfilePlatformVpnConsented()
343 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileVpnServiceConsented()
351 assumeTrue(mCtsNetUtils.hasIpsecTunnelsFeature()); in testProvisionVpnProfileAllPreConsented()
[all …]
DBatteryStatsManagerTest.java75 private CtsNetUtils mCtsNetUtils; field in BatteryStatsManagerTest
83 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
110 mCtsNetUtils.ensureWifiDisconnected(null /* wifiNetworkToCheck */); in testReportNetworkInterfaceForTransports()
112 final Network cellNetwork = mCtsNetUtils.connectToCell(); in testReportNetworkInterfaceForTransports()
126 final Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in testReportNetworkInterfaceForTransports()
146 mCtsNetUtils.toggleWifi(); in testReportNetworkInterfaceForTransports()
165 Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in testReportNetworkInterfaceForTransports_throwsSecurityException()
DConnectivityManagerTest.java284 private CtsNetUtils mCtsNetUtils; field in ConnectivityManagerTest
299 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
367 if (mCtsNetUtils.cellConnectAttempted()) { in tearDown()
368 mCtsNetUtils.disconnectFromCell(); in tearDown()
506 final Network cellNetwork = mCtsNetUtils.connectToCell(); in testGetAllNetworkStateSnapshots()
562 Network wifiNetwork = mCtsNetUtils.connectToWifi(); in testOpenConnection()
563 Network cellNetwork = mCtsNetUtils.connectToCell(); in testOpenConnection()
717 mCtsNetUtils.storePrivateDnsSetting(); in testIsPrivateDnsBroken()
722 mCtsNetUtils.setPrivateDnsStrictMode(goodPrivateDnsServer); in testIsPrivateDnsBroken()
723 final Network networkForPrivateDns = mCtsNetUtils.ensureWifiConnected(); in testIsPrivateDnsBroken()
[all …]
DMultinetworkApiTest.java61 private CtsNetUtils mCtsNetUtils; field in MultinetworkApiTest
70 mCtsNetUtils = new CtsNetUtils(getContext()); in setUp()
227 mCtsNetUtils.storePrivateDnsSetting(); in testResNApiNXDomainPrivateDns()
231 mCtsNetUtils.setPrivateDnsStrictMode(GOOGLE_PRIVATE_DNS_SERVER); in testResNApiNXDomainPrivateDns()
234 mCtsNetUtils.awaitPrivateDnsSetting("NxDomain test wait private DNS setting timeout", in testResNApiNXDomainPrivateDns()
239 mCtsNetUtils.restorePrivateDnsSetting(); in testResNApiNXDomainPrivateDns()
DDnsResolverTest.java96 private CtsNetUtils mCtsNetUtils; field in DnsResolverTest
112 mCtsNetUtils = new CtsNetUtils(getContext()); in setUp()
113 mCtsNetUtils.storePrivateDnsSetting(); in setUp()
119 mCtsNetUtils.restorePrivateDnsSetting(); in tearDown()
135 mCtsNetUtils.ensureWifiConnected(); in getTestableNetworks()
409 mCtsNetUtils.setPrivateDnsStrictMode(GOOGLE_PRIVATE_DNS_SERVER); in doTestRawQueryNXDomainWithPrivateDns()
414 mCtsNetUtils.awaitPrivateDnsSetting(msg + " wait private DNS setting timeout", in doTestRawQueryNXDomainWithPrivateDns()
680 mCtsNetUtils.setPrivateDnsStrictMode(INVALID_PRIVATE_DNS_SERVER); in testPrivateDnsBypass()
688 mCtsNetUtils.awaitPrivateDnsSetting(msg + " wait private DNS setting timeout", in testPrivateDnsBypass()
/packages/modules/Connectivity/tests/cts/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()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java95 private CtsNetUtils mCtsNetUtils; field in TetheringManagerTest
120 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()
427 mCtsNetUtils.ensureWifiDisconnected(null); in testTetheringUpstream()
463 mCtsNetUtils.connectToWifi(); in testTetheringUpstream()