Home
last modified time | relevance | path

Searched refs:DnsException (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java164 void onError(@NonNull DnsException error); in onError()
170 public static class DnsException extends Exception { class in DnsResolver
176 public DnsException(@DnsError int code, @Nullable Throwable cause) { in DnsException() method in DnsResolver.DnsException
209 executor.execute(() -> callback.onError(new DnsException(ERROR_SYSTEM, e))); in rawQuery()
250 executor.execute(() -> callback.onError(new DnsException(ERROR_SYSTEM, e))); in rawQuery()
264 private DnsException mDnsException;
312 mDnsException = new DnsException(ERROR_PARSE, pe); in onAnswer()
318 public void onError(@NonNull DnsException error) { in onError()
357 executor.execute(() -> callback.onError(new DnsException(ERROR_SYSTEM, e))); in query()
367 new DnsException(ERROR_SYSTEM, new ErrnoException("resNetworkQuery", ENONET)))); in query()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DSrvDnsResolver.java23 import android.net.DnsResolver.DnsException;
237 private List<InetAddress> queryDns(String domainName) throws DnsException { in queryDns()
251 public void onError(@Nullable final DnsException error) { in queryDns()
262 throw (DnsException) e.getCause(); in queryDns()
265 throw new DnsException(DnsResolver.ERROR_SYSTEM, e); in queryDns()
275 throws DnsPacket.ParseException, DnsException { in composeSrvRecordResult()
332 () -> mUserCallback.onError(new DnsException(DnsResolver.ERROR_PARSE, pe))); in onAnswer()
333 } catch (DnsException e) { in onAnswer()
339 public void onError(@NonNull DnsException error) { in onError()
DNaptrDnsResolver.java24 import android.net.DnsResolver.DnsException;
263 () -> mUserCallback.onError(new DnsException(DnsResolver.ERROR_PARSE, pe))); in onAnswer()
268 public void onError(@NonNull DnsException error) { in onError()
DEpdgSelector.java21 import android.net.DnsResolver.DnsException;
316 public void onError(@Nullable final DnsResolver.DnsException error) { in submitDnsResolverQuery()
526 public void onError(@Nullable final DnsResolver.DnsException error) { in getIP()
1214 public void onError(@Nullable final DnsException error) { in resolutionMethodVisitedCountry()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DNaptrDnsResolverTest.java98 public void onError(@Nullable final DnsResolver.DnsException error) { in NaptrDnsResolverTest()
189 DnsResolver.DnsException exception = null; in testValidHostNameGivesParsingErrorForUnexpectedResponse()
193 exception = (DnsResolver.DnsException) e.getCause(); in testValidHostNameGivesParsingErrorForUnexpectedResponse()
DSrvDnsResolverTest.java124 public void onError(@Nullable final DnsResolver.DnsException error) { in SrvDnsResolverTest()
279 DnsResolver.DnsException exception = null; in testInvalidResponseThrowsParseException()
283 exception = (DnsResolver.DnsException) e.getCause(); in testInvalidResponseThrowsParseException()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsResolverTest.java303 public void onError(@NonNull DnsResolver.DnsException error) { in onError()
643 public void onError(@NonNull DnsResolver.DnsException error) { in onError()
811 public void onError(@NonNull DnsResolver.DnsException error) { in doTestPrivateDnsBypass()
878 class TestDnsException extends DnsResolver.DnsException { in testDnsExceptionConstructor()
885 } catch (DnsResolver.DnsException e) { in testDnsExceptionConstructor()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java117 public void onError(@NonNull DnsResolver.DnsException e) { in getAllByName()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DNsdPublisher.java698 public void onError(@NonNull DnsResolver.DnsException error) { in onError()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java404 List<InetAddress> get() throws DnsResolver.DnsException; in get()
460 } catch (DnsResolver.DnsException e) { in getAnswer()
562 if (!(exception instanceof DnsResolver.DnsException)) { in mockQuery()
565 callback.onError((DnsResolver.DnsException) exception); in mockQuery()
2536 throw mock(DnsResolver.DnsException.class); in testAsyncPrivateDnsResolution_PartialFailure()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java676 .onError(new DnsResolver.DnsException(ERROR_SYSTEM, null /* cause */)); in resolveHost_errorReported()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt195 method public void onError(@NonNull android.net.DnsResolver.DnsException);
198 public static class DnsResolver.DnsException extends java.lang.Exception {
199 ctor public DnsResolver.DnsException(int, @Nullable Throwable);
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1821 public void onError(DnsResolver.DnsException error) { in onError()