/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessagePartData.java | 39 import com.android.messaging.util.ContentType; 59 ContentType.IMAGE_JPEG, ContentType.IMAGE_JPG, ContentType.IMAGE_PNG, 60 ContentType.IMAGE_GIF, ContentType.IMAGE_WBMP, ContentType.IMAGE_X_MS_BMP, 62 ContentType.VIDEO_3GP, ContentType.VIDEO_3GPP, ContentType.VIDEO_3G2, 63 ContentType.VIDEO_H263, ContentType.VIDEO_M4V, ContentType.VIDEO_MP4, 64 ContentType.VIDEO_MPEG, ContentType.VIDEO_MPEG4, ContentType.VIDEO_WEBM, 66 ContentType.AUDIO_MP3, ContentType.AUDIO_MP4, ContentType.AUDIO_MIDI, 67 ContentType.AUDIO_MID, ContentType.AUDIO_AMR, ContentType.AUDIO_X_WAV, 68 ContentType.AUDIO_AAC, ContentType.AUDIO_X_MIDI, ContentType.AUDIO_X_MID, 69 ContentType.AUDIO_X_MP3 [all …]
|
D | GalleryGridItemData.java | 31 import com.android.messaging.util.ContentType; 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()
|
D | PendingAttachmentData.java | 24 import com.android.messaging.util.ContentType; 76 Assert.isTrue(ContentType.isMediaType(contentType)); in createPendingAttachmentData() 84 Assert.isTrue(ContentType.isMediaType(contentType)); in createPendingAttachmentData()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/ |
D | HttpConstants.java | 42 public static final class ContentType { class in HttpConstants 43 private ContentType() { in ContentType() method in HttpConstants.ContentType 60 return ContentType.XML; in getContentType() 64 return ContentType.XML; in getContentType() 67 return ContentType.JSON; in getContentType() 69 return ContentType.UNKNOWN; in getContentType()
|
D | HttpResponse.java | 19 import com.android.libraries.entitlement.http.HttpConstants.ContentType; 95 .setContentType(ContentType.UNKNOWN) in builder()
|
D | HttpClient.java | 37 import com.android.server.wifi.entitlement.http.HttpConstants.ContentType; 185 String contentType = connection.getHeaderField(ContentType.NAME); in getContentType() 187 return ContentType.UNKNOWN; in getContentType()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/ |
D | SelectionInteractor.kt | 23 import com.android.intentresolver.contentpreview.payloadtoggle.shared.ContentType 47 val aggregateContentType: Flow<ContentType> = 76 ): ContentType { in aggregateContentType() 78 return ContentType.Other in aggregateContentType() 93 allImages -> ContentType.Image in aggregateContentType() 94 allVideos -> ContentType.Video in aggregateContentType() 95 else -> ContentType.Other in aggregateContentType()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 223 public static class ContentType { class in BluetoothPbapObexServer 495 appParamValue.needTag = ContentType.PHONEBOOK; in onGet() 497 appParamValue.needTag = ContentType.FAVORITES; in onGet() 500 appParamValue.needTag = ContentType.INCOMING_CALL_HISTORY; in onGet() 503 appParamValue.needTag = ContentType.OUTGOING_CALL_HISTORY; in onGet() 506 appParamValue.needTag = ContentType.MISSED_CALL_HISTORY; in onGet() 510 appParamValue.needTag = ContentType.COMBINED_CALL_HISTORY; in onGet() 525 appParamValue.needTag = ContentType.SIM_PHONEBOOK; in onGet() 542 appParamValue.needTag = ContentType.SIM_PHONEBOOK; in onGet() 556 appParamValue.needTag = ContentType.PHONEBOOK; in onGet() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/ui/viewmodel/ |
D | ShareouselViewModel.kt | 28 import com.android.intentresolver.contentpreview.payloadtoggle.shared.ContentType in <lambda>() 94 ContentType.Other -> headlineGenerator.getFilesHeadline(numItems) in <lambda>() 95 ContentType.Image -> headlineGenerator.getImagesHeadline(numItems) in <lambda>() 96 ContentType.Video -> headlineGenerator.getVideosHeadline(numItems) in <lambda>() 122 mimeTypeClassifier.isImageType(key.mimeType) -> ContentType.Image in <lambda>() 123 mimeTypeClassifier.isVideoType(key.mimeType) -> ContentType.Video in <lambda>() 124 else -> ContentType.Other in <lambda>()
|
D | ShareouselPreviewViewModel.kt | 21 import com.android.intentresolver.contentpreview.payloadtoggle.shared.ContentType 30 val contentType: ContentType,
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContentType.java | 22 public final class ContentType { class 101 private ContentType() { in ContentType() method in ContentType 148 return ContentType.isAudioType(contentType) || ContentType.isVideoType(contentType) || in isConversationListPreviewableType() 149 ContentType.isImageType(contentType) || ContentType.isVCardType(contentType); in isConversationListPreviewableType()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/ui/composable/ |
D | ShareouselCardComposable.kt | 36 import com.android.intentresolver.contentpreview.payloadtoggle.shared.ContentType 41 contentType: ContentType, in ShareouselCard() 51 ContentType.Video -> in ShareouselCard() 56 ContentType.Other -> in ShareouselCard() 61 ContentType.Image -> Unit // No additional icon needed. in ShareouselCard()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 38 import com.android.messaging.util.ContentType; 108 ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor() 111 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor() 114 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_OUTGOING_COMPLETE} in getConversationListCursor() 336 new MessagePartData(ContentType.IMAGE_JPEG, Uri.parse("content://image"), in getTestDraftAttachments() 338 new MessagePartData(ContentType.VIDEO_3GPP, Uri.parse("content://video"), in getTestDraftAttachments() 340 new MessagePartData(ContentType.TEXT_VCARD, Uri.parse("content://vcard"), in getTestDraftAttachments() 342 new MessagePartData(ContentType.AUDIO_3GPP, Uri.parse("content://audio"), in getTestDraftAttachments()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MmsVideoRecorder.java | 27 import com.android.messaging.util.ContentType; 55 ContentType.getExtension(getContentType())); in MmsVideoRecorder() 125 return ContentType.VIDEO_MP4; in getContentType() 128 return ContentType.VIDEO_3GPP; in getContentType()
|
D | GalleryGridItemView.java | 38 import com.android.messaging.util.ContentType; 163 if (ContentType.isAudioType(contentType)) { in updateImageView() 183 if (ContentType.isVideoType(mData.getContentType())) { in updateImageView()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | DatabaseMessages.java | 41 import com.android.messaging.util.ContentType; 608 if (ContentType.isImageType(mContentType)) { in load() 610 } else if (ContentType.isVideoType(mContentType)) { in load() 787 return ContentType.TEXT_PLAIN.equals(mContentType) in isEmbeddedTextType() 788 || ContentType.APP_SMIL.equals(mContentType) in isEmbeddedTextType() 789 || ContentType.TEXT_HTML.equals(mContentType); in isEmbeddedTextType() 806 return ContentType.TEXT_PLAIN.equals(mContentType) in isText() 807 || ContentType.TEXT_HTML.equals(mContentType) in isText() 808 || ContentType.APP_WAP_XHTML.equals(mContentType); in isText() 812 return ContentType.isImageType(mContentType) in isMedia() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListItemView.java | 54 import com.android.messaging.util.ContentType; 95 Assert.isTrue(ContentType.isImageType(previewType) || 96 ContentType.isVideoType(previewType)); 100 if (ContentType.isImageType(previewType)) { 474 if (ContentType.isAudioType(previewContentType)) { in bind() 478 } else if (ContentType.isVideoType(previewContentType)) { in bind() 483 } else if (ContentType.isImageType(previewContentType)) { in bind() 639 if (ContentType.isAudioType(previewContentType)) { in getSnippetText() 641 } else if (ContentType.isImageType(previewContentType)) { in getSnippetText() 643 } else if (ContentType.isVideoType(previewContentType)) { in getSnippetText() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ComposeMessageView.java | 67 import com.android.messaging.util.ContentType; 777 newType = ContentType.TYPE_IMAGE; in updateVisualsOnDraftChanged() 779 newType = ContentType.TYPE_AUDIO; in updateVisualsOnDraftChanged() 781 newType = ContentType.TYPE_VIDEO; in updateVisualsOnDraftChanged() 783 newType = ContentType.TYPE_VCARD; in updateVisualsOnDraftChanged() 785 newType = ContentType.TYPE_OTHER; in updateVisualsOnDraftChanged() 790 } else if (type != newType || type == ContentType.TYPE_OTHER) { in updateVisualsOnDraftChanged() 791 type = ContentType.TYPE_OTHER; in updateVisualsOnDraftChanged() 797 case ContentType.TYPE_IMAGE: in updateVisualsOnDraftChanged() 802 case ContentType.TYPE_AUDIO: in updateVisualsOnDraftChanged() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AttachmentPreviewFactory.java | 46 import com.android.messaging.util.ContentType; 73 } else if (ContentType.isImageType(contentType)) { in createAttachmentPreview() 76 } else if (ContentType.isAudioType(contentType)) { in createAttachmentPreview() 78 } else if (ContentType.isVideoType(contentType)) { in createAttachmentPreview() 80 } else if (ContentType.isVCardType(contentType)) { in createAttachmentPreview() 131 if (ContentType.isImageType(contentType)) { in getImageRequestDescriptorForAttachment()
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationListService.java | 43 import com.android.messaging.util.ContentType; 221 if (ContentType.isAudioType(previewContentType)) { in getSnippetText() 224 } else if (ContentType.isImageType(previewContentType)) { in getSnippetText() 226 } else if (ContentType.isVideoType(previewContentType)) { in getSnippetText() 228 } else if (ContentType.isVCardType(previewContentType)) { in getSnippetText()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPersister.java | 52 import com.android.messaging.util.ContentType; 445 if (!ContentType.isImageType(type) in loadParts() 446 && !ContentType.isAudioType(type) in loadParts() 447 && !ContentType.isVideoType(type)) { in loadParts() 454 if (ContentType.TEXT_PLAIN.equals(type) || ContentType.APP_SMIL.equals(type) in loadParts() 455 || ContentType.TEXT_HTML.equals(type)) { in loadParts() 791 if (ContentType.IMAGE_JPG.equals(contentType)) { in persistPart() 792 contentType = ContentType.IMAGE_JPEG; in persistPart() 797 if (ContentType.TEXT_PLAIN.equals(contentType) && data != null) { in persistPart() 804 contentType = ContentType.TEXT_VCARD; in persistPart() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
D | AbortMmsWapPushReceiver.java | 24 import com.android.messaging.util.ContentType; 35 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
|
D | MmsWapPushDeliverReceiver.java | 24 import com.android.messaging.util.ContentType; 35 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
|
D | MmsWapPushReceiver.java | 25 import com.android.messaging.util.ContentType; 38 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManagerTest.java | 134 assertThat(mManager.getPhonebookSize(BluetoothPbapObexServer.ContentType.PHONEBOOK, null)) in testGetPhonebookSize_whenTypeIsPhonebook() 188 assertThat(mManager.getPhonebookSize(BluetoothPbapObexServer.ContentType.FAVORITES, null)) in testGetPhonebookSize_whenTypeIsFavorites() 204 BluetoothPbapObexServer.ContentType.SIM_PHONEBOOK, simVcardManager)) in testGetPhonebookSize_whenTypeIsSimPhonebook() 220 BluetoothPbapObexServer.ContentType.INCOMING_CALL_HISTORY, null)) in testGetPhonebookSize_whenTypeIsHistory() 288 BluetoothPbapObexServer.ContentType.INCOMING_CALL_HISTORY)) in testLoadCallHistoryList()
|