Searched refs:snippet (Results 1 - 16 of 16) 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.java277 private String shortenSnippet(final String snippet) { argument
278 if (snippet == null) {
283 int to = snippet.length();
284 int start = snippet.indexOf(SNIPPET_START_MATCH);
289 int firstNl = snippet.lastIndexOf('\n', start);
293 int end = snippet.lastIndexOf(SNIPPET_END_MATCH);
295 int lastNl = snippet.indexOf('\n', end);
303 char c = snippet.charAt(i);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemViewCoordinates.java339 final TextView snippet = (TextView) view.findViewById(R.id.snippet);
340 final int snippetTopAdjust = getLatinTopAdjustment(snippet);
341 snippetX = getX(snippet);
342 snippetY = getY(snippet) + snippetTopAdjust;
343 maxSnippetWidth = snippet.getWidth();
344 snippetHeight = snippet.getHeight();
345 snippetFontSize = snippet.getTextSize();
H A DMessageHeaderView.java451 final String snippet;
453 snippet = makeSnippet(mMessage.snippet);
455 snippet = mMessage.snippet;
457 mSnippet = snippet == null ? null : getBidiFormatter().unicodeWrap(snippet);
1360 * Returns a short plaintext snippet generated from the given HTML message
1362 * everything in between, and truncates the snippet to no more than 100
1365 * @return Short plaintext snippet
[all...]
H A DConversationItemView.java909 final String snippet = mHeader.conversation.getSnippet();
910 final Spannable displayedStringBuilder = new SpannableString(snippet);
912 // measure the width of the folders which overlap the snippet view
915 // size the snippet view by subtracting the folder width from the maximum snippet width
1327 // in RTL layouts we move the snippet to the right so it doesn't overlap the folders
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
H A DConversationListItemViewTest.java82 final String snippet = (String) cursor.getAt(conversationQueryColumnsSnippetText, index);
90 verifyContent(view, name, snippet, timestamp, unread);
96 final String snippet,
129 assertTrue(snippetTextView.getText().toString().contains(snippet));
93 verifyContent( final ConversationListItemView view, final String conversationName, final String snippet, final String timestamp, final boolean unread) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListItemView.java1030 * name and search snippet. This will disable the mask highlighting for names.
1267 * Adds or updates a text view for the search snippet.
1288 * Returns the text view for the search snippet, creating it if necessary.
1483 * Shows search snippet for email and phone number matches.
1488 // number since we normalize it before querying CP2 but the snippet will fail since
1490 final String snippet = cursor.getString(snippetColumn);
1491 if (snippet == null) {
1497 if (snippet.equals(displayName)) {
1498 // If the snippet exactly matches the display name (i.e. the phone number or email
1499 // address is being used as the display name) then no snippet i
1578 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
273 dest.writeString(snippet);
309 snippet = in.readString();
371 snippet = cursor.getString(UIProvider.MESSAGE_SNIPPET_COLUMN);
458 // body values (snippet/bodyText/bodyHtml)
466 snippet = data.snippet;
/packages/apps/Messaging/src/com/android/messaging/widget/
H A DWidgetConversationListService.java171 remoteViews.setViewVisibility(R.id.snippet, View.GONE);
200 remoteViews.setViewVisibility(R.id.snippet, View.VISIBLE);
201 remoteViews.setTextViewText(R.id.snippet,
221 // Use the attachment type as a snippet so the preview doesn't look odd
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetConversationListItemViewBuilder.java150 final String snippet = conversation.getSnippet();
176 final SpannableStringBuilder snippetBuilder = new SpannableStringBuilder(snippet);
/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/Email/provider_src/com/android/email/provider/
H A DUtilities.java126 localMessage.mSnippet = data.snippet;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationUtils.java1445 * @param snippet Snippet of the new message that triggered the notification
1450 String senders, String subject, String snippet) {
1453 final String subjectSnippet = !TextUtils.isEmpty(subject) ? subject : snippet;
1459 // If the senders are empty, just use the subject/snippet.
1462 // If the subject/snippet is empty, just use the senders.
1528 final String snippet = getMessageBodyWithoutElidedText(message);
1532 !TextUtils.isEmpty(snippet) ? snippet.replaceAll("\\n\\s+", "\n") : "";
1535 // If the subject is empty, just use the snippet.
1536 return snippet;
1449 getSingleMessageInboxLine(Context context, String senders, String subject, String snippet) argument
[all...]
/packages/apps/Settings/src/com/android/settings/applications/
H A DRunningServiceDetails.java519 mSnippet = (ViewGroup)view.findViewById(R.id.snippet);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java5089 public ContentValues createSnippetContentValues(long contactId, String snippet) { argument
5093 values.put(SearchSnippets.SNIPPET, snippet);
5118 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
5120 assertContainsValues(buildFilterUri("cave", true), snippet);
5121 assertContainsValues(buildFilterUri("john", true), snippet);
5130 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
5132 assertContainsValues(buildFilterUri("cave", true), snippet);
5145 ContentValues snippet = createSnippetContentValues(contactId, "aperturepresident");
5147 assertContainsValues(buildFilterUri("aperture", true), snippet);
5156 ContentValues snippet
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java1132 message.snippet = null;

Completed in 743 milliseconds