Searched defs:mimeType (Results 1 - 25 of 113) sorted by relevance

12345

/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 DDrmOutputStream.java56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) argument
62 mSessionId = mClient.openConvertSession(mimeType);
64 throw new UnknownServiceException("Failed to open DRM session for " + 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 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;
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...]
/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/av/drm/common/
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),
H A DDrmInfoRequest.cpp24 DrmInfoRequest::DrmInfoRequest(int infoType, const String8& mimeType) : argument
25 mInfoType(infoType), mMimeType(mimeType) {
H A DDrmInfo.cpp21 DrmInfo::DrmInfo(int infoType, const DrmBuffer& drmBuffer, const String8& mimeType) : argument
24 mMimeType(mimeType) {
H A DDrmSupportInfo.cpp45 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/mediadrm/plugins/clearkey/tests/
H A DInitDataParserUnittest.cpp41 const String8& mimeType,
44 return parser.parse(initData, mimeType, licenseRequest);
48 const String8& mimeType,
53 ASSERT_EQ(android::OK, attemptParse(initData, mimeType, &request));
71 const String8& mimeType) {
73 ASSERT_NE(android::OK, attemptParse(initData, mimeType, &request));
40 attemptParse(const Vector<uint8_t>& initData, const String8& mimeType, Vector<uint8_t>* licenseRequest) argument
47 attemptParseExpectingSuccess(const Vector<uint8_t>& initData, const String8& mimeType, const Vector<String8>& expectedKeys) argument
70 attemptParseExpectingFailure(const Vector<uint8_t>& initData, const String8& mimeType) argument
/frameworks/av/include/drm/
H A DDrmInfoStatus.h61 String8 mimeType; member in class:android::DrmInfoStatus
/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...]
/frameworks/base/core/java/com/android/internal/util/
H A DMimeIconUtils.java31 private static void add(String mimeType, int resId) { argument
32 if (sMimeIcons.put(mimeType, resId) != null) {
33 throw new RuntimeException(mimeType + " already registered!");
200 public static Drawable loadMimeIcon(Context context, String mimeType) { argument
201 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(mimeType)) {
206 Integer resId = sMimeIcons.get(mimeType);
211 if (mimeType == null) {
217 final String typeOnly = mimeType.split("/")[0];
/frameworks/base/media/java/android/media/
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
/frameworks/support/core-utils/java/android/support/v4/content/
H A DMimeTypeFilter.java73 * @return True if the {@code mimeType} matches the {@code filter}.
75 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { argument
76 if (mimeType == null) {
80 final String[] mimeTypeParts = mimeType.split("/");
91 @Nullable String mimeType, @NonNull String[] filters) {
92 if (mimeType == null) {
96 final String[] mimeTypeParts = mimeType.split("/");
118 for (String mimeType : mimeTypes) {
119 final String[] mimeTypeParts = mimeType.split("/");
121 return mimeType;
90 matches( @ullable String mimeType, @NonNull String[] filters) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DDrmConvertSession.java44 * @param mimeType Mimetype of content that shall be converted.
47 public static DrmConvertSession open(Context context, String mimeType) { argument
50 if (context != null && mimeType != null && !mimeType.equals("")) {
54 convertSessionId = drmClient.openConvertSession(mimeType);
56 Log.w(TAG, "Conversion of Mimetype: " + mimeType
/frameworks/support/core-utils/api21/android/support/v4/provider/
H A DDocumentsContractApi21.java33 public static Uri createFile(Context context, Uri self, String mimeType, argument
36 return DocumentsContract.createDocument(context.getContentResolver(), self, mimeType,
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DDrmPlugin.cpp53 const String8& mimeType,
72 return session->getKeyRequest(initData, mimeType, &request);
50 getKeyRequest( const Vector<uint8_t>& scope, const Vector<uint8_t>& initData, const String8& mimeType, KeyType keyType, const KeyedVector<String8, String8>& optionalParameters, Vector<uint8_t>& request, String8& defaultUrl, DrmPlugin::KeyRequestType *keyRequestType) argument
H A DSession.cpp39 const String8& mimeType,
42 return parser.parse(initData, mimeType, keyRequest);
37 getKeyRequest( const Vector<uint8_t>& initData, const String8& mimeType, Vector<uint8_t>* keyRequest) const argument
/frameworks/av/media/libstagefright/
H A DStagefrightMediaScanner.cpp58 const char *path, const char *mimeType,
64 MediaScanResult result = processFileInternal(path, mimeType, client);
70 const char *path, const char * /* mimeType */,
57 processFile( const char *path, const char *mimeType, MediaScannerClient &client) argument
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java122 final String mimeType = "text/html"; field in class:ListWithMailMessages.MyAdapter
139 body.loadData(message.getBody(), mimeType, null);

Completed in 324 milliseconds

12345