Searched refs:mCleartextDnsNetwork (Results 1 – 2 of 2) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 245 private @Spy Network mCleartextDnsNetwork = new Network(TEST_NETID); field in NetworkMonitorTest 465 when(mDependencies.getPrivateDnsBypassNetwork(any())).thenReturn(mCleartextDnsNetwork); in setUp() 477 doReturn(mCleartextDnsNetwork).when(mNetwork).getPrivateDnsBypassingCopy(); in setUp() 536 }).when(mCleartextDnsNetwork).openConnection(any()); in setUp() 753 verify(mCleartextDnsNetwork, never()).openConnection(new URL(TEST_SPEED_TEST_URL)); in testEvaluatingBandwidthState_meteredNetwork() 773 verify(mCleartextDnsNetwork, never()).openConnection(new URL(TEST_SPEED_TEST_URL)); in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig() 1800 verify(mCleartextDnsNetwork, never()).openConnection(any()); 2592 verify(mCleartextDnsNetwork, atMost(4)).openConnection(any()); 2593 verify(mCleartextDnsNetwork, atLeastOnce()).openConnection(any()); 2606 verify(mCleartextDnsNetwork, atMost(4)).openConnection(any()); [all …]
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 421 private final Network mCleartextDnsNetwork; field in NetworkMonitor 572 mCleartextDnsNetwork = deps.getPrivateDnsBypassNetwork(network); in NetworkMonitor() 715 if (DBG) Log.d(TAG + "/" + mCleartextDnsNetwork.toString(), s); in log() 1183 final Network network = new Network(mCleartextDnsNetwork); in processMessage() 1350 mAction = action + "_" + mCleartextDnsNetwork.getNetworkHandle() + "_" + token; in CustomIntentReceiver() 1483 mCleartextDnsNetwork, mPrivateDnsProviderHostname, getDnsProbeTimeout(), in resolveStrictModeHostname() 2409 return DnsUtils.getAllByName(mDependencies.getDnsResolver(), mCleartextDnsNetwork, host, in sendDnsProbeWithTimeout() 2603 final HttpURLConnection conn = (HttpURLConnection) mCleartextDnsNetwork.openConnection(url); in makeProbeConnection() 3051 mMetricsLog.log(mCleartextDnsNetwork, transports, new NetworkEvent(evtype)); in logNetworkEvent() 3073 mMetricsLog.log(mCleartextDnsNetwork, transports, in maybeLogEvaluationResult() [all …]
|