Searched refs:setAnswer (Results 1 – 2 of 2) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 358 private synchronized void setAnswer(String hostname, String[] answer, int type) in setAnswer() method in NetworkMonitorTest.FakeDns 526 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"192.0.2.2"}, TYPE_A); in setUp() 527 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"2001:db8::1"}, TYPE_AAAA); in setUp() 1068 mFakeDns.setAnswer(httpHost, new String[] { "2001:db8::123" }, TYPE_AAAA); in setupPrivateIpResponse() 1070 mFakeDns.setAnswer(httpHost, new String[] { privateAddr }, in setupPrivateIpResponse() 1766 mFakeDns.setAnswer("dns6.google", new String[]{"2001:db8::53"}, TYPE_AAAA); 1777 mFakeDns.setAnswer("dns4.google", new String[]{"192.0.2.1"}, TYPE_A); 1788 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::54"}, TYPE_AAAA); 1789 mFakeDns.setAnswer("dns.google", new String[]{"192.0.2.3"}, TYPE_A); 1812 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::1"}, TYPE_AAAA); [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/ |
D | DnsUtilsTest.kt | 74 fakeDns.setAnswer(name, expected, type) in verifyGetAllByName()
|