MCPcopy Create free account
hub / github.com/M66B/FairEmail / _lookup

Method _lookup

app/src/main/java/eu/faircode/email/DnsHelper.java:137–150  ·  view source on GitHub ↗
(Context context, String name, String type, int timeout)

Source from the content-addressed store, hash-verified

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 {

Callers 3

checkMxMethod · 0.95
lookupMethod · 0.95
getAllByNameMethod · 0.95

Calls 15

iMethod · 0.95
eMethod · 0.95
wMethod · 0.95
getBooleanMethod · 0.80
indexOfMethod · 0.80
resolveMethod · 0.80
isAuthenticDataMethod · 0.80
toArrayMethod · 0.80
getMessageMethod · 0.65
sizeMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected