Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/java/android/print/
H A DPrintDocumentInfo.java125 private int mContentType; field in PrintDocumentInfo
143 mContentType = prototype.mContentType; in PrintDocumentInfo()
156 mContentType = parcel.readInt(); in PrintDocumentInfo()
191 return mContentType; in getContentType()
223 parcel.writeInt(mContentType); in writeToParcel()
232 result = prime * result + mContentType; in hashCode()
254 if (mContentType != other.mContentType) { in equals()
272 builder.append(", contentType=").append(contentTypeToString(mContentType)); in toString()
352 mPrototype.mContentType = type; in setContentType()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A 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()
H A DMessagePartData.java106 private String mContentType; field in MessagePartData
162 mContentType = contentType; in MessagePartData()
279 if (mContentType != null) { in getInsertStatement()
309 return ContentType.isTextType(mContentType); in isText()
313 return ContentType.isImageType(mContentType); in isImage()
333 return mContentType; in getContentType()
366 mContentType = in.readString(); in MessagePartData()
377 dest.writeString(mContentType); in writeToParcel()
396 TextUtils.equals(mContentType, lhs.mContentType) && in equals()
407 result = 31 * result + (mContentType == null ? 0 : mContentType.hashCode()); in hashCode()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapbMessageMime.java83 if (mContentType != null) { in encode()
104 if (mContentType != null && (mContentType.toUpperCase().contains("TEXT") 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
324 this.mContentType = contentType; in setContentType()
328 return mContentType; in getContentType()
351 if (part.mContentType != null && part.mContentType.toUpperCase().contains("TEXT")) { in updateCharset()
461 if (mContentType != null) { in encodeHeaders()
787 if (mContentType == null) { in parseMime()
[all …]
H A 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()
H A 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()
/aosp12/frameworks/base/media/java/android/media/
H A DAudioAttributes.java525 private int mContentType = CONTENT_TYPE_UNKNOWN; field in AudioAttributes
543 return mContentType; in getContentType()
744 mContentType = aa.mContentType; in Builder()
760 aa.mContentType = mContentType; in build()
905 mContentType = contentType; in setContentType()
1077 mContentType = CONTENT_TYPE_UNKNOWN; in setInternalLegacyStreamType()
1085 mContentType = attributes.mContentType; in setInternalLegacyStreamType()
1246 dest.writeInt(mContentType); in writeToParcel()
1267 mContentType = in.readInt(); in AudioAttributes()
1316 return ((mContentType == that.mContentType) in equals()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/sms/
H A DDatabaseMessages.java579 public String mContentType; field in DatabaseMessages.MmsPart
700 mContentType = opt.outMimeType; in loadImage()
703 if (TextUtils.isEmpty(mContentType)) { in loadImage()
740 mContentType = in loadVideo()
812 return ContentType.isImageType(mContentType) in isMedia()
813 || ContentType.isVideoType(mContentType) in isMedia()
814 || ContentType.isAudioType(mContentType) in isMedia()
815 || ContentType.isVCardType(mContentType); in isMedia()
819 return ContentType.isImageType(mContentType); in isImage()
835 mContentType = in.readString(); in MmsPart()
[all …]
H A DMmsUtils.java1404 public String mContentType; field in MmsUtils.AttachmentInfo
1755 messagePart = MessagePartData.createMediaMessagePart(part.mContentType, in createMmsMessagePart()
/aosp12/frameworks/base/media/java/android/media/metrics/
H A DPlaybackMetrics.java158 private final int mContentType; field in PlaybackMetrics
199 this.mContentType = contentType; in PlaybackMetrics()
262 return mContentType; in getContentType()
365 + "contentType = " + mContentType + ", " in toString()
389 && mContentType == that.mContentType in equals()
405 mDrmType, mContentType, mPlayerName, mPlayerVersion, mExperimentIds, in hashCode()
421 dest.writeInt(mContentType); in writeToParcel()
469 this.mContentType = contentType; in PlaybackMetrics()
507 private int mContentType = CONTENT_TYPE_UNKNOWN; field in PlaybackMetrics.Builder
572 mContentType = value; in setContentType()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriImage.java51 private final String mContentType; field in UriImage
67 mContentType = contentType; in UriImage()
100 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) { in openOrDownloadInner()
123 if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) { in openOrDownloadInner()
217 if (BitmapUtils.isSupportedByRegionDecoder(mContentType)) { in getSupportedOperations()
258 if (mContentType != null) { in getDetails()
259 details.addDetail(MediaDetails.INDEX_MIMETYPE, mContentType); in getDetails()
271 return mContentType; in getMimeType()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
H A 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()
/aosp12/frameworks/av/media/libaaudio/src/core/
H A DAAudioStreamParameters.cpp46 mContentType = other.mContentType; in copyFrom()
153 switch (mContentType) { in validate()
161 ALOGD("content type not valid = %d", mContentType); in validate()
307 ALOGD("mContentType = %6d", mContentType); in dump()
H A DAAudioStreamParameters.h93 return mContentType; in getContentType()
97 mContentType = contentType; in setContentType()
201 aaudio_content_type_t mContentType = AAUDIO_UNSPECIFIED; variable
H A DAudioStream.h253 return mContentType; in getContentType()
602 mContentType = contentType; in setContentType()
669 aaudio_content_type_t mContentType = AAUDIO_UNSPECIFIED; variable
H A DAudioStream.cpp91 mContentType = builder.getContentType(); in open()
92 if (mContentType == AAUDIO_UNSPECIFIED) { in open()
93 mContentType = AAUDIO_CONTENT_TYPE_MUSIC; in open()
/aosp12/art/tools/ahat/src/main/com/android/ahat/
H A DStaticHandler.java29 private String mContentType; field in StaticHandler
33 mContentType = contentType; in StaticHandler()
48 exchange.getResponseHeaders().add("Content-Type", mContentType); in handle()
/aosp12/frameworks/av/media/libaaudio/examples/utils/
H A DAAudioArgsParser.h181 return mContentType; in getContentType()
185 mContentType = contentType; in setContentType()
257 s_setContentType(builder, mContentType); in applyParameters()
258 } else if (mContentType != AAUDIO_UNSPECIFIED){ in applyParameters()
297 aaudio_content_type_t mContentType = AAUDIO_UNSPECIFIED; variable
/aosp12/frameworks/base/core/java/android/app/usage/
H A DUsageEvents.java466 public String mContentType; field in UsageEvents.Event
709 mContentType = orig.mContentType; in copyFrom()
904 p.writeString(event.mContentType); in writeEventToParcel()
961 eventOut.mContentType = null; in readEventFromParcel()
976 eventOut.mContentType = p.readString(); in readEventFromParcel()
/aosp12/frameworks/base/core/jni/
H A Dandroid_media_AudioAttributes.cpp46 jfieldID mContentType; // AudioAttributes.mContentType member
97 gAudioAttributesFields.mContentType); in nativeAudioAttributesFromJavaAudioAttributes()
183 gAudioAttributesFields.mContentType = in register_android_media_AudioAttributes()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DAbstractResolverComparator.java54 protected String mContentType; field in AbstractResolverComparator
104 mContentType = intent.getType(); in AbstractResolverComparator()
240 mUsm.reportChooserSelection(packageName, userId, mContentType, mAnnotations, action); in updateChooserCounts()
H A DResolverRankerServiceResolverComparator.java176 .getOrDefault(mContentType, 0); in doCompute()
/aosp12/packages/apps/Contacts/src/com/android/contacts/
H A 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()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A 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()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
H A DBluetoothMapContentObserverTest.java153 body.mContentType = "text/plain"; in testPushGroupMMS()

12