summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorParamananda Pradhan <parama@codeaurora.org>2015-12-15 17:36:28 +0530
committerSteve Kondik <steve@cyngn.com>2016-01-23 23:28:17 -0800
commit280b65c572bfa7842d897bc654e84b7c81e9c92d (patch)
tree30adf06e9c6dbf7d6575202a68ee11a7b1f6fe61 /media
parent20b61d1f97f2ee4201a0288578047068f55fad70 (diff)
downloadframeworks_base-280b65c572bfa7842d897bc654e84b7c81e9c92d.zip
frameworks_base-280b65c572bfa7842d897bc654e84b7c81e9c92d.tar.gz
frameworks_base-280b65c572bfa7842d897bc654e84b7c81e9c92d.tar.bz2
frameworks/base: Added SD type support
Added DRM SD type "application/vnd.oma.drm.content" as a supportable DRM media type. CRs-Fixed: 941545 Change-Id: I7c53a3577a2044fb2d83ee7de3a7f1a3e625412e
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaFile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/java/android/media/MediaFile.java b/media/java/android/media/MediaFile.java
index e91548c..c6de463 100644
--- a/media/java/android/media/MediaFile.java
+++ b/media/java/android/media/MediaFile.java
@@ -108,8 +108,9 @@ public class MediaFile {
// Drm file types
public static final int FILE_TYPE_FL = 51;
+ public static final int FILE_TYPE_SD = 52;
private static final int FIRST_DRM_FILE_TYPE = FILE_TYPE_FL;
- private static final int LAST_DRM_FILE_TYPE = FILE_TYPE_FL;
+ private static final int LAST_DRM_FILE_TYPE = FILE_TYPE_SD;
// Other popular file types
public static final int FILE_TYPE_TEXT = 100;
@@ -243,6 +244,7 @@ public class MediaFile {
addFileType("M3U8", FILE_TYPE_HTTPLIVE, "audio/x-mpegurl");
addFileType("FL", FILE_TYPE_FL, "application/x-android-drm-fl");
+ addFileType("DCF", FILE_TYPE_SD, "application/vnd.oma.drm.content");
addFileType("TXT", FILE_TYPE_TEXT, "text/plain", MtpConstants.FORMAT_TEXT);
addFileType("HTM", FILE_TYPE_HTML, "text/html", MtpConstants.FORMAT_HTML);