Home
last modified time | relevance | path

Searched refs:getMimeType (Results 1 – 25 of 80) sorted by relevance

1234

/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeUtilityTest.java415 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
421 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
429 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
436 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
446 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
452 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
463 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
471 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html")); in testContentTypeCharset()
DRfc822OutputTests.java138 assertEquals("text/plain", mimeMessage.getMimeType()); in testWriteToText()
179 assertEquals("text/plain", part.getMimeType()); in testWriteToAlternativePart()
181 assertEquals("text/calendar", part.getMimeType()); in testWriteToAlternativePart()
223 assertEquals("text/plain", part.getMimeType()); in testWriteToMixedPart()
225 assertEquals("text/html", part.getMimeType()); in testWriteToMixedPart()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java451 final String selectedMimeType = info.getMimeType();
549 if (!lhs.getMimeType().equals(rhs.getMimeType())) {
551 lhs.getMimeType() + " rhs.getMimeType(): " + rhs.getMimeType());
579 final String lhsMimeType = lhs.getMimeType();
580 final String rhsMimeType = rhs.getMimeType();
1234 final String mimeType = dataItem.getMimeType(); in generateDataModelFromContact()
1298 if (SORTED_ABOUT_CARD_MIMETYPES.contains(topDataItem.getMimeType())) { in generateDataModelFromContact()
1430 dataItem.getMimeType(), dataItem.getId(), dataItem.isSuperPrimary()); in dataItemToEntry()
1436 dataItem.getMimeType(), dataItem.getId(), dataItem.isSuperPrimary()); in dataItemToEntry()
1452 dataItem.getMimeType(), dataItem.getId(), dataItem.isSuperPrimary()); in dataItemToEntry()
[all …]
DDataAction.java78 mMimeType = item.getMimeType(); in DataAction()
233 mIntent.setDataAndType(mDataUri, item.getMimeType()); in DataAction()
259 public String getMimeType() { in getMimeType() method in DataAction
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DEntity.java104 public String getMimeType() { in getMimeType() method in Entity
112 return ContentTypeField.getMimeType(child, parent); in getMimeType()
145 return getMimeType().equalsIgnoreCase(type); in isMimeType()
160 && getMimeType().startsWith(ContentTypeField.TYPE_MULTIPART_PREFIX); in isMultipart()
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java234 if (!StructuredName.CONTENT_ITEM_TYPE.equals(mKindSectionData.getMimeType())) { in isEmptyName()
250 if (!StructuredName.CONTENT_ITEM_TYPE.equals(mKindSectionData.getMimeType()) in getNameEditorView()
258 if (!StructuredName.CONTENT_ITEM_TYPE.equals(mKindSectionData.getMimeType())) { in getPhoneticEditorView()
305 final String mimeType = mKindSectionData.getMimeType(); in rebuildFromState()
435 mKindSectionData.getMimeType()); in updateEmptyEditors()
437 mKindSectionData.getMimeType()); in updateEmptyEditors()
551 final String mimeType = mKindSectionData.getMimeType(); in updateEmptyNonNameEditors()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
DContentTypeField.java95 public String getMimeType() { in getMimeType() method in ContentTypeField
111 public static String getMimeType(ContentTypeField child, in getMimeType() method in ContentTypeField
114 if (child == null || child.getMimeType().length() == 0 in getMimeType()
124 return child.getMimeType(); in getMimeType()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeBodyPart.java93 String contentType = String.format("%s;\n charset=utf-8", getMimeType()); in setBody()
135 public String getMimeType() throws MessagingException { in getMimeType() method in MimeBodyPart
141 return getMimeType().equals(mimeType); in isMimeType()
DMimeUtility.java220 String mimeType = part.getMimeType(); in getTextFromPart()
363 String mimeType = part.getMimeType().toLowerCase(); in collectParts()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeBodyPart.java98 String contentType = String.format("%s;\n charset=utf-8", getMimeType()); in setBody()
140 public String getMimeType() throws MessagingException { in getMimeType() method in MimeBodyPart
146 return getMimeType().equals(mimeType); in isMimeType()
DMimeUtility.java229 String mimeType = part.getMimeType(); in getTextFromPart()
379 String mimeType = part.getMimeType().toLowerCase(); in collectParts()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchiveHandleTest.java259 assertThat(archiveHandle.getMimeType()).isEqualTo("application/x-7z-compressed"); in getMimeType_sevenZFile_shouldBeSevenZ()
269 assertThat(archiveHandle.getMimeType()) in getMimeType_tarBrotli_shouldBeBrotliCompressedTar()
280 assertThat(archiveHandle.getMimeType()) in getMimeType_tarXz_shouldBeXzCompressedTar()
291 assertThat(archiveHandle.getMimeType()) in getMimeType_tarGz_shouldBeCompressedTar()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java119 public String getMimeType() { in getMimeType() method in DataItem
226 return MoreContactUtils.shouldCollapse(getMimeType(), buildDataString(context, mKind), in shouldCollapseWith()
227 t.getMimeType(), t.buildDataString(context, t.getDataKind())); in shouldCollapseWith()
/packages/apps/StorageManager/src/com/android/storagemanager/utils/
DIconProvider.java46 public static String getMimeType(File file) { in getMimeType() method in IconProvider
61 String mimeType = getMimeType(file); in isImageType()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java112 public String getMimeType() { in getMimeType() method in DataItem
239 getMimeType(), in shouldCollapseWith()
241 t.getMimeType(), in shouldCollapseWith()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriSource.java58 private String getMimeType(Uri uri) { in getMimeType() method in UriSource
75 String mimeType = getMimeType(uri); in findPathByUri()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryGridItemData.java47 mimeType = Assert.isNotNull(copyData.getMimeType()); in GalleryGridItemData()
77 public String getMimeType() { in getMimeType() method in GalleryGridItemData
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemBase.java136 String mimeType = (data.getMimeType() == null) ? "" : data.getMimeType(); in generateSignature()
DFilmstripItemData.java88 public String getMimeType() { in getMimeType() method in FilmstripItemData
220 builder.mMimeType = data.getMimeType(); in from()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DBaseItemDragListener.java76 public String getMimeType() { in getMimeType() method in BaseItemDragListener
115 if (desc == null || !desc.hasMimeType(getMimeType())) { in onDragStart()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java75 public static String getMimeType(Uri src) { in getMimeType() method in ImageLoader
137 String mimeType = getMimeType(uri); in getMetadataOrientation()
568 String mimeType = getMimeType(localUri); in getExif()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveHandle.java113 protected String getMimeType() { in getMimeType() method in ArchiveHandle
250 return createCommonArchive(fileInputStream, getMimeType()); in recreateCommonArchive()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java643 .setType(MenuExecutor.getMimeType(type)) in createShareIntent()
665 intent.setDataAndType(current.getContentUri(), current.getMimeType()) in launchTinyPlanet()
687 intent.setDataAndType(current.getContentUri(), current.getMimeType()) in launchPhotoEditor()
709 intent.setDataAndType(current.getContentUri(), current.getMimeType()) in launchSimpleEditor()
1049 intent.setDataAndType(manager.getContentUri(path), current.getMimeType()) in onItemSelected()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java559 if (!message.getMimeType().startsWith("multipart/")) { in getMessageOrNull()
569 String bodyPartMimeType = bodyPart.getMimeType().toLowerCase(); in getMessageOrNull()
619 String bodyPartMimeType = bodyPart.getMimeType().toLowerCase(); in getVoicemailPayloadFromMessage()
/packages/apps/Gallery/src/com/android/camera/
DUtil.java427 intent.setDataAndType(u, image.getMimeType()); in createSetAsIntent()
428 intent.putExtra("mimeType", image.getMimeType()); in createSetAsIntent()

1234