Home
last modified time | relevance | path

Searched refs:mContentType (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMms.java36 public String mContentType = null; /* The mime type, e.g. text/plain */ field in BluetoothMapbMessageMms.MimePart
78 if(mContentType != null) in encode()
79 sb.append("Content-Type: ").append(mContentType); in encode()
93 if(mContentType != null && in encode()
94 (mContentType.toUpperCase().contains("TEXT") || in encode()
95 mContentType.toUpperCase().contains("SMIL") )) { in encode()
110 if(mContentType != null && mContentType.toUpperCase().contains("TEXT")) { in encodePlainText()
112 } else if(mContentType != null && mContentType.toUpperCase().contains("/SMIL")) { in encodePlainText()
162 if(part.mContentType.toUpperCase().contains("TEXT")) { in getMessageAsText()
287 if(part.mContentType != null && in updateCharset()
[all …]
DBluetoothMapContentObserver.java1470 … if(part.mContentType != null && part.mContentType.toUpperCase().contains("TEXT")) { in pushMmsToFolder()
1509 … } else if (part.mContentType != null && part.mContentType.toUpperCase().contains("SMIL")){ in pushMmsToFolder()
1539 …if (V) Log.v(TAG, "Added part with content-type: "+ part.mContentType + " to Uri: " + uri.toString… in pushMmsToFolder()
1579 if(part.mContentType != null) { in writeMmsDataPart()
1580 values.put(Mms.Part.CONTENT_TYPE, part.mContentType); in writeMmsDataPart()
DBluetoothMapContent.java1787 part.mContentType = contentType; in extractMmsParts()
/packages/apps/Mms/src/com/android/mms/model/
DVideoModel.java86 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension); in initFromFile()
93 + " mContentType=" + mContentType in initFromFile()
115 mContentType = c.getString(c.getColumnIndexOrThrow( in initFromContentUri()
118 mContentType = c.getString(c.getColumnIndexOrThrow( in initFromContentUri()
121 if (TextUtils.isEmpty(mContentType)) { in initFromContentUri()
125 if (mContentType.equals(ContentType.VIDEO_MP4) && !(TextUtils.isEmpty(mSrc))) { in initFromContentUri()
134 mContentType = ContentType.VIDEO_3GPP; in initFromContentUri()
147 + " mContentType=" + mContentType in initFromContentUri()
197 cr.checkVideoContentType(mContentType); in checkContentRestriction()
DAudioModel.java73 mContentType = c.getString(c.getColumnIndexOrThrow(Part.CONTENT_TYPE)); in initModelFromUri()
76 mContentType = c.getString(c.getColumnIndexOrThrow( in initModelFromUri()
92 if (TextUtils.isEmpty(mContentType)) { in initModelFromUri()
99 + " mContentType=" + mContentType in initModelFromUri()
152 cr.checkAudioContentType(mContentType); in checkContentRestriction()
DImageModel.java88 mContentType = uriImage.getContentType(); in initModelFromUri()
89 if (TextUtils.isEmpty(mContentType)) { in initModelFromUri()
99 + " mContentType=" + mContentType in initModelFromUri()
136 cr.checkImageContentType(mContentType); in checkContentRestriction()
235 mContentType = new String(part.getContentType()); in resizeMedia()
DMediaModel.java50 protected String mContentType; field in MediaModel
71 mContentType = contentType; in MediaModel()
86 mContentType = contentType; in MediaModel()
127 return mContentType; in getContentType()
DSlideshowModel.java181 if (ContentType.isVideoType(media.mContentType) in createFromPduBody()
183 || ContentType.isAudioType(media.mContentType) in createFromPduBody()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java50 private final String mContentType; field in UriImage
66 mContentType = contentType; in UriImage()
99 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) { in openOrDownloadInner()
122 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) { in openOrDownloadInner()
216 if (BitmapUtils.isSupportedByRegionDecoder(mContentType)) { in getSupportedOperations()
257 if (mContentType != null) { in getDetails()
258 details.addDetail(MediaDetails.INDEX_MIMETYPE, mContentType); in getDetails()
270 return mContentType; in getMimeType()
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java78 public final String mContentType; field in AttachmentInfo
103 this(context, info.mId, info.mSize, info.mName, info.mContentType, info.mAccountKey, in AttachmentInfo()
110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType); in AttachmentInfo()
126 if ((!MimeUtility.mimeTypeMatches(mContentType, in AttachmentInfo()
128 (MimeUtility.mimeTypeMatches(mContentType, in AttachmentInfo()
203 intent.setDataAndType(contentUri, mContentType); in getAttachmentIntent()
247 return "{Attachment " + mId + ":" + mName + "," + mContentType + "," + mSize + "}"; in toString()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java61 private String mContentType; field in UriImage
102 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension); in initFromFile()
147 mContentType = c.getString( in initFromContentUri()
152 mContentType = c.getString( in initFromContentUri()
156 mContentType = c.getString(c.getColumnIndexOrThrow("mimetype")); in initFromContentUri()
158 mContentType = resolver.getType(uri); in initFromContentUri()
159 Log.v(TAG, "initFromContentUri: " + uri + ", getType => " + mContentType); in initFromContentUri()
214 return mContentType; in getContentType()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppsCustomizePagedView.java158 private ContentType mContentType = ContentType.Applications; field in AppsCustomizePagedView
281 if (mContentType == ContentType.Applications) { in getMiddleComponentIndexOnCurrentPage()
289 } else if (mContentType == ContentType.Widgets) { in getMiddleComponentIndexOnCurrentPage()
881 if (mContentType != type || type == ContentType.Widgets) { in setContentType()
882 int page = (mContentType != type) ? 0 : getCurrentPage(); in setContentType()
883 mContentType = type; in setContentType()
889 return mContentType; in getContentType()
1282 if (mContentType == ContentType.Applications) { in syncPages()
1289 } else if (mContentType == ContentType.Widgets) { in syncPages()
1306 if (mContentType == ContentType.Widgets) { in syncPageItems()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMultipart.java32 protected String mContentType; field in MimeMultipart
44 this.mContentType = contentType; in MimeMultipart()
77 return mContentType; in getContentType()
82 mContentType = String.format("multipart/%s; boundary=\"%s\"", subType, mBoundary); in setSubType()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java108 private final String mContentType; field in MessageTestUtils.MultipartBuilder
127 mContentType = mimeType + "; boundary=" + boundary; in MultipartBuilder()
148 final MimeMultipart mp = new MimeMultipart(mContentType); in build()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DShortcutIntentBuilder.java149 protected String mContentType; field in ShortcutIntentBuilder.LoadingAsyncTask
161 mContentType = mContext.getContentResolver().getType(mUri); in doInBackground()
212 createContactShortcutIntent(mUri, mContentType, mDisplayName, mLookupKey, mBitmapData); in onPostExecute()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DMultipart.java26 protected String mContentType; field in Multipart
41 return mContentType; in getContentType()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapbMessageTest.java472 part.mContentType ="dsfajfdlk/text/asdfafda"; in testMmsEncodeText()
483 part.mContentType = "dsfajfdlk/image/asdfafda"; in testMmsEncodeText()