Searched refs:mimeType (Results 1 - 25 of 229) sorted by relevance

12345678910

/frameworks/base/drm/java/android/drm/
H A DDrmInfoStatus.java55 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 DDrmRights.java51 * @param mimeType MIME type. Must not be null or an empty string.
53 public DrmRights(String rightsFilePath, String mimeType) { argument
55 instantiate(file, mimeType);
62 * @param mimeType MIME type. Must not be null or an empty string.
65 public DrmRights(String rightsFilePath, String mimeType, String accountId) { argument
66 this(rightsFilePath, mimeType);
75 * @param mimeType MIME type. Must not be null or an empty string.
80 String rightsFilePath, String mimeType, String accountId, String subscriptionId) {
81 this(rightsFilePath, mimeType);
91 * @param mimeType MIM
79 DrmRights( String rightsFilePath, String mimeType, String accountId, String subscriptionId) argument
93 DrmRights(File rightsFile, String mimeType) argument
97 instantiate(File rightsFile, String mimeType) argument
119 DrmRights(ProcessedData data, String mimeType) argument
[all...]
H A DDrmSupportInfo.java38 * @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 DDrmInfo.java47 * @param mimeType The MIME type.
49 public DrmInfo(int infoType, byte[] data, String mimeType) { argument
51 mMimeType = mimeType;
55 "mimeType: " + mimeType + "," +
67 * @param mimeType The MIME type.
69 public DrmInfo(int infoType, String path, String mimeType) { argument
71 mMimeType = mimeType;
82 "mimeType: " + mimeType
[all...]
H A DDrmInfoRequest.java65 * @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 DIMediaScannerService.aidl29 * @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 DDrmInitData.java50 * The mimeType of {@link #data}.
52 public final String mimeType; field in class:DrmInitData.SchemeInitData
59 * @param mimeType The mimeType of the initialization data.
64 public SchemeInitData(String mimeType, byte[] data) { argument
65 this.mimeType = mimeType;
79 return mimeType.equals(other.mimeType) && Arrays.equals(data, other.data);
84 return mimeType
[all...]
H A DMediaScannerClient.java35 public void setMimeType(String mimeType); argument
H A DMediaFile.java126 public final String mimeType; field in class:MediaFile.MediaFileType
128 MediaFileType(int fileType, String mimeType) { argument
130 this.mimeType = mimeType;
148 static void addFileType(String extension, int fileType, String mimeType) { argument
149 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
150 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
153 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { argument
154 addFileType(extension, fileType, mimeType);
156 sMimeTypeToFormatMap.put(mimeType, Intege
316 isMimeTypeMedia(String mimeType) argument
340 getFileTypeForMimeType(String mimeType) argument
350 getFormatCode(String fileName, String mimeType) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DMimeTypeMap.java75 * @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 DWebResourceResponse.java45 * @param mimeType the resource response's MIME type, for example text/html
50 public WebResourceResponse(String mimeType, String encoding, argument
52 mMimeType = mimeType;
62 * @param mimeType the resource response's MIME type, for example text/html
73 public WebResourceResponse(String mimeType, String encoding, int statusCode, argument
75 this(mimeType, encoding, data);
83 * @param mimeType The resource response's MIME type
85 public void setMimeType(String mimeType) { argument
87 mMimeType = mimeType;
218 public WebResourceResponse(boolean immutable, String mimeType, Strin argument
[all...]
/frameworks/av/drm/common/
H A DDrmInfoStatus.cpp26 mimeType(_mimeType) {
H A DDrmRights.cpp22 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),
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DMimeTypeUtil.h37 * @param mimeType - mimetype in lower case to convert.
41 static String8 convertMimeType(String8& mimeType);
/frameworks/av/include/media/stagefright/
H A DStagefrightMediaScanner.h30 const char *path, const char *mimeType,
40 const char *path, const char *mimeType,
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DMimePredicate.java44 if (mimeMatches(mFilters, doc.mimeType)) {
100 public static boolean isApkType(@Nullable String mimeType) { argument
101 return APK_TYPE.equals(mimeType);
104 public static boolean isDirectoryType(@Nullable String mimeType) { argument
105 return Document.MIME_TYPE_DIR.equals(mimeType);
H A DIconUtils.java43 Context context, String mimeType, String authority, String docId, int mode) {
44 if (Document.MIME_TYPE_DIR.equals(mimeType)) {
52 return loadMimeIcon(context, mimeType);
55 public static Drawable loadMimeIcon(Context context, String mimeType) { argument
56 return context.getContentResolver().getTypeDrawable(mimeType);
42 loadMimeIcon( Context context, String mimeType, String authority, String docId, int mode) argument
/frameworks/av/include/drm/
H A DDrmRights.h39 * @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 DDrmInfoStatus.h61 String8 mimeType; member in class:android::DrmInfoStatus
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DContactEntry.java33 public ContentValuesBuilder addContentValues(String mimeType) { argument
35 contentValues.put(Data.MIMETYPE, mimeType);
H A DContentValuesVerifierElem.java35 public ContentValuesBuilder addExpected(String mimeType) { argument
37 contentValues.put(Data.MIMETYPE, mimeType);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DWap230WspContentTypeTest.java228 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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDocumentsAdapter.java86 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE);
87 return Document.MIME_TYPE_DIR.equals(mimeType);
105 boolean isDocumentEnabled(String mimeType, int flags); argument
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/model/
H A DDocumentInfoTest.java54 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { argument
58 doc.mimeType = mimeType;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java247 public static boolean isSupportedByRegionDecoder(String mimeType) { argument
248 if (mimeType == null) return false;
249 mimeType = mimeType.toLowerCase();
250 return mimeType.startsWith("image/") &&
251 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp"));
254 public static boolean isRotationSupported(String mimeType) { argument
255 if (mimeType == null) return false;
256 mimeType
[all...]

Completed in 415 milliseconds

12345678910