Home | History | Annotate | Download | only in list

Lines Matching refs:SNIPPET

1118      * name and search snippet. This will disable the mask highlighting for names.
1389 * Adds or updates a text view for the search snippet.
1410 * Returns the text view for the search snippet, creating it if necessary.
1612 * Shows search snippet for email and phone number matches.
1617 // number since we normalize it before querying CP2 but the snippet will fail since
1619 final String snippet = cursor.getString(snippetColumn);
1620 if (snippet == null) {
1626 if (snippet.equals(displayName)) {
1627 // If the snippet exactly matches the display name (i.e. the phone number or email
1628 // address is being used as the display name) then no snippet is necessary
1632 // Show the snippet with the part of the query that matched it
1633 setSnippet(updateSnippet(snippet, query, displayName));
1637 * Shows search snippet.
1641 || !SearchSnippets.SNIPPET.equals(cursor.getColumnName(summarySnippetColumnIndex))) {
1646 String snippet = cursor.getString(summarySnippetColumnIndex);
1660 snippet = updateSnippet(snippet, query, displayName);
1663 if (snippet != null) {
1665 int to = snippet.length();
1666 int start = snippet.indexOf(DefaultContactListAdapter.SNIPPET_START_MATCH);
1668 snippet = null;
1670 int firstNl = snippet.lastIndexOf('\n', start);
1674 int end = snippet.lastIndexOf(DefaultContactListAdapter.SNIPPET_END_MATCH);
1676 int lastNl = snippet.indexOf('\n', end);
1684 char c = snippet.charAt(i);
1690 snippet = sb.toString();
1695 setSnippet(snippet);
1702 * @param snippet The snippet from the database.
1705 * @return The proper snippet to display.
1707 private String updateSnippet(String snippet, String query, String displayName) {
1709 if (TextUtils.isEmpty(snippet) || TextUtils.isEmpty(query)) {
1726 // The snippet may contain multiple data lines.
1728 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query);