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

Method getHost

app/src/main/java/eu/faircode/email/UriHelper.java:641–647  ·  view source on GitHub ↗
(Uri uri)

Source from the content-addressed store, hash-verified

639 }
640
641 static String getHost(Uri uri) {
642 if ("mailto".equalsIgnoreCase(uri.getScheme())) {
643 MailTo email = MailTo.parse(uri.toString());
644 return getEmailDomain(email.getTo());
645 } else
646 return uri.getHost();
647 }
648
649 static void test(Context context) {
650 String[] hosts = new String[]{

Callers 15

onExecuteMethod · 0.95
getOrganizationMethod · 0.95
connectMethod · 0.45
onCreateDialogMethod · 0.45
formatMethod · 0.45
getConfirmHostMethod · 0.45
sanitizeMethod · 0.45
removeTrackingPixelsMethod · 0.45
onCreateMethod · 0.45
onExecuteMethod · 0.45
parseFaviconMethod · 0.45
filterMethod · 0.45

Calls 4

getEmailDomainMethod · 0.95
getToMethod · 0.80
parseMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected