Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java106 private String mContentType; field in MessagePartData
162 mContentType = contentType; in MessagePartData()
243 mContentType = cursor.getString(INDEX_CONTENT_TYPE); in bind()
254 values.put(PartColumns.CONTENT_TYPE, mContentType); in populate()
279 if (mContentType != null) { in getInsertStatement()
280 insert.bindString(INDEX_CONTENT_TYPE, mContentType); in getInsertStatement()
309 return ContentType.isTextType(mContentType); in isText()
313 return ContentType.isImageType(mContentType); in isImage()
317 return ContentType.isMediaType(mContentType); in isMedia()
321 return ContentType.isVCardType(mContentType); in isVCard()
[all …]
DGalleryGridItemData.java65 private String mContentType; field in GalleryGridItemData
79 mContentType = null; in bind()
81 mContentType = cursor.getString(INDEX_MIME_TYPE); in bind()
85 if (ContentType.isAudioType(mContentType)) { in bind()
101 if (ContentType.isVideoType(mContentType)) { in bind()
128 return ContentType.isAudioType(mContentType) ? mAudioUri : mImageData.uri; in getImageUri()
137 return ContentType.isAudioType(mContentType) in constructMessagePartData()
138 ? new MediaPickerMessagePartData(startRect, mContentType, mAudioUri, 0, 0) in constructMessagePartData()
139 : new MediaPickerMessagePartData(startRect, mContentType, mImageData.uri, in constructMessagePartData()
151 return mContentType; in getContentType()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java37 public String mContentType = null; /* The mime type, e.g. text/plain */ field in BluetoothMapbMessageMime.MimePart
83 if (mContentType != null) { in encode()
84 sb.append("Content-Type: ").append(mContentType); in encode()
104 if (mContentType != null && (mContentType.toUpperCase().contains("TEXT") in encode()
105 || mContentType.toUpperCase().contains("SMIL"))) { in encode()
128 if (mContentType != null && mContentType.toUpperCase().contains("TEXT")) { in encodePlainText()
134 } else if (mContentType != null && mContentType.toUpperCase().contains("/SMIL")) { in encodePlainText()
157 private String mContentType = null; field in BluetoothMapbMessageMime
186 if (part.mContentType.toUpperCase().contains("TEXT")) { in getMessageAsText()
324 this.mContentType = contentType; in setContentType()
[all …]
DBluetoothMapContentObserver.java3014 if (part.mContentType != null && part.mContentType.toUpperCase() in pushMmsToFolder()
3056 } else if (part.mContentType != null && part.mContentType.toUpperCase() in pushMmsToFolder()
3092 Log.v(TAG, "Added part with content-type: " + part.mContentType in pushMmsToFolder()
3135 if (part.mContentType != null) { in writeMmsDataPart()
3136 values.put(Mms.Part.CONTENT_TYPE, part.mContentType); in writeMmsDataPart()
DBluetoothMapContent.java3842 part.mContentType = contentType; in extractMmsParts()
3859 if (!part.mContentType.toUpperCase().contains("TEXT") in extractMmsParts()
3874 part.mContentType = "text"; in extractMmsParts()
4291 part.mContentType = "text/plain"; in getIMMessage()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java579 public String mContentType; field in DatabaseMessages.MmsPart
597 mContentType = cursor.getString(INDEX_CONTENT_TYPE); in load()
608 if (ContentType.isImageType(mContentType)) { in load()
610 } else if (ContentType.isVideoType(mContentType)) { in load()
700 mContentType = opt.outMimeType; in loadImage()
703 if (TextUtils.isEmpty(mContentType)) { in loadImage()
706 mContentType = extractContentType(context, uri); in loadImage()
740 mContentType = in loadVideo()
787 return ContentType.TEXT_PLAIN.equals(mContentType) in isEmbeddedTextType()
788 || ContentType.APP_SMIL.equals(mContentType) in isEmbeddedTextType()
[all …]
DMmsUtils.java1404 public String mContentType; field in MmsUtils.AttachmentInfo
1755 messagePart = MessagePartData.createMediaMessagePart(part.mContentType, in createMmsMessagePart()
/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/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormat.java41 private final String mContentType; field in BipAttachmentFormat
79 mContentType = contentType; in BipAttachmentFormat()
103 mContentType = Objects.requireNonNull(contentType, "Content-Type cannot be null"); in BipAttachmentFormat()
122 return mContentType; in getContentType()
163 sb.append(" content-type=\"" + mContentType + "\""); in toString()
/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java155 protected String mContentType; field in ShortcutIntentBuilder.LoadingAsyncTask
167 mContentType = mContext.getContentResolver().getType(mUri); in doInBackground()
218 createContactShortcutIntent(mUri, mContentType, mDisplayName, mLookupKey, mBitmapData); in onPostExecute()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java409 private final String mContentType; field in ImageUtils.ImageResizer
465 mContentType = contentType; in ImageResizer()
474 return ImageUtils.isGif(mContentType, mUri) ? resizeGifImage() : resizeStaticImage(); in resize()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java153 body.mContentType = "text/plain"; in testPushGroupMMS()