Searched refs:snippet (Results 1 - 18 of 18) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
H A DConversionUtilities.java56 public String snippet; field in class:ConversionUtilities.BodyFieldData
87 data.snippet = TextUtilities.makeSnippetFromPlainText(text);
92 if (data.snippet == null) {
93 data.snippet = TextUtilities.makeSnippetFromHtmlText(text);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DGlobalSearchSupport.java276 private String shortenSnippet(final String snippet) { argument
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/
H A DSuggestionsProvider.java119 public Row(int row, String snippet) { argument
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);
142 if (!TextUtils.equals(previousSnippet, snippet)) {
143 mRows.add(new Row(i, snippet));
144 previousSnippet = snippet;
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemViewCoordinates.java371 final TextView snippet = (TextView) view.findViewById(R.id.snippet);
372 final int snippetTopAdjust = getLatinTopAdjustment(snippet);
373 snippetX = getX(snippet);
374 snippetY = getY(snippet) + snippetTopAdjust;
375 maxSnippetWidth = snippet.getWidth();
376 snippetHeight = snippet.getHeight();
377 snippetFontSize = snippet.getTextSize();
H A DMessageHeaderView.java455 final String snippet;
457 snippet = makeSnippet(mMessage.snippet);
459 snippet = mMessage.snippet;
461 mSnippet = snippet == null ? null : getBidiFormatter().unicodeWrap(snippet);
1372 * Returns a short plaintext snippet generated from the given HTML message
1374 * everything in between, and truncates the snippet to no more than 100
1377 * @return Short plaintext snippet
[all...]
H A DConversationItemView.java996 final String snippet = mHeader.conversation.getSnippet();
997 final Spannable displayedStringBuilder = new SpannableString(snippet);
999 // measure the width of the folders which overlap the snippet view
1002 // size the snippet view by subtracting the folder width from the maximum snippet width
1400 // in RTL layouts we move the snippet to the right so it doesn't overlap the folders
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListItemView.java815 * name and search snippet. This will disable the mask highlighting for names.
1031 * Adds or updates a text view for the search snippet.
1045 * Returns the text view for the search snippet, creating it if necessary.
1204 * Shows search snippet.
1212 String snippet = cursor.getString(summarySnippetColumnIndex);
1226 snippet = updateSnippet(snippet, query, displayName);
1229 if (snippet != null) {
1231 int to = snippet.length();
1232 int start = snippet
1273 updateSnippet(String snippet, String query, String displayName) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DMessage.java91 public String snippet; field in class:Message
271 dest.writeString(snippet);
307 snippet = in.readString();
369 snippet = cursor.getString(UIProvider.MESSAGE_SNIPPET_COLUMN);
456 // body values (snippet/bodyText/bodyHtml)
464 snippet = data.snippet;
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetConversationListItemViewBuilder.java149 final String snippet = conversation.getSnippet();
171 final SpannableStringBuilder snippetBuilder = new SpannableStringBuilder(snippet);
/packages/apps/Mms/src/com/android/mms/data/
H A DConversation.java561 * 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,
912 // Replace the snippet with a default value if it's empty.
913 String snippet = MessageUtils.cleanseMmsSubject(context,
915 if (TextUtils.isEmpty(snippet)) {
916 snippet = context.getString(R.string.no_subject_view);
918 conv.mSnippet = snippet;
1315 String snippet = MessageUtils.extractEncStrFromCursor(c, SNIPPET, SNIPPET_CS);
1319 " " + ThreadsColumns.SNIPPET + " : " + snippet
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/
H A DContactHeaderWidget.java405 * Manually set the social snippet text to display in the header. This doesn't change the
408 public void setSocialSnippet(CharSequence snippet) { argument
409 if (snippet == null) {
413 mStatusView.setText(snippet);
/packages/apps/Mms/src/com/android/mms/ui/
H A DSearchActivity.java55 * 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);
/packages/apps/Email/src/com/android/email/provider/
H A DUtilities.java126 localMessage.mSnippet = data.snippet;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationUtils.java1456 * @param snippet Snippet of the new message that triggered the notification
1461 String senders, String subject, String snippet) {
1464 final String subjectSnippet = !TextUtils.isEmpty(subject) ? subject : snippet;
1470 // If the senders are empty, just use the subject/snippet.
1473 // If the subject/snippet is empty, just use the senders.
1539 final String snippet = getMessageBodyWithoutElidedText(message);
1543 !TextUtils.isEmpty(snippet) ? snippet.replaceAll("\\n\\s+", "\n") : "";
1546 // If the subject is empty, just use the snippet.
1547 return snippet;
1460 getSingleMessageInboxLine(Context context, String senders, String subject, String snippet) argument
[all...]
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DEmailSyncParser.java445 msg.mSnippet = data.snippet;
/packages/apps/Settings/src/com/android/settings/applications/
H A DRunningServiceDetails.java518 mSnippet = (ViewGroup)view.findViewById(R.id.snippet);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java4351 public ContentValues createSnippetContentValues(long contactId, String snippet) { argument
4355 values.put(SearchSnippets.SNIPPET, snippet);
4380 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
4382 assertContainsValues(buildFilterUri("cave", true), snippet);
4383 assertContainsValues(buildFilterUri("john", true), snippet);
4392 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
4394 assertContainsValues(buildFilterUri("cave", true), snippet);
4407 ContentValues snippet = createSnippetContentValues(contactId, "aperturepresident");
4409 assertContainsValues(buildFilterUri("aperture", true), snippet);
4418 ContentValues snippet
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java1081 message.snippet = null;

Completed in 466 milliseconds