Home | History | Annotate | Download | only in util

Lines Matching defs:links

46  *  regex matches in the text into clickable links.  This is particularly
199 * of the link types indicated in the mask into clickable links.
215 ArrayList<LinkSpec> links = new ArrayList<LinkSpec>();
218 gatherLinks(links, text, Patterns.WEB_URL,
224 gatherLinks(links, text, Patterns.EMAIL_ADDRESS,
230 gatherTelLinks(links, text);
234 gatherMapLinks(links, text);
237 pruneOverlaps(links);
239 if (links.size() == 0) {
243 for (LinkSpec link: links) {
252 * the link types indicated in the mask into clickable links. If matches
296 * links. If links are found then UrlSpans are applied to the link
300 * @param text TextView whose text is to be marked-up with links
301 * @param pattern Regex pattern to be used for finding links
303 * prepended to the url of links that do not have
312 * links. If links are found then UrlSpans are applied to the link
316 * @param text TextView whose text is to be marked-up with links
317 * @param p Regex pattern to be used for finding links
319 * prepended to the url of links that do not have
323 * to be converted into links.
337 * links.
340 * links
341 * @param pattern Regex pattern to be used for finding links
343 * prepended to the url of links that do not have
352 * links.
355 * links
356 * @param p Regex pattern to be used for finding links
358 * prepended to the url of links that do not have
362 * to be converted into links.
428 private static final void gatherLinks(ArrayList<LinkSpec> links,
445 links.add(spec);
450 private static final void gatherTelLinks(ArrayList<LinkSpec> links, Spannable s) {
459 links.add(spec);
463 private static final void gatherMapLinks(ArrayList<LinkSpec> links, Spannable s) {
494 links.add(spec);
498 // In this case, we will not append anything to the links variable: it would have died
504 private static final void pruneOverlaps(ArrayList<LinkSpec> links) {
531 Collections.sort(links, c);
533 int len = links.size();
537 LinkSpec a = links.get(i);
538 LinkSpec b = links.get(i + 1);
551 links.remove(remove);