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

/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
H A DConversionUtilities.java66 public String snippet; field in class:ConversionUtilities.BodyFieldData
124 data.snippet = TextUtilities.makeSnippetFromPlainText(text);
129 if (data.snippet == null) {
130 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/UnifiedEmail/src/com/android/mail/providers/
H A DConversation.java71 public String snippet; field in class:Conversation
217 dest.writeString(snippet);
250 snippet = in.readString();
356 snippet = cursor.getString(UIProvider.CONVERSATION_SNIPPET_COLUMN);
404 snippet = other.snippet;
419 public static Conversation create(long id, Uri uri, String subject, long dateMs, String snippet, argument
433 conversation.snippet = snippet;
640 * Get the snippet fo
719 getSubjectAndSnippetForDisplay(Context context, String filteredSubject, String snippet) argument
[all...]
H A DMessage.java84 public String snippet; field in class:Message
231 dest.writeString(snippet);
265 snippet = in.readString();
325 snippet = cursor.getString(UIProvider.MESSAGE_SNIPPET_COLUMN);
392 // body values (snippet/bodyText/bodyHtml)
401 snippet = data.snippet;
/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/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListItemView.java876 * name and search snippet. This will disable the mask highlighting for names.
1084 * Adds or updates a text view for the search snippet.
1098 * Returns the text view for the search snippet, creating it if necessary.
1290 * Shows search snippet.
1298 String snippet = cursor.getString(summarySnippetColumnIndex);
1312 snippet = updateSnippet(snippet, query, displayName);
1315 if (snippet != null) {
1317 int to = snippet.length();
1318 int start = snippet
1359 updateSnippet(String snippet, String query, String displayName) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageHeaderView.java456 mSnippet = makeSnippet(mMessage.snippet);
458 mSnippet = mMessage.snippet;
1407 * Returns a short plaintext snippet generated from the given HTML message
1409 * everything in between, and truncates the snippet to no more than 100
1412 * @return Short plaintext snippet
1420 final StringBuilder snippet = new StringBuilder(MAX_SNIPPET_LENGTH);
1425 while ((c = reader.read()) != -1 && snippet.length() < MAX_SNIPPET_LENGTH) {
1428 snippet.append(' ');
1463 snippet.append(' ');
1465 snippet
[all...]
H A DConversationItemView.java1057 final String snippet = mHeader.conversation.getSnippet();
1059 Conversation.getSubjectAndSnippetForDisplay(mContext, subject, snippet));
1069 if (!TextUtils.isEmpty(snippet)) {
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetConversationListItemViewBuilder.java154 final String snippet = conversation.getSnippet();
163 Conversation.getSubjectAndSnippetForDisplay(mContext, filteredSubject, 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.java123 localMessage.mSnippet = data.snippet;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationUtils.java829 conversation.snippet);
1093 * @param snippet Snippet of the new message that triggered the notification
1098 String senders, String subject, String snippet) {
1101 final String subjectSnippet = !TextUtils.isEmpty(subject) ? subject : snippet;
1107 // If the senders are empty, just use the subject/snippet.
1110 // If the subject/snippet is empty, just use the senders.
1176 final String snippet = getMessageBodyWithoutElidedText(message);
1180 !TextUtils.isEmpty(snippet) ? snippet.replaceAll("\\n\\s+", "\n") : "";
1183 // If the subject is empty, just use the snippet
1097 getSingleMessageInboxLine(Context context, String senders, String subject, String snippet) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailDisplayUtils.java226 * Set the social snippet text. If there isn't one, then set the view to gone.
234 CharSequence snippet = null;
236 setDataOrHideIfNone(snippet, statusView);
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DEmailSyncParser.java433 msg.mSnippet = data.snippet;
H A DEmailSyncAdapter.java817 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.java3838 public ContentValues createSnippetContentValues(long contactId, String snippet) { argument
3842 values.put(SearchSnippetColumns.SNIPPET, snippet);
3867 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
3869 assertContainsValues(buildFilterUri("cave", true), snippet);
3870 assertContainsValues(buildFilterUri("john", true), snippet);
3879 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
3881 assertContainsValues(buildFilterUri("cave", true), snippet);
3894 ContentValues snippet = createSnippetContentValues(contactId, "aperturepresident");
3896 assertContainsValues(buildFilterUri("aperture", true), snippet);
3905 ContentValues snippet
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java918 message.snippet = null;

Completed in 406 milliseconds