Home
last modified time | relevance | path

Searched refs:drmClient (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DDownloadDrmHelper.java46 DrmManagerClient drmClient = new DrmManagerClient(context); in isDrmMimeType() local
47 if (drmClient != null && mimetype != null && mimetype.length() > 0) { in isDrmMimeType()
48 result = drmClient.canHandle("", mimetype); in isDrmMimeType()
98 DrmManagerClient drmClient = new DrmManagerClient(context); in getOriginalMimeType() local
100 if (drmClient.canHandle(path, null)) { in getOriginalMimeType()
101 result = drmClient.getOriginalMimeType(path); in getOriginalMimeType()
DDrmConvertSession.java36 private DrmConvertSession(DrmManagerClient drmClient, int convertSessionId) { in DrmConvertSession() argument
37 mDrmClient = drmClient; in DrmConvertSession()
49 DrmManagerClient drmClient = null; in open() local
53 drmClient = new DrmManagerClient(context); in open()
55 convertSessionId = drmClient.openConvertSession(mimeType); in open()
70 if (drmClient == null || convertSessionId < 0) { in open()
73 return new DrmConvertSession(drmClient, convertSessionId); in open()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java279 DrmManagerClient drmClient = null; in convertDmToFl() local
281 drmClient = new DrmManagerClient(context); in convertDmToFl()
293 convertSessionId = drmClient.openConvertSession(MIMETYPE_DRM_MESSAGE); in convertDmToFl()
310 convertedStatus = drmClient.convertData(convertSessionId, fileData); in convertDmToFl()
325 DrmConvertedStatus result = drmClient.closeConvertSession(convertSessionId); in convertDmToFl()
346 convertedStatus = drmClient.closeConvertSession(convertSessionId); in convertDmToFl()
370 drmClient.close(); in convertDmToFl()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java536 DrmManagerClient drmClient = null; in transferData() local
554 drmClient = new DrmManagerClient(mContext); in transferData()
555 out = new DrmOutputStream(drmClient, outPfd, mInfoDelta.mMimeType); in transferData()
590 if (drmClient != null) { in transferData()
591 drmClient.close(); in transferData()