(Context context, String name, String type, int timeout)
| 135 | } |
| 136 | |
| 137 | @NonNull |
| 138 | private static DnsRecord[] _lookup(Context context, String name, String type, int timeout) { |
| 139 | try { |
| 140 | return _lookup(context, name, type, timeout, false); |
| 141 | } catch (Throwable ex) { |
| 142 | if (ex instanceof MultipleIoException || |
| 143 | ex instanceof ResolutionUnsuccessfulException || |
| 144 | ex instanceof DnssecValidationFailedException) |
| 145 | Log.i(ex); |
| 146 | else |
| 147 | Log.e(ex); |
| 148 | return new DnsRecord[0]; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | @NonNull |
| 153 | private static DnsRecord[] _lookup(Context context, String name, String type, int timeout, boolean dnssec) throws IOException { |
no test coverage detected