Searched defs:snippet (Results 1 - 9 of 9) 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/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/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/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/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/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/Contacts/src/com/android/contacts/list/
H A DContactListItemView.java1118 * name and search snippet. This will disable the mask highlighting for names.
1389 * Adds or updates a text view for the search snippet.
1410 * Returns the text view for the search snippet, creating it if necessary.
1612 * Shows search snippet for email and phone number matches.
1617 // number since we normalize it before querying CP2 but the snippet will fail since
1619 final String snippet = cursor.getString(snippetColumn);
1620 if (snippet == null) {
1626 if (snippet.equals(displayName)) {
1627 // If the snippet exactly matches the display name (i.e. the phone number or email
1628 // address is being used as the display name) then no snippet i
1707 updateSnippet(String snippet, String query, String displayName) argument
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DContactListItemView.java944 * snippet. This will disable the mask highlighting for names.
1103 /** Adds or updates a text view for the search snippet. */
1121 /** Returns the text view for the search snippet, creating it if necessary. */
1274 /** Shows search snippet. */
1282 String snippet = cursor.getString(summarySnippetColumnIndex);
1296 snippet = updateSnippet(snippet, query, displayName);
1299 if (snippet != null) {
1301 int to = snippet.length();
1302 int start = snippet
1342 updateSnippet(String snippet, String query, String displayName) argument
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java5157 public ContentValues createSnippetContentValues(long contactId, String snippet) { argument
5161 values.put(SearchSnippets.SNIPPET, snippet);
5186 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
5188 assertContainsValues(buildFilterUri("cave", true), snippet);
5189 assertContainsValues(buildFilterUri("john", true), snippet);
5198 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com");
5200 assertContainsValues(buildFilterUri("cave", true), snippet);
5213 ContentValues snippet = createSnippetContentValues(contactId, "aperturepresident");
5215 assertContainsValues(buildFilterUri("aperture", true), snippet);
5224 ContentValues snippet
[all...]

Completed in 322 milliseconds