Home
last modified time | relevance | path

Searched refs:mMimeType (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Gallery3D/src/com/cooliris/media/
DMediaItem.java46 public String mMimeType; field in MediaItem
123 … mMediaType = (mMimeType != null && mMimeType.startsWith(VIDEO)) ? MediaItem.MEDIA_TYPE_VIDEO in getMediaType()
134 if (mDisplayMimeType == null && mMimeType != null) { in getDisplayMimeType()
135 int slashPos = mMimeType.indexOf('/'); in getDisplayMimeType()
136 if (slashPos != -1 && slashPos + 1 < mMimeType.length()) { in getDisplayMimeType()
137 mDisplayMimeType = mMimeType.substring(slashPos + 1).toUpperCase(); in getDisplayMimeType()
139 mDisplayMimeType = mMimeType.toUpperCase(); in getDisplayMimeType()
DMediaItemTexture.java65 if (item.mMimeType != null && item.mMimeType.contains("video")) { in computeCache()
83 if (mItem.mParentMediaSet == null || mItem.mMimeType == null) in isUncachedVideo()
85 … if (mItem.mParentMediaSet.mPicasaAlbumId == Shared.INVALID && mItem.mMimeType.contains("video")) { in isUncachedVideo()
130 if (item.mMimeType != null && item.mMimeType.contains("video")) { in load()
DUtils.java53 intent.setDataAndType(Uri.parse(item.mContentUri), item.mMimeType); in playVideo()
DPicasaDataSource.java174 item.mMimeType = photo.contentType; in addItemsToFeed()
DHudLayer.java359 … Intent intent = Util.createSetAsIntent(Uri.parse(item.mContentUri), item.mMimeType); in buildMoreOptions()
710 mimeType = item.mMimeType; in updateShareMenu()
DCropImage.java138 connection.scanFile(path, item.mMimeType); in launchCropperOrFinish()
/packages/apps/Gallery/src/com/android/camera/gallery/
DBaseImage.java49 protected String mMimeType; field in BaseImage
67 mMimeType = mimeType; in BaseImage()
133 return mMimeType; in getMimeType()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java81 public String mMimeType; field in DownloadThread.State
90 mMimeType = sanitizeMimeType(info.mMimeType); in State()
203 state.mNewUri, state.mMimeType); in run()
339 return DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING.equalsIgnoreCase(state.mMimeType); in isDrmFile()
355 state.mMimeType = item.getType(); in transferToDrm()
548 state.mMimeType, in processResponseHeaders()
581 if (state.mMimeType != null) { in updateDatabaseFromHeaders()
582 values.put(Downloads.Impl.COLUMN_MIME_TYPE, state.mMimeType); in updateDatabaseFromHeaders()
601 if (state.mMimeType == null) { in readResponseHeaders()
604 state.mMimeType = sanitizeMimeType(header.getValue()); in readResponseHeaders()
[all …]
DDownloadInfo.java69 info.mMimeType = getString(info.mMimeType, Downloads.Impl.COLUMN_MIME_TYPE); in updateFromDatabase()
218 public String mMimeType; field in DownloadInfo
500 Log.v(Constants.TAG, "MIMETYPE: " + mMimeType); in logVerboseInfo()
549 && !DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING.equalsIgnoreCase(mMimeType); in shouldScanFile()
DDownloadService.java372 info.mMimeType); in run()
382 info.mMimeType); in run()
577 final String mimeType = info.mMimeType; in scanFile()
580 mMediaScannerService.requestScanFile(info.mFileName, info.mMimeType, in scanFile()
/packages/apps/Email/tests/src/com/android/email/provider/
DAttachmentProviderTests.java221 newAttachment2.mMimeType = "image/jpg"; in testGetType()
226 newAttachment3.mMimeType = "text/plain"; in testGetType()
231 newAttachment4.mMimeType = "application/octet-stream"; in testGetType()
236 newAttachment5.mMimeType = "application/octet-stream"; in testGetType()
241 newAttachment6.mMimeType = ""; in testGetType()
368 newAttachment2.mMimeType = "image/png"; in testOpenFile()
431 newAttachment2.mMimeType = "image/png"; in testOpenThumbnail()
646 cv.put("mime_type", newAttachment.mMimeType); in addAttachmentToDb()
DProviderTestUtils.java200 att.mMimeType = "mimeType " + fileName; in setupAttachment()
365 assertEquals(caller + " mMimeType", expect.mMimeType, actual.mMimeType); in assertAttachmentEqual()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DRfc822OutputTests.java189 att.mMimeType = "text/calendar"; in testWriteToAlternativePart()
233 att.mMimeType = "text/html"; in testWriteToMixedPart()
DSmtpSenderUnitTests.java307 attachment.mMimeType = "image/jpg"; in setupSimpleAttachment()
333 mockTransport.expect("Content-Type: " + attachment.mMimeType + ";"); in expectSimpleAttachment()
/packages/apps/Email/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java278 assertEquals("text/calendar; method=REPLY", att.mMimeType); in testCreateMessageForEntity_Reply()
317 assertEquals("text/calendar; method=REQUEST", att.mMimeType); in testCreateMessageForEntity_Invite_AllDay()
379 assertEquals("text/calendar; method=REQUEST", att.mMimeType); in testCreateMessageForEntity_Invite()
445 assertEquals("text/calendar; method=REQUEST", att.mMimeType); in testCreateMessageForEntity_Recurring()
527 assertEquals("text/calendar; method=CANCEL", att.mMimeType); in testCreateMessageForEntity_Exception_Cancel()
/packages/apps/Contacts/src/com/android/contacts/ui/
DQuickContactWindow.java741 private final String mMimeType; field in QuickContactWindow.DataAction
758 mMimeType = mimeType; in DataAction()
881 return mMimeType; in getMimeType()
936 if (!ContactsUtils.shouldCollapse(mContext, mMimeType, mBody, other.mMimeType, in shouldCollapseWith()
940 if (!TextUtils.equals(mMimeType, other.mMimeType) in shouldCollapseWith()
/packages/apps/Email/src/com/android/email/
DLegacyConversions.java363 localAttachment.mMimeType = part.getMimeType(); in addOneAttachment()
390 if (stringNotEqual(dbAttachment.mMimeType, localAttachment.mMimeType)) continue; in addOneAttachment()
/packages/apps/Email/src/com/android/email/provider/
DEmailContent.java1662 public String mMimeType; field in EmailContent.Attachment
1787 mMimeType = cursor.getString(CONTENT_MIME_TYPE_COLUMN); in restore()
1804 values.put(AttachmentColumns.MIME_TYPE, mMimeType); in toContentValues()
1825 dest.writeString(mMimeType); in writeToParcel()
1846 mMimeType = in.readString(); in Attachment()
1877 return "[" + mFileName + ", " + mMimeType + ", " + mSize + ", " + mContentId + ", " in toString()
/packages/apps/Email/src/com/android/email/mail/transport/
DRfc822Output.java221 attachment.mMimeType + ";\n name=\"" + attachment.mFileName + "\""); in writeOneAttachment()
/packages/apps/Gallery3D/src/com/cooliris/cache/
DCacheService.java333 item.mMimeType = Utils.readUTF(dis); in loadMediaItemsIntoMediaFeed()
406 item.mMimeType = cursor.getString(CacheService.MEDIA_MIME_TYPE_INDEX); in populateMediaItemFromCursor()
1206 Utils.writeUTF(dos, item.mMimeType); in writeItemsForASet()
/packages/apps/Email/src/com/android/email/activity/
DMessageCompose.java1078 attachment.mMimeType = contentType; in loadAttachmentInfo()
1325 if (MimeUtility.mimeTypeMatches(attachment.mMimeType, in initFromIntent()
DMessageView.java1008 AttachmentProvider.inferMimeType(attachment.mFileName, attachment.mMimeType); in addAttachment()
/packages/apps/Email/src/com/android/exchange/adapter/
DEmailSyncAdapter.java371 att.mMimeType = getMimeTypeFromFileName(fileName); in attachmentParser()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java1745 long mMimeType; in upgradeStructuredNamesToVersion205() local
1747 mMimeType = DatabaseUtils.longForQuery(db, in upgradeStructuredNamesToVersion205()
1769 DataColumns.MIMETYPE_ID + "=" + mMimeType, null, null, null, null); in upgradeStructuredNamesToVersion205()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java428 assertEquals(tag, expected.getMimeType(), actual.mMimeType); in checkAttachment()

12