Lines Matching defs:snippet
816 * name and search snippet. This will disable the mask highlighting for names.
1034 * Adds or updates a text view for the search snippet.
1055 * Returns the text view for the search snippet, creating it if necessary.
1223 * Shows search snippet.
1231 String snippet = cursor.getString(summarySnippetColumnIndex);
1245 snippet = updateSnippet(snippet, query, displayName);
1248 if (snippet != null) {
1250 int to = snippet.length();
1251 int start = snippet.indexOf(DefaultContactListAdapter.SNIPPET_START_MATCH);
1253 snippet = null;
1255 int firstNl = snippet.lastIndexOf('\n', start);
1259 int end = snippet.lastIndexOf(DefaultContactListAdapter.SNIPPET_END_MATCH);
1261 int lastNl = snippet.indexOf('\n', end);
1269 char c = snippet.charAt(i);
1275 snippet = sb.toString();
1280 setSnippet(snippet);
1287 * @param snippet The snippet from the database.
1290 * @return The proper snippet to display.
1292 private String updateSnippet(String snippet, String query, String displayName) {
1294 if (TextUtils.isEmpty(snippet) || TextUtils.isEmpty(query)) {
1311 // The snippet may contain multiple data lines.
1313 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query);