Home
last modified time | relevance | path

Searched refs:getContentType (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeBodyPart.java91 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
94 String name = MimeUtility.getHeaderParameter(getContentType(), "name"); in setBody()
104 public String getContentType() throws MessagingException { in getContentType() method in MimeBodyPart
136 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType()
DMimeMessage.java224 public String getContentType() throws MessagingException { in getContentType() method in MimeMessage
251 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType()
418 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
615 final MimeMultipart multiPart = new MimeMultipart(e.getContentType()); in startMultipart()
DMimeMultipart.java76 public String getContentType() throws MessagingException { in getContentType() method in MimeMultipart
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java213 && mDocInfo.getContentType() == PrintDocumentInfo.CONTENT_TYPE_PHOTO; in isBorderless()
218 if (mDocInfo.getContentType() == PrintDocumentInfo.CONTENT_TYPE_PHOTO) { in getSides()
234 switch (mDocInfo.getContentType()) { in getFillPage()
251 } else if (mDocInfo.getContentType() == PrintDocumentInfo.CONTENT_TYPE_PHOTO in getMediaType()
271 switch (mDocInfo.getContentType()) { in getDocumentCategory()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DServerInterfaceTest.java279 Mockito.when(connection.getContentType()).thenReturn("application/NOPE"); in testReadErrorInvalidContentType()
289 Mockito.when(connection.getContentType()).thenReturn("text"); in testReadTextErrorFromErrorStreamNoErrorData()
301 Mockito.when(connection.getContentType()).thenReturn("text"); in testReadTextErrorFromErrorStream()
323 Mockito.when(connection.getContentType()).thenReturn(contentType); in testReadTextError()
338 Mockito.when(connection.getContentType()).thenReturn("application/json"); in testReadJsonError()
351 Mockito.when(connection.getContentType()).thenReturn("text"); in testReadErrorStreamThrowsException()
362 Mockito.when(connection.getContentType()).thenReturn("text"); in testReadErrorEmptyStream()
379 Mockito.when(connection.getContentType()).thenReturn("text"); in testReadErrorStreamTooLarge()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormat.java122 public String getContentType() { in getContentType() method in BipAttachmentFormat
152 return a.getContentType() == getContentType() in equals()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/
DHttpClient.java146 responseBuilder.setContentType(getContentType(connection)); in getHttpResponse()
184 private static int getContentType(@NonNull URLConnection connection) { in getContentType() method in HttpClient
189 return HttpConstants.getContentType(contentType); in getContentType()
DHttpConstants.java58 public static int getContentType(@NonNull String contentType) { in getContentType() method in HttpConstants
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMmsVideoRecorder.java55 ContentType.getExtension(getContentType())); in MmsVideoRecorder()
123 String getContentType() { in getContentType() method in MmsVideoRecorder
DGalleryGridItemView.java162 final String contentType = mData.getContentType(); in updateImageView()
183 if (ContentType.isVideoType(mData.getContentType())) { in updateImageView()
DGalleryGridView.java91 } else if (ContentType.isMediaType(data.getContentType())) { in onItemClicked()
106 "Selected item has invalid contentType " + data.getContentType()); in onItemClicked()
DDocumentImagePicker.java120 return ImageUtils.getContentType( in prepareDocumentForAttachment()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureTransfer.java323 String contentType = conn.getContentType(); in downloadImageFromConnection()
382 public String getContentType() { in makeUploadPart() method
431 connection.addRequestProperty("Content-Type", multipartEntity.getContentType().getValue());
497 Charset charset = MediaType.parse(connection.getContentType())
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DOmtpMessageReceiver.java138 if (!OmtpConstants.VOICE.equals(message.getContentType())) { in processSync()
141 "Non-voice message of type '" + message.getContentType() + "' received, ignoring"); in processSync()
DSyncMessage.java114 public String getContentType() { in getContentType() method in SyncMessage
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoViewController.java110 final String contentType = adapter.getContentType(cursor); in updateShareActionProvider()
163 Uri.parse(photoUri), adapter.getContentType(cursor)).executeOnThreadPool(); in onOptionsItemSelected()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMultipart.java39 public String getContentType() throws MessagingException { in getContentType() method in Multipart
DPart.java30 public String getContentType() throws MessagingException; in getContentType() method
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java332 public final String getContentType() { in getContentType() method in MessagePartData
519 LogUtil.e(LogUtil.BUGLE_DATAMODEL_TAG, "Unknown attachment type " + getContentType()); in getMinimumSizeInBytesForSending()
529 return getContentType() + " (" + getContentUri() + ")"; in toString()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapbMessageMimeTest.java95 assertThat(mMime.getContentType()).isEqualTo(TEST_CONTENT_TYPE); in testGetters()
189 assertThat(mimeToCreateByParsing.getContentType()).isEqualTo(TEST_CONTENT_TYPE); in testEncode_ThenCreateByParsing_ReturnsCorrectly()
/packages/apps/TV/src/com/android/tv/search/
DLocalSearchProvider.java199 row.add(result.getContentType()); in createSuggestionsCursor()
316 abstract String getContentType(); in getContentType() method in LocalSearchProvider.SearchResult
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActivity.java126 private String getContentType(Intent intent) { in getContentType() method in GalleryActivity
165 String contentType = getContentType(intent); in startViewAction()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormatTest.java61 Assert.assertEquals(contentType, attachment.getContentType()); in testParse()
90 Assert.assertEquals(contentType, attachment.getContentType()); in testCreate()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DRetrieveConf.java80 public byte[] getContentType() { in getContentType() method in RetrieveConf
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DRetrieveConf.java82 public byte[] getContentType() { in getContentType() method in RetrieveConf

123