Searched refs:mContentType (Results 1 - 18 of 18) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DMultipart.java26 protected String mContentType; field in class:Multipart
41 return mContentType;
/packages/apps/Mms/src/com/android/mms/model/
H A DVideoModel.java86 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension);
87 // It's ok if mContentType is null. Eventually we'll show a toast telling the
93 + " mContentType=" + mContentType
115 mContentType = c.getString(c.getColumnIndexOrThrow(
118 mContentType = c.getString(c.getColumnIndexOrThrow(
121 if (TextUtils.isEmpty(mContentType)) {
125 if (mContentType.equals(ContentType.VIDEO_MP4) && !(TextUtils.isEmpty(mSrc))) {
134 mContentType = ContentType.VIDEO_3GPP;
147 + " mContentType
[all...]
H A DAudioModel.java73 mContentType = c.getString(c.getColumnIndexOrThrow(Part.CONTENT_TYPE));
76 mContentType = c.getString(c.getColumnIndexOrThrow(
92 if (TextUtils.isEmpty(mContentType)) {
99 + " mContentType=" + mContentType
152 cr.checkAudioContentType(mContentType);
H A DImageModel.java88 mContentType = uriImage.getContentType();
89 if (TextUtils.isEmpty(mContentType)) {
99 + " mContentType=" + mContentType
136 cr.checkImageContentType(mContentType);
235 mContentType = new String(part.getContentType());
H A DMediaModel.java50 protected String mContentType; field in class:MediaModel
71 mContentType = contentType;
86 mContentType = contentType;
127 return mContentType;
H A DSlideshowModel.java181 if (ContentType.isVideoType(media.mContentType)
183 || ContentType.isAudioType(media.mContentType)
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeMultipart.java32 protected String mContentType; field in class:MimeMultipart
44 this.mContentType = contentType;
77 return mContentType;
82 mContentType = String.format("multipart/%s; boundary=\"%s\"", subType, mBoundary);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriImage.java50 private final String mContentType; field in class:UriImage
66 mContentType = contentType;
99 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) {
122 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) {
216 if (BitmapUtils.isSupportedByRegionDecoder(mContentType)) {
257 if (mContentType != null) {
258 details.addDetail(MediaDetails.INDEX_MIMETYPE, mContentType);
270 return mContentType;
/packages/apps/Email/src/com/android/email/
H A DAttachmentInfo.java78 public final String mContentType; field in class:AttachmentInfo
103 this(context, info.mId, info.mSize, info.mName, info.mContentType, info.mAccountKey,
110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
126 if ((!MimeUtility.mimeTypeMatches(mContentType,
128 (MimeUtility.mimeTypeMatches(mContentType,
203 intent.setDataAndType(contentUri, mContentType);
247 return "{Attachment " + mId + ":" + mName + "," + mContentType + "," + mSize + "}";
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java108 private final String mContentType; field in class:MessageTestUtils.MultipartBuilder
127 mContentType = mimeType + "; boundary=" + boundary;
148 final MimeMultipart mp = new MimeMultipart(mContentType);
/packages/apps/OMA-DM/DMService/src/com/android/omadm/service/
H A DDMHttpConnector.java74 private String mContentType; field in class:DMHttpConnector
108 if (mContentType == null) {
109 mContentType = MIME_TYPE_SYNCML_DM_WBXML;
160 connection.addRequestProperty(CONTENT_TYPE, mContentType);
173 log.logContent(mContentType, requestData);
282 mContentType = type;
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapbMessageMms.java36 public String mContentType = null; /* The mime type, e.g. text/plain */ field in class:BluetoothMapbMessageMms.MimePart
78 if(mContentType != null)
79 sb.append("Content-Type: ").append(mContentType);
93 if(mContentType != null &&
94 (mContentType.toUpperCase().contains("TEXT") ||
95 mContentType.toUpperCase().contains("SMIL") )) {
110 if(mContentType != null && mContentType.toUpperCase().contains("TEXT")) {
112 } else if(mContentType != null && mContentType
[all...]
H A DBluetoothMapContentObserver.java1444 if(part.mContentType != null && part.mContentType.toUpperCase().contains("TEXT")) {
1483 } else if (part.mContentType != null && part.mContentType.toUpperCase().contains("SMIL")){
1513 if (V) Log.v(TAG, "Added part with content-type: "+ part.mContentType + " to Uri: " + uri.toString());
1553 if(part.mContentType != null) {
1554 values.put(Mms.Part.CONTENT_TYPE, part.mContentType);
H A DBluetoothMapContent.java1930 part.mContentType = contentType;
/packages/apps/Mms/src/com/android/mms/ui/
H A DUriImage.java61 private String mContentType; field in class:UriImage
102 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension);
103 // It's ok if mContentType is null. Eventually we'll show a toast telling the
147 mContentType = c.getString(
152 mContentType = c.getString(
156 mContentType = c.getString(c.getColumnIndexOrThrow("mimetype"));
158 mContentType = resolver.getType(uri);
159 Log.v(TAG, "initFromContentUri: " + uri + ", getType => " + mContentType);
214 return mContentType;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DAppsCustomizePagedView.java158 private ContentType mContentType = ContentType.Applications; field in class:AppsCustomizePagedView
281 if (mContentType == ContentType.Applications) {
289 } else if (mContentType == ContentType.Widgets) {
878 if (mContentType != type || type == ContentType.Widgets) {
879 int page = (mContentType != type) ? 0 : getCurrentPage();
880 mContentType = type;
886 return mContentType;
1279 if (mContentType == ContentType.Applications) {
1286 } else if (mContentType == ContentType.Widgets) {
1303 if (mContentType
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DShortcutIntentBuilder.java149 protected String mContentType; field in class:ShortcutIntentBuilder.LoadingAsyncTask
161 mContentType = mContext.getContentResolver().getType(mUri);
212 createContactShortcutIntent(mUri, mContentType, mDisplayName, mLookupKey, mBitmapData);
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DBluetoothMapbMessageTest.java472 part.mContentType ="dsfajfdlk/text/asdfafda";
483 part.mContentType = "dsfajfdlk/image/asdfafda";

Completed in 448 milliseconds