Home
last modified time | relevance | path

Searched refs:DrmPlugin (Results 1 – 24 of 24) sorted by relevance

/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DDrmPlugin.cpp45 DrmPlugin::DrmPlugin(SessionLibrary* sessionLibrary) in DrmPlugin() function in clearkeydrm::DrmPlugin
52 void DrmPlugin::initProperties() { in initProperties()
65 status_t DrmPlugin::openSession(Vector<uint8_t>& sessionId) { in openSession()
71 status_t DrmPlugin::closeSession(const Vector<uint8_t>& sessionId) { in closeSession()
83 status_t DrmPlugin::getKeyRequest( in getKeyRequest()
91 DrmPlugin::KeyRequestType *keyRequestType) { in getKeyRequest()
101 *keyRequestType = DrmPlugin::kKeyRequestType_Initial; in getKeyRequest()
111 void DrmPlugin::setPlayPolicy() { in setPlayPolicy()
118 status_t DrmPlugin::provideKeyResponse( in provideKeyResponse()
140 status_t DrmPlugin::getPropertyByteArray( in getPropertyByteArray()
[all …]
DDrmFactory.cpp48 android::DrmPlugin** plugin) { in createDrmPlugin()
54 *plugin = new DrmPlugin(SessionLibrary::get()); in createDrmPlugin()
DAndroid.bp27 "DrmPlugin.cpp",
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h38 class DrmPlugin; variable
70 const uint8_t uuid[16], DrmPlugin **plugin) = 0;
77 class DrmPlugin {
193 DrmPlugin() {} in DrmPlugin() function
194 virtual ~DrmPlugin() {} in ~DrmPlugin()
422 Vector<DrmPlugin::KeyStatus> const *keyStatusList,
429 DISALLOW_EVIL_CONSTRUCTORS(DrmPlugin);
435 virtual void sendEvent(DrmPlugin::EventType eventType, int extra,
443 Vector<DrmPlugin::KeyStatus> const *keyStatusList,
447 inline void DrmPlugin::sendEvent(EventType eventType, int extra, in sendEvent()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp131 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
134 return DrmPlugin::kSecurityLevelSwSecureCrypto; in toSecurityLevel()
136 return DrmPlugin::kSecurityLevelSwSecureDecode; in toSecurityLevel()
138 return DrmPlugin::kSecurityLevelHwSecureCrypto; in toSecurityLevel()
140 return DrmPlugin::kSecurityLevelHwSecureDecode; in toSecurityLevel()
142 return DrmPlugin::kSecurityLevelHwSecureAll; in toSecurityLevel()
144 return DrmPlugin::kSecurityLevelUnknown; in toSecurityLevel()
148 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toHidlSecurityLevel()
150 case DrmPlugin::kSecurityLevelSwSecureCrypto: in toHidlSecurityLevel()
152 case DrmPlugin::kSecurityLevelSwSecureDecode: in toHidlSecurityLevel()
[all …]
DIDrm.cpp87 DrmPlugin::SecurityLevel level, bool *isSupported) { in isCryptoSchemeSupported()
130 virtual status_t openSession(DrmPlugin::SecurityLevel level, in openSession()
161 String8 const &mimeType, DrmPlugin::KeyType keyType, in getKeyRequest()
164 DrmPlugin::KeyRequestType *keyRequestType) { in getKeyRequest()
186 *keyRequestType = static_cast<DrmPlugin::KeyRequestType>(reply.readInt32()); in getKeyRequest()
418 DrmPlugin::OfflineLicenseState *licenseState) const { in getOfflineLicenseState()
425 *licenseState = DrmPlugin::OfflineLicenseState::kOfflineLicenseStateUnknown; in getOfflineLicenseState()
428 *licenseState = static_cast<DrmPlugin::OfflineLicenseState>(reply.readInt32()); in getOfflineLicenseState()
446 virtual status_t getHdcpLevels(DrmPlugin::HdcpLevel *connected, in getHdcpLevels()
447 DrmPlugin::HdcpLevel *max) const { in getHdcpLevels()
[all …]
DIDrmClient.cpp43 virtual void notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj) in notify()
73 notify((DrmPlugin::EventType)eventType, extra, &obj); in onTransact()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp74 DrmPlugin::DrmPlugin(SessionLibrary* sessionLibrary) in DrmPlugin() function in android::hardware::drm::V1_2::clearkey::DrmPlugin
88 void DrmPlugin::initProperties() { in initProperties()
113 void DrmPlugin::installSecureStop(const hidl_vec<uint8_t>& sessionId) { in installSecureStop()
122 Return<void> DrmPlugin::openSession(openSession_cb _hidl_cb) { in openSession()
133 Return<void> DrmPlugin::openSession_1_1(SecurityLevel securityLevel, in openSession_1_1()
145 Return<Status> DrmPlugin::closeSession(const hidl_vec<uint8_t>& sessionId) { in closeSession()
164 Status_V1_2 DrmPlugin::getKeyRequestCommon(const hidl_vec<uint8_t>& scope, in getKeyRequestCommon()
236 Return<void> DrmPlugin::getKeyRequest( in getKeyRequest()
258 Return<void> DrmPlugin::getKeyRequest_1_1( in getKeyRequest_1_1()
279 Return<void> DrmPlugin::getKeyRequest_1_2( in getKeyRequest_1_2()
[all …]
DDrmFactory.cpp68 DrmPlugin *plugin = NULL; in createPlugin()
76 plugin = new DrmPlugin(SessionLibrary::get()); in createPlugin()
DAndroid.bp30 "DrmPlugin.cpp",
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp260 virtual void notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj = NULL);
293 void JNIDrmListener::notify(DrmPlugin::EventType eventType, int extra, in notify()
301 case DrmPlugin::kDrmPluginEventProvisionRequired: in notify()
305 case DrmPlugin::kDrmPluginEventKeyNeeded: in notify()
309 case DrmPlugin::kDrmPluginEventKeyExpired: in notify()
313 case DrmPlugin::kDrmPluginEventVendorDefined: in notify()
317 case DrmPlugin::kDrmPluginEventSessionReclaimed: in notify()
321 case DrmPlugin::kDrmPluginEventExpirationUpdate: in notify()
324 case DrmPlugin::kDrmPluginEventKeysChange: in notify()
327 case DrmPlugin::kDrmPluginEventSessionLostState: in notify()
[all …]
Dandroid_media_MediaDrm.h35 virtual void notify(DrmPlugin::EventType eventType, int extra,
42 DrmPlugin::SecurityLevel level,
50 void notify(DrmPlugin::EventType, int extra, const Parcel *obj);
/frameworks/av/media/libmedia/include/media/
DIDrm.h39 DrmPlugin::SecurityLevel securityLevel,
47 virtual status_t openSession(DrmPlugin::SecurityLevel securityLevel,
55 String8 const &mimeType, DrmPlugin::KeyType keyType,
58 DrmPlugin::KeyRequestType *keyRequestType) = 0;
89 virtual status_t getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
90 DrmPlugin::HdcpLevel *maxLevel)
95 DrmPlugin::SecurityLevel *level) const = 0;
100 DrmPlugin::OfflineLicenseState *licenseState) const = 0;
DDrmHal.h69 DrmPlugin::SecurityLevel level,
77 virtual status_t openSession(DrmPlugin::SecurityLevel level,
85 String8 const &mimeType, DrmPlugin::KeyType keyType,
88 DrmPlugin::KeyRequestType *keyRequestType);
119 virtual status_t getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
120 DrmPlugin::HdcpLevel *maxLevel) const;
124 DrmPlugin::SecurityLevel *level) const;
129 DrmPlugin::OfflineLicenseState *licenseState) const;
237 DrmPlugin::SecurityLevel level,
DIDrmClient.h32 virtual void notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj) = 0;
/frameworks/av/include/mediadrm/
DIDrm.h39 DrmPlugin::SecurityLevel securityLevel,
47 virtual status_t openSession(DrmPlugin::SecurityLevel securityLevel,
55 String8 const &mimeType, DrmPlugin::KeyType keyType,
58 DrmPlugin::KeyRequestType *keyRequestType) = 0;
89 virtual status_t getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
90 DrmPlugin::HdcpLevel *maxLevel)
95 DrmPlugin::SecurityLevel *level) const = 0;
100 DrmPlugin::OfflineLicenseState *licenseState) const = 0;
DDrmHal.h69 DrmPlugin::SecurityLevel level,
77 virtual status_t openSession(DrmPlugin::SecurityLevel level,
85 String8 const &mimeType, DrmPlugin::KeyType keyType,
88 DrmPlugin::KeyRequestType *keyRequestType);
119 virtual status_t getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
120 DrmPlugin::HdcpLevel *maxLevel) const;
124 DrmPlugin::SecurityLevel *level) const;
129 DrmPlugin::OfflineLicenseState *licenseState) const;
237 DrmPlugin::SecurityLevel level,
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h40 class DrmPlugin : public android::DrmPlugin {
42 explicit DrmPlugin(SessionLibrary* sessionLibrary);
44 virtual ~DrmPlugin() {} in ~DrmPlugin()
58 DrmPlugin::KeyRequestType *keyRequestType);
271 DISALLOW_EVIL_CONSTRUCTORS(DrmPlugin);
DDrmFactory.h39 android::DrmPlugin** plugin);
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp74 void notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj);
91 void DrmListener::notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj) { in notify()
115 if (DrmPlugin::kDrmPluginEventExpirationUpdate == eventType) { in notify()
123 } else if (DrmPlugin::kDrmPluginEventKeysChange == eventType) { in notify()
163 case DrmPlugin::kDrmPluginEventProvisionRequired: in notify()
166 case DrmPlugin::kDrmPluginEventKeyNeeded: in notify()
169 case DrmPlugin::kDrmPluginEventKeyExpired: in notify()
172 case DrmPlugin::kDrmPluginEventVendorDefined: in notify()
175 case DrmPlugin::kDrmPluginEventSessionReclaimed: in notify()
323 DrmPlugin::kSecurityLevelUnknown, &isSupported); in AMediaDrm_isCryptoSchemeSupported()
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp60 DrmPlugin **plugin) in createDrmPlugin()
421 DrmPlugin::EventType eventType = (DrmPlugin::EventType)code; in setPropertyString()
463 Vector<DrmPlugin::KeyStatus> keyStatusList; in setPropertyString()
464 DrmPlugin::KeyStatus keyStatus; in setPropertyString()
468 keyStatus.mType = DrmPlugin::kKeyStatusType_Usable; in setPropertyString()
474 keyStatus.mType = DrmPlugin::kKeyStatusType_Expired; in setPropertyString()
480 keyStatus.mType = DrmPlugin::kKeyStatusType_OutputNotAllowed; in setPropertyString()
486 keyStatus.mType = DrmPlugin::kKeyStatusType_StatusPending; in setPropertyString()
492 keyStatus.mType = DrmPlugin::kKeyStatusType_InternalError; in setPropertyString()
DMockDrmCryptoPlugin.h37 DrmPlugin **plugin);
53 class MockDrmPlugin : public DrmPlugin {
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h69 struct DrmPlugin : public IDrmPlugin { struct
70 explicit DrmPlugin(SessionLibrary* sessionLibrary);
72 virtual ~DrmPlugin() { mFileHandle.DeleteAllLicenses(); } in ~DrmPlugin() argument
420 CLEARKEY_DISALLOW_COPY_AND_ASSIGN_AND_NEW(DrmPlugin); argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp164 DrmPlugin::kSecurityLevelUnknown, &isSupported); in getSupportedDrmSchemes()