Home
last modified time | relevance | path

Searched refs:setAnswer (Results 1 – 9 of 9) sorted by relevance

/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java204 mFakeDns.setAnswer(testStaticAddress, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testStaticMethodPass()
246 mFakeDns.setAnswer(testRoamStaticAddress, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testRoamStaticMethodPass()
285 mFakeDns.setAnswer(expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS_1}, TYPE_A); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig()
286 mFakeDns.setAnswer(expectedFqdnFromEhplmn, new String[] {TEST_IP_ADDRESS_2}, TYPE_A); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig()
315 mFakeDns.setAnswer(expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testPlmnResolutionMethod()
316 mFakeDns.setAnswer(expectedFqdnFromEhplmn, new String[] {TEST_IP_ADDRESS_1}, TYPE_A); in testPlmnResolutionMethod()
317 mFakeDns.setAnswer(excludedFqdnFromConfig, new String[] {TEST_IP_ADDRESS_2}, TYPE_A); in testPlmnResolutionMethod()
318 mFakeDns.setAnswer("sos." + expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS_3}, TYPE_A); in testPlmnResolutionMethod()
319 mFakeDns.setAnswer( in testPlmnResolutionMethod()
321 mFakeDns.setAnswer( in testPlmnResolutionMethod()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DDnsAnswerProviderTest.kt48 ansProvider.setAnswer("www.google.com", listOfAddresses("1.2.3.4")) in <lambda>()
52 ansProvider.setAnswer("www.google.com", listOfAddresses("1.2.3.4", "5.6.7.8")) in <lambda>()
60 ansProvider.setAnswer("www.example.com", listOfAddresses("8.8.8.8")) in <lambda>()
78 ansProvider.setAnswer("www.google.com", listOfAddresses("2001:db8::1", "2001:db8::2")) in <lambda>()
82 ansProvider.setAnswer("www.example.com", listOfAddresses("2001:db8::3")) in <lambda>()
90 ansProvider.setAnswer("www.google.com", listOfAddresses("2001:db8::4", "1.2.3.4")) in <lambda>()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java468 private void setAnswer(String hostname, String[] answer, int type) { in setAnswer() method in NetworkMonitorTest.FakeDns
469 setAnswer(hostname, new InstantAddressSupplier(generateAnswer(answer)), type); in setAnswer()
472 private void setAnswer(String hostname, AddressSupplier answerSupplier, int type) { in setAnswer() method in NetworkMonitorTest.FakeDns
686 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"192.0.2.2"}, TYPE_A); in setUp()
687 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"2001:db8::1"}, TYPE_AAAA); in setUp()
1398 mFakeDns.setAnswer(httpHost, new String[] { "2001:db8::123" }, TYPE_AAAA); in setupPrivateIpResponse()
1400 mFakeDns.setAnswer(httpHost, new String[] { privateAddr }, in setupPrivateIpResponse()
2364 mFakeDns.setAnswer("dns6.google", new String[]{"2001:db8::53"}, TYPE_AAAA); in runPrivateDnsSuccessTest()
2373 mFakeDns.setAnswer("dns4.google", new String[]{"192.0.2.1"}, TYPE_A); in runPrivateDnsSuccessTest()
2382 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::54"}, TYPE_AAAA); in runPrivateDnsSuccessTest()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestDnsServer.kt66 fun setAnswer(hostname: String, answer: List<InetAddress>) = in setAnswer() method
67 ansProvider.setAnswer(hostname, answer) in setAnswer()
DDnsAnswerProvider.kt59 fun setAnswer(query: String, hosts: List<InetAddress>) = mDnsKeyToRecords.put(query, hosts.map { in <lambda>() method
DFakeDns.kt45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>() method
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt74 fakeDns.setAnswer(name, expected, type) in verifyGetAllByName()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt79 testServer.setAnswer(TEST_DOMAIN, listOf(TEST_V6_ADDR)) in testHandleDnsQuery()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt127 setAnswer( in <lambda>()
131 setAnswer(HTTP_SERVER_NAME, listOf(REMOTE_V4ADDR.address)) in <lambda>()