Home
last modified time | relevance | path

Searched refs:contentType (Results 1 – 25 of 27) sorted by relevance

12

/aosp14/frameworks/base/telephony/common/com/google/android/mms/
H A DContentType.java177 return (null != contentType) && sSupportedContentTypes.contains(contentType); in isSupportedType()
182 return isImageType(contentType) && isSupportedType(contentType); in isSupportedImageType()
187 return isAudioType(contentType) && isSupportedType(contentType); in isSupportedAudioType()
192 return isVideoType(contentType) && isSupportedType(contentType); in isSupportedVideoType()
197 return (null != contentType) && contentType.startsWith("text/"); in isTextType()
202 return (null != contentType) && contentType.startsWith("image/"); in isImageType()
207 return (null != contentType) && contentType.startsWith("audio/"); in isAudioType()
212 return (null != contentType) && contentType.startsWith("video/"); in isVideoType()
217 return (null != contentType) in isDrmType()
218 && (contentType.equals(APP_DRM_CONTENT) in isDrmType()
[all …]
/aosp14/frameworks/base/telephony/common/com/google/android/mms/pdu/
H A DPduPersister.java416 if (contentType != null) { in loadParts()
417 part.setContentType(contentType); in loadParts()
441 String type = toIsoString(contentType); in loadParts()
728 String contentType = getPartContentType(part); in persistPart() local
729 if (contentType != null) { in persistPart()
733 contentType = ContentType.IMAGE_JPEG; in persistPart()
736 values.put(Part.CONTENT_TYPE, contentType); in persistPart()
966 byte[] contentType = sendReq.getContentType(); in updateHeaders()
967 if (contentType != null) { in updateHeaders()
1062 String contentType = null; in updatePart() local
[all …]
H A DPduParser.java179 if (null == contentType) { in parse()
182 String ctTypeStr = new String(contentType); in parse()
789 byte[] contentType = in parseHeaders()
792 if (null != contentType) { in parseHeaders()
859 if (null != contentType) { in parseParts()
860 part.setContentType(contentType); in parseParts()
1542 byte[] contentType = null; in parseContentType()
1593 contentType = in parseContentType()
1597 return contentType; in parseContentType()
1800 byte[] contentType = part.getContentType(); in checkPartPosition()
[all …]
H A DPduPart.java324 public void setContentType(byte[] contentType) { in setContentType() argument
325 if(contentType == null) { in setContentType()
329 mPartHeader.put(P_CONTENT_TYPE, contentType); in setContentType()
H A DSendReq.java63 public SendReq(byte[] contentType, in SendReq() argument
69 setContentType(contentType); in SendReq()
H A DPduComposer.java885 String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE)); in makeMessageBody() local
886 Integer contentTypeIdentifier = mContentTypeMap.get(contentType); in makeMessageBody()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
H A DMultipartTest.java55 StringBuffer contentType = new StringBuffer("multipart/form-data"); in testParts() local
56 contentType.append("; boundary="); in testParts()
57 contentType.append(boundry); in testParts()
58 assertEquals("Multipart content type error", contentType.toString(), h.getValue()); in testParts()
/aosp14/frameworks/base/core/java/android/text/method/
H A DDigitsKeyListener.java323 int contentType; in getInputType() local
325 contentType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL; in getInputType()
327 contentType = InputType.TYPE_CLASS_NUMBER; in getInputType()
329 contentType |= InputType.TYPE_NUMBER_FLAG_SIGNED; in getInputType()
332 contentType |= InputType.TYPE_NUMBER_FLAG_DECIMAL; in getInputType()
335 return contentType; in getInputType()
H A DBaseKeyListener.java475 int contentType = InputType.TYPE_CLASS_TEXT; in makeTextContentType() local
478 contentType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS; in makeTextContentType()
481 contentType |= InputType.TYPE_TEXT_FLAG_CAP_WORDS; in makeTextContentType()
484 contentType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; in makeTextContentType()
488 contentType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT; in makeTextContentType()
490 return contentType; in makeTextContentType()
/aosp14/frameworks/base/media/java/android/media/
H A DAudioAttributes.java952 public Builder setContentType(@AttributeContentType int contentType) { in setContentType() argument
953 switch (contentType) { in setContentType()
959 mContentType = contentType; in setContentType()
962 throw new IllegalArgumentException("Invalid content type " + contentType); in setContentType()
975 public @NonNull Builder setInternalContentType(@AttrInternalContentType int contentType) { in setInternalContentType() argument
976 switch (contentType) { in setInternalContentType()
978 mContentType = contentType; in setInternalContentType()
981 setContentType(contentType); in setInternalContentType()
H A DAudioTrack.java4421 int channelMask, int channelIndexMask, int contentType, int usage, int flags); in native_is_direct_output_supported() argument
/aosp14/frameworks/base/core/java/android/os/
H A DExternalVibration.java84 int contentType = in.readInt(); in readAudioAttributes() local
89 .setContentType(contentType) in readAudioAttributes()
/aosp14/frameworks/base/core/java/android/print/
H A DPrintDocumentInfo.java278 private String contentTypeToString(int contentType) { in contentTypeToString() argument
279 switch (contentType) { in contentTypeToString()
/aosp14/frameworks/base/media/java/android/media/metrics/
H A DPlaybackMetrics.java182 int contentType, in PlaybackMetrics() argument
199 this.mContentType = contentType; in PlaybackMetrics()
450 int contentType = in.readInt(); in PlaybackMetrics() local
470 this.mContentType = contentType; in PlaybackMetrics()
/aosp14/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
H A DWapPushManager.java398 String contentType, String packageName, String className, int appType, in insertPackage() argument
401 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, appId, contentType); in insertPackage()
418 values.put("content_type", contentType); in insertPackage()
427 Log.v(LOG_TAG, "add:" + appId + ":" + contentType + " " + packageName in insertPackage()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputViewController.kt321 contentType: String,
325 results[contentType] = data
/aosp14/frameworks/base/core/java/android/app/usage/
H A DIUsageStatsManager.aidl51 void reportChooserSelection(String packageName, int userId, String contentType, in reportChooserSelection() argument
H A DUsageStatsManager.java1399 public void reportChooserSelection(String packageName, int userId, String contentType, in reportChooserSelection() argument
1402 mService.reportChooserSelection(packageName, userId, contentType, annotations, action); in reportChooserSelection()
/aosp14/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
H A DAppList.kt144 item(contentType = CONTENT_TYPE_HEADER) {
/aosp14/frameworks/base/core/java/android/app/
H A DNotificationChannel.java1254 int contentType = safeInt(parser, ATT_CONTENT_TYPE, in safeAudioAttributes() local
1259 .setContentType(contentType) in safeAudioAttributes()
/aosp14/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DWapPushTest.java2154 String contentType = ((mimeType == null) ? in dispatchWapPdu() local
2156 if (false) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType); in dispatchWapPdu()
2172 int procRet = wapPushMan.processMessage(wapAppId, contentType, intent); in dispatchWapPdu()
/aosp14/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp506 jint contentType, jint usage, jint flags) { in android_media_AudioTrack_is_direct_output_supported() argument
512 attributes.content_type = static_cast<audio_content_type_t>(contentType); in android_media_AudioTrack_is_direct_output_supported()
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsService.java2549 @NonNull String contentType, String[] annotations, @NonNull String action) { in reportChooserSelection() argument
2554 if (contentType == null || contentType.isBlank() in reportChooserSelection()
2567 event.mContentType = contentType; in reportChooserSelection()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerService.java1331 final int contentType = Integer.parseInt(parser.getAttributeValue(null, in parsePrintJobLocked() local
1337 .setContentType(contentType).build(); in parsePrintJobLocked()
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/
H A DITelephony.aidl1227 String contentType, in ParcelFileDescriptor fd, in ResultReceiver callback); in uploadCallComposerPicture() argument

12