Home | History | Annotate | Download | only in list

Lines Matching refs:SNIPPET

962    * snippet. This will disable the mask highlighting for names.
1120 /** Adds or updates a text view for the search snippet. */
1138 /** Returns the text view for the search snippet, creating it if necessary. */
1291 /** Shows search snippet. */
1294 || !SearchSnippets.SNIPPET.equals(cursor.getColumnName(summarySnippetColumnIndex))) {
1299 String snippet = cursor.getString(summarySnippetColumnIndex);
1313 snippet = updateSnippet(snippet, query, displayName);
1316 if (snippet != null) {
1318 int to = snippet.length();
1319 int start = snippet.indexOf(SNIPPET_START_MATCH);
1321 snippet = null;
1323 int firstNl = snippet.lastIndexOf('\n', start);
1327 int end = snippet.lastIndexOf(SNIPPET_END_MATCH);
1329 int lastNl = snippet.indexOf('\n', end);
1337 char c = snippet.charAt(i);
1342 snippet = sb.toString();
1347 setSnippet(snippet);
1354 * @param snippet The snippet from the database.
1357 * @return The proper snippet to display.
1359 private String updateSnippet(String snippet, String query, String displayName) {
1361 if (TextUtils.isEmpty(snippet) || TextUtils.isEmpty(query)) {
1378 // The snippet may contain multiple data lines.
1380 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query);