Searched refs:mCtsNetUtils (Results 1 – 8 of 8) sorted by relevance
121 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in IpSecManagerTunnelTest134 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 …]
169 private static final CtsNetUtils mCtsNetUtils = new CtsNetUtils(sContext); field in Ikev2VpnTest196 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 …]
75 private CtsNetUtils mCtsNetUtils; field in BatteryStatsManagerTest83 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()
284 private CtsNetUtils mCtsNetUtils; field in ConnectivityManagerTest299 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 …]
61 private CtsNetUtils mCtsNetUtils; field in MultinetworkApiTest70 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()
96 private CtsNetUtils mCtsNetUtils; field in DnsResolverTest112 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()
46 private CtsNetUtils mCtsNetUtils; field in ConnectivityManagerApi23Test54 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()
95 private CtsNetUtils mCtsNetUtils; field in TetheringManagerTest120 mCtsNetUtils = new CtsNetUtils(mContext); in setUp()427 mCtsNetUtils.ensureWifiDisconnected(null); in testTetheringUpstream()463 mCtsNetUtils.connectToWifi(); in testTetheringUpstream()