/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowOverlayItem.java | 16 private String snippet; field in class:ShadowOverlayItem 18 public void __constructor__(GeoPoint geoPoint, String title, String snippet) { 21 this.snippet = snippet; 36 return snippet; 50 && Strings.equals(snippet, that.snippet) 59 result = snippet == null ? result : 19 * result + snippet.hashCode();
|
/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);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
GlobalSearchSupport.java | 237 sb.append(", " + SearchSnippetColumns.SNIPPET); 276 private String shortenSnippet(final String snippet) { 277 if (snippet == null) { 282 int to = snippet.length(); 283 int start = snippet.indexOf(SNIPPET_START_MATCH); 288 int firstNl = snippet.lastIndexOf('\n', start); 292 int end = snippet.lastIndexOf(SNIPPET_END_MATCH); 294 int lastNl = snippet.indexOf('\n', end); 302 char c = snippet.charAt(i);
|
/packages/apps/Mms/src/com/android/mms/ |
SuggestionsProvider.java | 119 public Row(int row, String snippet) { 120 mSnippet = snippet.trim(); 131 * FTS3 snippet function does not work so we do it here in the code. 134 int snippetColumn = mDatabaseCursor.getColumnIndex("snippet"); 141 String snippet = mDatabaseCursor.getString(snippetColumn); local 142 if (!TextUtils.equals(previousSnippet, snippet)) { 143 mRows.add(new Row(i, snippet)); 144 previousSnippet = snippet;
|
/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;
|
/frameworks/base/core/java/android/util/ |
JsonReader.java | 1161 StringBuilder snippet = new StringBuilder(); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListItemView.java | 1208 String snippet = cursor.getString(summarySnippetColumnIndex); local [all...] |
/packages/apps/Email/src/com/android/email/widget/ |
EmailWidget.java | 347 * Create styled text for our combination subject and snippet 350 * @param snippet the message's snippet (or null) 354 private CharSequence getStyledSubjectSnippet(String subject, String snippet, boolean read) { 366 if (!TextUtils.isEmpty(snippet)) { 370 SpannableString ss = new SpannableString(snippet); 371 ss.setSpan(new ForegroundColorSpan(sLightTextColor), 0, snippet.length(), 411 // Add style to subject/snippet 413 String snippet = mCursor.getString(EmailWidgetLoader.WIDGET_COLUMN_SNIPPET); local 414 CharSequence subjectAndSnippet = getStyledSubjectSnippet(subject, snippet, !isUnread) [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailDisplayUtils.java | 221 * Set the social snippet text. If there isn't one, then set the view to gone. 229 CharSequence snippet = null; local 233 snippet = HtmlUtils.fromHtml(context, firstEntry.getText()); 238 // If displaying an image, hide the snippet text. 239 snippet = null; 242 setDataOrHideIfNone(snippet, statusView);
|
/external/bison/lib/ |
gnulib.mk | [all...] |
/packages/apps/Email/src/com/android/email/ |
NotificationController.java | 536 final String snippet = message.mSnippet; local 539 final String subjectSnippet = !TextUtils.isEmpty(subject) ? subject : snippet; 545 // If the senders are empty, just use the subject/snippet. 549 // If the subject/snippet is empty, just use the senders. 611 final String snippet = message.mSnippet; 614 // If the subject is empty, just use the snippet. 615 return snippet; 617 else if (TextUtils.isEmpty(snippet)) { 618 // If the snippet is empty, just use the subject. 631 final String bigText = String.format(notificationBigTextFormat, subject, snippet); [all...] |
/packages/apps/Mms/src/com/android/mms/data/ |
Conversation.java | 55 Threads.SNIPPET, Threads.SNIPPET_CHARSET, Threads.READ, Threads.ERROR, 74 private static final int SNIPPET = 4; 561 * Returns a snippet of text from the most recent message in the conversation. 723 // mmssms.db|2.253 ms|SELECT _id, date, message_count, recipient_ids, snippet, snippet_cs, 743 // mmssms.db|2.253 ms|SELECT _id, date, message_count, recipient_ids, snippet, snippet_cs, 913 String snippet = MessageUtils.cleanseMmsSubject(context, local 1315 String snippet = MessageUtils.extractEncStrFromCursor(c, SNIPPET, SNIPPET_CS); local [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
MessageListItem.java | 85 // Wide mode shows sender, snippet, time, and favorite spread out across the screen 219 * Sets message subject and snippet safely, ensuring the cache is invalidated. 221 public void setText(String subject, String snippet, boolean forceUpdate) { 229 if (!Objects.equal(mSnippet, snippet)) { 230 mSnippet = snippet; 463 // 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 | 55 * snippet of what matches, below. The snippet is taken from the most recent part of 57 * snippet is highlighted. 70 * Subclass of TextView which displays a snippet of text which matches the full text and 71 * highlights the matches within the snippet. 95 * We have to know our width before we can compute the snippet string. Do that 316 final TextViewSnippet snippet = (TextViewSnippet)(view.findViewById(R.id.subtitle)); 324 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"); [all...] |
/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));
|