Home | History | Annotate | Download | only in list

Lines Matching refs:snippet

815      * name and search snippet. This will disable the mask highlighting for names.
1031 * Adds or updates a text view for the search snippet.
1045 * Returns the text view for the search snippet, creating it if necessary.
1204 * Shows search snippet.
1212 String snippet = cursor.getString(summarySnippetColumnIndex);
1226 snippet = updateSnippet(snippet, query, displayName);
1229 if (snippet != null) {
1231 int to = snippet.length();
1232 int start = snippet.indexOf(DefaultContactListAdapter.SNIPPET_START_MATCH);
1234 snippet = null;
1236 int firstNl = snippet.lastIndexOf('\n', start);
1240 int end = snippet.lastIndexOf(DefaultContactListAdapter.SNIPPET_END_MATCH);
1242 int lastNl = snippet.indexOf('\n', end);
1250 char c = snippet.charAt(i);
1256 snippet = sb.toString();
1261 setSnippet(snippet);
1268 * @param snippet The snippet from the database.
1271 * @return The proper snippet to display.
1273 private String updateSnippet(String snippet, String query, String displayName) {
1275 if (TextUtils.isEmpty(snippet) || TextUtils.isEmpty(query)) {
1292 // The snippet may contain multiple data lines.
1294 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query);