HomeSort by relevance Sort by last modified time
    Searched refs:snippet (Results 1 - 25 of 35) sorted by null

1 2

  /external/chromium/chrome/browser/history/
snippet_unittest.cc 5 #include "chrome/browser/history/snippet.h"
82 bool ComparePair1st(const Snippet::MatchPosition& a,
83 const Snippet::MatchPosition& b) {
88 // sqlite's FTS matching. BuildSnippet returns the snippet for matching
104 Snippet::MatchPositions match_positions;
118 // Compute the snippet.
119 Snippet snippet; local
120 snippet.ComputeSnippet(match_positions, document);
122 // Now "highlight" all matches in the snippet with **
    [all...]
snippet.cc 5 #include "chrome/browser/history/snippet.h"
20 bool PairFirstLessThan(const Snippet::MatchPosition& a,
21 const Snippet::MatchPosition& b) {
28 Snippet::MatchPositions* match_positions) {
30 Snippet::MatchPosition& pair((*match_positions)[offset]);
44 Snippet::MatchPositions* match_positions) {
47 Snippet::MatchPosition pair(start, end);
54 Snippet::MatchPositions::iterator i =
128 // snippet generation. If not, revisit the way we scan in ComputeSnippet.
138 // Returns true if next match falls within a snippet windo
230 string16 snippet; local
    [all...]
text_database.h 46 // included in the snippet.
47 Snippet::MatchPositions title_match_positions;
49 // Snippet of the match we generated from the body.
50 Snippet snippet; member in struct:history::TextDatabase::Match
text_database_unittest.cc 223 // We don't want to be dependent on the exact snippet algorithm, but we know
225 // document, that each snippet should start with that.
226 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[0].snippet.text()),
228 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[1].snippet.text()),
230 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[2].snippet.text()),
text_database.cc 50 // Snippet computation relies on the index of the columns in the original
352 Snippet::ExtractMatchPositions(offsets_str, kTitleColumnIndex,
354 Snippet::ConvertMatchPositionsToWide(statement.ColumnString(1),
358 Snippet::MatchPositions match_positions;
359 Snippet::ExtractMatchPositions(offsets_str, kBodyColumnIndex,
362 // Compute the snippet based on those matches.
364 match.snippet.ComputeSnippet(match_positions, body);
history_types.h 20 #include "chrome/browser/history/snippet.h"
339 URLResult(const GURL& url, const Snippet::MatchPositions& title_matches);
345 const Snippet& snippet() const { return snippet_; } function in class:history::URLResult
350 const Snippet::MatchPositions& title_match_positions() const {
363 Snippet snippet_;
364 Snippet::MatchPositions title_match_positions_;
  /packages/apps/Mms/src/com/android/mms/
SuggestionsProvider.java 120 public Row(int row, String snippet) {
121 mSnippet = snippet.trim();
132 * FTS3 snippet function does not work so we do it here in the code.
135 int snippetColumn = mDatabaseCursor.getColumnIndex("snippet");
142 String snippet = mDatabaseCursor.getString(snippetColumn); local
143 if (!TextUtils.equals(previousSnippet, snippet)) {
144 mRows.add(new Row(i, snippet));
145 previousSnippet = snippet;
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
GlobalSearchSupport.java 316 sb.append(", " + SearchSnippetColumns.SNIPPET);
355 private String shortenSnippet(final String snippet) {
356 if (snippet == null) {
361 int to = snippet.length();
362 int start = snippet.indexOf(SNIPPET_START_MATCH);
367 int firstNl = snippet.lastIndexOf('\n', start);
371 int end = snippet.lastIndexOf(SNIPPET_END_MATCH);
373 int lastNl = snippet.indexOf('\n', end);
381 char c = snippet.charAt(i);
  /cts/libs/json/src/com/android/json/stream/
JsonReader.java 1093 StringBuilder snippet = new StringBuilder(); local
    [all...]
  /external/webkit/Source/WebCore/inspector/front-end/
AuditFormatters.js 66 snippet: function(snippetText)
AuditsPanel.js 410 addSnippet: function(snippet)
412 return this.addChild(snippet, false, "source-code");
BreakpointsSidebarPane.js 68 function didLoadSnippet(snippet)
70 snippetElement.textContent = snippet;
  /packages/apps/Contacts/src/com/android/contacts/list/
ContactListItemView.java 1242 String snippet; local
    [all...]
  /frameworks/base/core/java/android/util/
JsonReader.java 1161 StringBuilder snippet = new StringBuilder(); local
    [all...]
  /packages/apps/Email/src/com/android/email/widget/
EmailWidget.java 370 * Create styled text for our combination subject and snippet
373 * @param snippet the message's snippet (or null)
377 private CharSequence getStyledSubjectSnippet(String subject, String snippet, boolean read) {
389 if (!TextUtils.isEmpty(snippet)) {
393 SpannableString ss = new SpannableString(snippet);
394 ss.setSpan(new ForegroundColorSpan(sLightTextColor), 0, snippet.length(),
437 // Add style to subject/snippet
439 String snippet = mCursor.getString(EmailWidgetLoader.WIDGET_COLUMN_SNIPPET); local
440 CharSequence subjectAndSnippet = getStyledSubjectSnippet(subject, snippet, !isUnread)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/detail/
ContactDetailDisplayUtils.java 228 * Set the social snippet text. If there isn't one, then set the view to gone.
236 CharSequence snippet = null; local
240 snippet = HtmlUtils.fromHtml(context, firstEntry.getText());
245 // If displaying an image, hide the snippet text.
246 snippet = null;
249 setDataOrHideIfNone(snippet, statusView);
  /packages/apps/Mms/src/com/android/mms/data/
Conversation.java 47 Threads.SNIPPET, Threads.SNIPPET_CHARSET, Threads.READ, Threads.ERROR,
66 private static final int SNIPPET = 4;
496 * Returns a snippet of text from the most recent message in the conversation.
608 // mmssms.db|2.253 ms|SELECT _id, date, message_count, recipient_ids, snippet, snippet_cs,
628 // mmssms.db|2.253 ms|SELECT _id, date, message_count, recipient_ids, snippet, snippet_cs,
728 // Replace the snippet with a default value if it's empty.
729 String snippet = MessageUtils.extractEncStrFromCursor(c, SNIPPET, SNIPPET_CS); local
730 if (TextUtils.isEmpty(snippet)) {
731 snippet = context.getString(R.string.no_subject_view)
1120 String snippet = MessageUtils.extractEncStrFromCursor(c, SNIPPET, SNIPPET_CS); local
    [all...]
  /packages/apps/Email/src/com/android/email/activity/
MessageListItem.java 84 // Wide mode shows sender, snippet, time, and favorite spread out across the screen
218 * Sets message subject and snippet safely, ensuring the cache is invalidated.
220 public void setText(String subject, String snippet, boolean forceUpdate) {
228 if (!Objects.equal(mSnippet, snippet)) {
229 mSnippet = snippet;
460 // Subject and snippet.
  /packages/experimental/LoaderApp/src/com/android/loaderapp/
ContactHeaderWidget.java 405 * Manually set the social snippet text to display in the header. This doesn't change the
408 public void setSocialSnippet(CharSequence snippet) {
409 if (snippet == null) {
413 mStatusView.setText(snippet);
  /packages/apps/Mms/src/com/android/mms/ui/
SearchActivity.java 58 * snippet of what matches, below. The snippet is taken from the most recent part of
60 * snippet is highlighted.
73 * Subclass of TextView which displays a snippet of text which matches the full text and
74 * highlights the matches within the snippet.
98 * We have to know our width before we can compute the snippet string. Do that
313 final TextViewSnippet snippet = (TextViewSnippet)(view.findViewById(R.id.subtitle));
321 snippet.setText(cursor.getString(bodyPos), searchString);
  /external/webkit/Source/WebKit/qt/tests/qwebelement/
tst_qwebelement.cpp 812 QString snippet = "" local
826 body.findFirst("em").encloseContentsWith(snippet);
863 QString snippet = "" local
877 body.findFirst("em").encloseWith(snippet);
    [all...]
  /libcore/luni/src/test/java/libcore/xml/
PullParserTest.java 547 String snippet = "<dagny dad=\"bob\">hello</dagny>"; local
550 parser.setInput(new StringReader(snippet));
555 String snippet = "<dagny dad=\"bob\">hello</dagny>"; local
558 parser.setInput(new ByteArrayInputStream(snippet.getBytes()), "UTF-8");
  /external/webkit/Source/WebKit/qt/tests/qdeclarativewebview/
tst_qdeclarativewebview.cpp 226 static inline QVariant callEvaluateJavaScript(QObject *object, const QString& snippet)
229 QMetaObject::invokeMethod(object, "evaluateJavaScript", Q_RETURN_ARG(QVariant, result), Q_ARG(QString, snippet));
  /external/chromium/chrome/browser/ui/webui/
history2_ui.cc 265 // and snippet, browse results need day and time information).
284 page_value->SetString("snippet", page.snippet().text());
history_ui.cc 265 // and snippet, browse results need day and time information).
284 page_value->SetString("snippet", page.snippet().text());

Completed in 3017 milliseconds

1 2