Home
last modified time | relevance | path

Searched refs:drmSupportInfo (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/drm/common/
DDrmSupportInfo.cpp26 DrmSupportInfo::DrmSupportInfo(const DrmSupportInfo& drmSupportInfo): in DrmSupportInfo() argument
27 mMimeTypeVector(drmSupportInfo.mMimeTypeVector), in DrmSupportInfo()
28 mFileSuffixVector(drmSupportInfo.mFileSuffixVector), in DrmSupportInfo()
29 mDescription(drmSupportInfo.mDescription) { in DrmSupportInfo()
33 bool DrmSupportInfo::operator<(const DrmSupportInfo& drmSupportInfo) const { in operator <()
36 return mDescription < drmSupportInfo.mDescription; in operator <()
39 bool DrmSupportInfo::operator==(const DrmSupportInfo& drmSupportInfo) const { in operator ==()
42 return (mDescription == drmSupportInfo.mDescription); in operator ==()
71 DrmSupportInfo& DrmSupportInfo::operator=(const DrmSupportInfo& drmSupportInfo) { in operator =() argument
72 mMimeTypeVector = drmSupportInfo.mMimeTypeVector; in operator =()
[all …]
DIDrmManagerService.cpp584 DrmSupportInfo drmSupportInfo; in getAllSupportInfo() local
588 drmSupportInfo.addFileSuffix(reply.readString8()); in getAllSupportInfo()
593 drmSupportInfo.addMimeType(reply.readString8()); in getAllSupportInfo()
596 drmSupportInfo.setDescription(reply.readString8()); in getAllSupportInfo()
597 (*drmSupportInfoArray)[index] = drmSupportInfo; in getAllSupportInfo()
1295 DrmSupportInfo drmSupportInfo = drmSupportInfoArray[i]; in onTransact() local
1297 reply->writeInt32(drmSupportInfo.getFileSuffixCount()); in onTransact()
1299 = drmSupportInfo.getFileSuffixIterator(); in onTransact()
1304 reply->writeInt32(drmSupportInfo.getMimeTypeCount()); in onTransact()
1305 DrmSupportInfo::MimeTypeIterator mimeTypeIt = drmSupportInfo.getMimeTypeIterator(); in onTransact()
[all …]
/frameworks/av/include/drm/
DDrmSupportInfo.h40 MimeTypeIterator(DrmSupportInfo* drmSupportInfo) in MimeTypeIterator() argument
41 : mDrmSupportInfo(drmSupportInfo), mIndex(0) {} in MimeTypeIterator()
63 FileSuffixIterator(DrmSupportInfo* drmSupportInfo) in FileSuffixIterator() argument
64 : mDrmSupportInfo(drmSupportInfo), mIndex(0) {} in FileSuffixIterator()
88 DrmSupportInfo(const DrmSupportInfo& drmSupportInfo);
95 DrmSupportInfo& operator=(const DrmSupportInfo& drmSupportInfo);
96 bool operator<(const DrmSupportInfo& drmSupportInfo) const;
97 bool operator==(const DrmSupportInfo& drmSupportInfo) const;
/frameworks/av/drm/drmserver/
DDrmManager.cpp384 DrmSupportInfo* drmSupportInfo in getAllSupportInfo() local
386 if (NULL != drmSupportInfo) { in getAllSupportInfo()
387 drmSupportInfoList.add(*drmSupportInfo); in getAllSupportInfo()
388 delete drmSupportInfo; drmSupportInfo = NULL; in getAllSupportInfo()
569 const DrmSupportInfo& drmSupportInfo = mSupportInfoToPlugInIdMap.keyAt(index); in getSupportedPlugInId() local
571 if (drmSupportInfo.isSupportedMimeType(mimeType)) { in getSupportedPlugInId()
572 plugInId = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); in getSupportedPlugInId()
585 const DrmSupportInfo& drmSupportInfo = mSupportInfoToPlugInIdMap.keyAt(index); in getSupportedPlugInIdFromPath() local
587 if (drmSupportInfo.isSupportedFileSuffix(fileSuffix)) { in getSupportedPlugInIdFromPath()
588 String8 key = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); in getSupportedPlugInIdFromPath()
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
DDrmPassthruPlugIn.cpp128 DrmSupportInfo* drmSupportInfo = new DrmSupportInfo(); in onGetSupportInfo() local
130 drmSupportInfo->addMimeType(String8("application/vnd.passthru.drm")); in onGetSupportInfo()
132 drmSupportInfo->addFileSuffix(String8(".passthru")); in onGetSupportInfo()
134 drmSupportInfo->setDescription(String8("Passthru plug-in")); in onGetSupportInfo()
135 return drmSupportInfo; in onGetSupportInfo()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp351 jobject drmSupportInfo = env->NewObject(clazz, env->GetMethodID(clazz, "<init>", "()V")); in android_drm_DrmManagerClient_getAllSupportInfo() local
359 drmSupportInfo, env->GetMethodID(clazz, "setDescription", "(Ljava/lang/String;)V"), in android_drm_DrmManagerClient_getAllSupportInfo()
365 env->CallVoidMethod(drmSupportInfo, addMimeTypeId, env->NewStringUTF(value.string())); in android_drm_DrmManagerClient_getAllSupportInfo()
372 drmSupportInfo, addFileSuffixId, env->NewStringUTF(value.string())); in android_drm_DrmManagerClient_getAllSupportInfo()
375 env->SetObjectArrayElement(array, i, drmSupportInfo); in android_drm_DrmManagerClient_getAllSupportInfo()