/frameworks/base/drm/java/android/drm/ |
H A D | DrmInfoStatus.java | 55 public final String mimeType; field in class:DrmInfoStatus 72 * @param mimeType The MIME type. 74 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { argument 83 if (mimeType == null || mimeType == "") { 84 throw new IllegalArgumentException("mimeType is null or an empty string"); 90 this.mimeType = mimeType;
|
H A D | DrmRights.java | 50 * @param mimeType MIME type. Must not be null or an empty string. 52 public DrmRights(String rightsFilePath, String mimeType) { argument 54 instantiate(file, mimeType); 61 * @param mimeType MIME type. Must not be null or an empty string. 64 public DrmRights(String rightsFilePath, String mimeType, String accountId) { argument 65 this(rightsFilePath, mimeType); 74 * @param mimeType MIME type. Must not be null or an empty string. 79 String rightsFilePath, String mimeType, String accountId, String subscriptionId) { 80 this(rightsFilePath, mimeType); 90 * @param mimeType MIM 78 DrmRights( String rightsFilePath, String mimeType, String accountId, String subscriptionId) argument 92 DrmRights(File rightsFile, String mimeType) argument 96 instantiate(File rightsFile, String mimeType) argument 118 DrmRights(ProcessedData data, String mimeType) argument [all...] |
H A D | DrmSupportInfo.java | 38 * @param mimeType MIME type that can be handles by this DRM plug-in. 41 public void addMimeType(String mimeType) { argument 42 if (mimeType == null) { 43 throw new IllegalArgumentException("mimeType is null"); 45 if (mimeType == "") { 46 throw new IllegalArgumentException("mimeType is an empty string"); 49 mMimeTypeList.add(mimeType); 157 * @param mimeType MIME type. 159 * Null or empty string is not a supported mimeType. 161 /* package */ boolean isSupportedMimeType(String mimeType) { argument [all...] |
H A D | DrmInfo.java | 46 * @param mimeType The MIME type. 48 public DrmInfo(int infoType, byte[] data, String mimeType) { argument 50 mMimeType = mimeType; 54 "mimeType: " + mimeType + "," + 66 * @param mimeType The MIME type. 68 public DrmInfo(int infoType, String path, String mimeType) { argument 70 mMimeType = mimeType; 81 "mimeType: " + mimeType [all...] |
H A D | DrmInfoRequest.java | 65 * @param mimeType MIME type. 67 public DrmInfoRequest(int infoType, String mimeType) { argument 69 mMimeType = mimeType; 72 "mimeType: " + mimeType;
|
/frameworks/base/media/java/android/media/ |
H A D | IMediaScannerService.aidl | 29 * @param mimeType an optional mimeType for the file. 30 * If mimeType is null, then the mimeType will be inferred from the file extension. 34 void requestScanFile(String path, String mimeType, in IMediaScannerListener listener); 40 * @param mimeType an optional mimeType for the file. 41 * If mimeType is null, then the mimeType will be inferred from the file extension. 43 void scanFile(String path, String mimeType); [all...] |
H A D | MediaScannerClient.java | 35 public void setMimeType(String mimeType); argument
|
H A D | MediaFile.java | 115 public final String mimeType; field in class:MediaFile.MediaFileType 117 MediaFileType(int fileType, String mimeType) { argument 119 this.mimeType = mimeType; 137 static void addFileType(String extension, int fileType, String mimeType) { argument 138 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType)); 139 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType)); 142 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { argument 143 addFileType(extension, fileType, mimeType); 145 sMimeTypeToFormatMap.put(mimeType, Intege 285 isMimeTypeMedia(String mimeType) argument 309 getFileTypeForMimeType(String mimeType) argument 319 getFormatCode(String fileName, String mimeType) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | MimeTypeMap.java | 75 * @param mimeType A MIME type (i.e. text/plain) 76 * @return True iff there is a mimeType entry in the map. 78 public boolean hasMimeType(String mimeType) { argument 79 return MimeUtils.hasMimeType(mimeType); 109 * @param mimeType A MIME type (i.e. text/plain) 112 public String getExtensionFromMimeType(String mimeType) { argument 113 return MimeUtils.guessExtensionFromMimeType(mimeType); 121 * @param mimeType MIME type provided by the server. 126 /* package */ String remapGenericMimeType(String mimeType, String url, argument 130 if ("text/plain".equals(mimeType) || [all...] |
H A D | WebResourceResponse.java | 40 * @param mimeType the resource response's MIME type, for example text/html 44 public WebResourceResponse(String mimeType, String encoding, argument 46 mMimeType = mimeType; 54 * @param mimeType the resource response's MIME type 56 public void setMimeType(String mimeType) { argument 57 mMimeType = mimeType;
|
H A D | KeyStoreHandler.java | 36 public KeyStoreHandler(String mimeType) { argument 37 mMimeType = mimeType;
|
/frameworks/av/drm/common/ |
H A D | DrmInfoStatus.cpp | 26 mimeType(_mimeType) {
|
H A D | DrmRights.cpp | 22 DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType, argument 24 mMimeType(mimeType), 35 DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType, argument 38 mMimeType(mimeType),
|
H A D | DrmSupportInfo.cpp | 45 bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const { 46 if (String8("") == mimeType) { 53 if (!strcasecmp(item.string(), mimeType.string())) { 86 status_t DrmSupportInfo::addMimeType(const String8& mimeType) { argument 87 mMimeTypeVector.push(mimeType);
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
H A D | MimeTypeUtil.h | 37 * @param mimeType - mimetype in lower case to convert. 41 static String8 convertMimeType(String8& mimeType);
|
/frameworks/av/include/media/stagefright/ |
H A D | StagefrightMediaScanner.h | 30 const char *path, const char *mimeType, 40 const char *path, const char *mimeType,
|
/frameworks/base/media/java/android/drm/mobile1/ |
H A D | DrmRightsManager.java | 95 int mimeType = 0; 98 mimeType = DRM_MIMETYPE_RIGHTS_XML; 100 mimeType = DRM_MIMETYPE_RIGHTS_WBXML; 102 mimeType = DRM_MIMETYPE_MESSAGE; 104 throw new IllegalArgumentException("mimeType must be DRM_MIMETYPE_RIGHTS_XML or DRM_MIMETYPE_RIGHTS_WBXML or DRM_MIMETYPE_MESSAGE"); 112 int res = nativeInstallDrmRights(rightsData, len, mimeType, rights); 193 * @param mimeType the mime type of this DRM rights object. the value of this field includes: 201 private native int nativeInstallDrmRights(InputStream data, int len, int mimeType, DrmRights rights); argument
|
H A D | DrmRawContent.java | 132 int mimeType; 139 mimeType = DRM_MIMETYPE_MESSAGE; 141 mimeType = DRM_MIMETYPE_CONTENT; 143 throw new IllegalArgumentException("mimeType must be DRM_MIMETYPE_MESSAGE or DRM_MIMETYPE_CONTENT"); 149 id = nativeConstructDrmContent(inData, inDataLen, mimeType); 387 * @param mimeType the mime type of this DRM content. the value of this field includes: 394 private native int nativeConstructDrmContent(InputStream data, int len, int mimeType); argument
|
/frameworks/av/include/drm/ |
H A D | DrmRights.h | 39 * @param[in] mimeType MIME type 44 const String8& rightsFilePath, const String8& mimeType, 52 * @param[in] mimeType MIME type 57 const DrmBuffer& rightsData, const String8& mimeType,
|
H A D | DrmInfoStatus.h | 61 String8 mimeType; member in class:android::DrmInfoStatus
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ContactEntry.java | 33 public ContentValuesBuilder addContentValues(String mimeType) { argument 35 contentValues.put(Data.MIMETYPE, mimeType);
|
H A D | ContentValuesVerifierElem.java | 35 public ContentValuesBuilder addExpected(String mimeType) { argument 37 contentValues.put(Data.MIMETYPE, mimeType);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | Wap230WspContentTypeTest.java | 228 String mimeType = unit.getValueString(); 230 assertEquals(Wap230WspContentTypeTest.WELL_KNOWN_SHORT_MIME_TYPES.get(value), mimeType); 247 String mimeType = unit.getValueString(); 249 assertEquals(Wap230WspContentTypeTest.WELL_KNOWN_SHORT_MIME_TYPES.get(value), mimeType); 272 String mimeType = unit.getValueString(); 273 assertEquals(testType, mimeType); 289 String mimeType = unit.getValueString(); 290 assertEquals(testType, mimeType); 304 String mimeType = unit.getValueString(); 305 assertEquals(STRING_MIME_TYPE_ROLLOVER_CERTIFICATE, mimeType); [all...] |
/frameworks/av/drm/libdrmframework/include/ |
H A D | DrmManager.h | 79 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 90 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 106 int openConvertSession(int uniqueId, const String8& mimeType); 120 const String8& mimeType); 138 String8 getSupportedPlugInId(int uniqueId, const String8& path, const String8& mimeType); 140 String8 getSupportedPlugInId(const String8& mimeType);
|
/frameworks/base/core/java/android/provider/ |
H A D | DrmStore.java | 145 String mimeType = content.getContentType(); 153 if (mimeType.startsWith("audio/")) { 155 } else if (mimeType.startsWith("image/")) { 158 Log.w(TAG, "unsupported mime type " + mimeType); 165 values.put(DrmStore.Columns.MIME_TYPE, mimeType); 178 result.setDataAndType(uri, mimeType);
|