Home | History | Annotate | Download | only in list

Lines Matching refs:snippet

856      * name and search snippet.
1015 * Adds or updates a text view for the search snippet.
1029 * Returns the text view for the search snippet, creating it if necessary.
1200 * Shows search snippet.
1208 String snippet = cursor.getString(summarySnippetColumnIndex);
1222 snippet = updateSnippet(snippet, query, displayName);
1225 if (snippet != null) {
1227 int to = snippet.length();
1228 int start = snippet.indexOf(DefaultContactListAdapter.SNIPPET_START_MATCH);
1230 snippet = null;
1232 int firstNl = snippet.lastIndexOf('\n', start);
1236 int end = snippet.lastIndexOf(DefaultContactListAdapter.SNIPPET_END_MATCH);
1238 int lastNl = snippet.indexOf('\n', end);
1246 char c = snippet.charAt(i);
1252 snippet = sb.toString();
1257 setSnippet(snippet);
1264 * @param snippet The snippet from the database.
1267 * @return The proper snippet to display.
1269 private String updateSnippet(String snippet, String query, String displayName) {
1271 if (TextUtils.isEmpty(snippet) || TextUtils.isEmpty(query)) {
1288 // The snippet may contain multiple data lines.
1290 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query);