Home
last modified time | relevance | path

Searched refs:snippet (Results 1 – 19 of 19) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java277 private String shortenSnippet(final String snippet) { in shortenSnippet() argument
278 if (snippet == null) { in shortenSnippet()
283 int to = snippet.length(); in shortenSnippet()
284 int start = snippet.indexOf(SNIPPET_START_MATCH); in shortenSnippet()
289 int firstNl = snippet.lastIndexOf('\n', start); in shortenSnippet()
293 int end = snippet.lastIndexOf(SNIPPET_END_MATCH); in shortenSnippet()
295 int lastNl = snippet.indexOf('\n', end); in shortenSnippet()
303 char c = snippet.charAt(i); in shortenSnippet()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageHeaderView.java451 final String snippet; in render() local
453 snippet = makeSnippet(mMessage.snippet); in render()
455 snippet = mMessage.snippet; in render()
457 mSnippet = snippet == null ? null : getBidiFormatter().unicodeWrap(snippet); in render()
1373 final StringBuilder snippet = new StringBuilder(MAX_SNIPPET_LENGTH); in makeSnippet() local
1378 while ((c = reader.read()) != -1 && snippet.length() < MAX_SNIPPET_LENGTH) { in makeSnippet()
1381 snippet.append(' '); in makeSnippet()
1416 snippet.append(' '); in makeSnippet()
1418 snippet.append('<'); in makeSnippet()
1420 snippet.append('>'); in makeSnippet()
[all …]
DConversationItemViewCoordinates.java339 final TextView snippet = (TextView) view.findViewById(R.id.snippet); in ConversationItemViewCoordinates() local
340 final int snippetTopAdjust = getLatinTopAdjustment(snippet); in ConversationItemViewCoordinates()
341 snippetX = getX(snippet); in ConversationItemViewCoordinates()
342 snippetY = getY(snippet) + snippetTopAdjust; in ConversationItemViewCoordinates()
343 maxSnippetWidth = snippet.getWidth(); in ConversationItemViewCoordinates()
344 snippetHeight = snippet.getHeight(); in ConversationItemViewCoordinates()
345 snippetFontSize = snippet.getTextSize(); in ConversationItemViewCoordinates()
DConversationItemView.java909 final String snippet = mHeader.conversation.getSnippet(); in createSnippet() local
910 final Spannable displayedStringBuilder = new SpannableString(snippet); in createSnippet()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1617 final String snippet = cursor.getString(snippetColumn); in showSnippet() local
1618 if (snippet == null) { in showSnippet()
1624 if (snippet.equals(displayName)) { in showSnippet()
1631 setSnippet(updateSnippet(snippet, query, displayName)); in showSnippet()
1644 String snippet = cursor.getString(summarySnippetColumnIndex); in showSnippet() local
1658 snippet = updateSnippet(snippet, query, displayName); in showSnippet()
1661 if (snippet != null) { in showSnippet()
1663 int to = snippet.length(); in showSnippet()
1664 int start = snippet.indexOf(DefaultContactListAdapter.SNIPPET_START_MATCH); in showSnippet()
1666 snippet = null; in showSnippet()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DConversionUtilities.java56 public String snippet; field in ConversionUtilities.BodyFieldData
87 data.snippet = TextUtilities.makeSnippetFromPlainText(text); in parseBodyFields()
92 if (data.snippet == null) { in parseBodyFields()
93 data.snippet = TextUtilities.makeSnippetFromHtmlText(text); in parseBodyFields()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
DConversationListItemViewTest.java77 final String snippet = (String) cursor.getAt(conversationQueryColumnsSnippetText, index); in verifyContent() local
85 verifyContent(view, name, snippet, timestamp, unread); in verifyContent()
91 final String snippet, in verifyContent() argument
124 assertTrue(snippetTextView.getText().toString().contains(snippet)); in verifyContent()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java91 public String snippet; field in Message
273 dest.writeString(snippet); in writeToParcel()
309 snippet = in.readString(); in Message()
371 snippet = cursor.getString(UIProvider.MESSAGE_SNIPPET_COLUMN); in Message()
466 snippet = data.snippet; in Message()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationListService.java171 remoteViews.setViewVisibility(R.id.snippet, View.GONE); in getViewAt()
200 remoteViews.setViewVisibility(R.id.snippet, View.VISIBLE); in getViewAt()
201 remoteViews.setTextViewText(R.id.snippet, in getViewAt()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetConversationListItemViewBuilder.java150 final String snippet = conversation.getSnippet(); in getStyledView() local
176 final SpannableStringBuilder snippetBuilder = new SpannableStringBuilder(snippet); in getStyledView()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java1450 String senders, String subject, String snippet) { in getSingleMessageInboxLine() argument
1453 final String subjectSnippet = !TextUtils.isEmpty(subject) ? subject : snippet; in getSingleMessageInboxLine()
1528 final String snippet = getMessageBodyWithoutElidedText(message);
1532 !TextUtils.isEmpty(snippet) ? snippet.replaceAll("\\n\\s+", "\n") : "";
1536 return snippet;
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java126 localMessage.mSnippet = data.snippet; in copyOneMessageToProvider()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java5035 public ContentValues createSnippetContentValues(long contactId, String snippet) { in createSnippetContentValues() argument
5039 values.put(SearchSnippets.SNIPPET, snippet); in createSnippetContentValues()
5064 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com"); in testSearchSnippetEmptyForNameInDisplayName() local
5066 assertContainsValues(buildFilterUri("cave", true), snippet); in testSearchSnippetEmptyForNameInDisplayName()
5067 assertContainsValues(buildFilterUri("john", true), snippet); in testSearchSnippetEmptyForNameInDisplayName()
5076 ContentValues snippet = createSnippetContentValues(contactId, "cave@aperturescience.com"); in testSearchSnippetEmptyForNicknameInDisplayName() local
5078 assertContainsValues(buildFilterUri("cave", true), snippet); in testSearchSnippetEmptyForNicknameInDisplayName()
5091 ContentValues snippet = createSnippetContentValues(contactId, "aperturepresident"); in testSearchSnippetEmptyForCompanyInDisplayName() local
5093 assertContainsValues(buildFilterUri("aperture", true), snippet); in testSearchSnippetEmptyForCompanyInDisplayName()
5102 ContentValues snippet = createSnippetContentValues(contactId, "860-555-1234"); in testSearchSnippetEmptyForPhoneInDisplayName() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningServiceDetails.java519 mSnippet = (ViewGroup)view.findViewById(R.id.snippet);
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java519 mSnippet = (ViewGroup)view.findViewById(R.id.snippet);
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java1152 message.snippet = null; in createMessage()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_wordlist.combined.gz