Home
last modified time | relevance | path

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

12

/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()
119 status_t DrmPlugin::provideKeyResponse( in provideKeyResponse()
141 status_t DrmPlugin::getPropertyByteArray( in getPropertyByteArray()
[all …]
DDrmFactory.cpp48 android::DrmPlugin** plugin) { in createDrmPlugin()
54 *plugin = new DrmPlugin(SessionLibrary::get()); in createDrmPlugin()
/frameworks/av/drm/libmediadrm/
DDrmHalListener.cpp61 DrmPlugin::EventType eventType; in onEvent()
64 eventType = DrmPlugin::kDrmPluginEventProvisionRequired; in onEvent()
67 eventType = DrmPlugin::kDrmPluginEventKeyNeeded; in onEvent()
70 eventType = DrmPlugin::kDrmPluginEventKeyExpired; in onEvent()
73 eventType = DrmPlugin::kDrmPluginEventVendorDefined; in onEvent()
76 eventType = DrmPlugin::kDrmPluginEventSessionReclaimed; in onEvent()
117 type = DrmPlugin::kKeyStatusType_Usable; in onKeysChange()
120 type = DrmPlugin::kKeyStatusType_Expired; in onKeysChange()
123 type = DrmPlugin::kKeyStatusType_OutputNotAllowed; in onKeysChange()
126 type = DrmPlugin::kKeyStatusType_StatusPending; in onKeysChange()
[all …]
DDrmHalHidl.cpp127 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
130 return DrmPlugin::kSecurityLevelSwSecureCrypto; in toSecurityLevel()
132 return DrmPlugin::kSecurityLevelSwSecureDecode; in toSecurityLevel()
134 return DrmPlugin::kSecurityLevelHwSecureCrypto; in toSecurityLevel()
136 return DrmPlugin::kSecurityLevelHwSecureDecode; in toSecurityLevel()
138 return DrmPlugin::kSecurityLevelHwSecureAll; in toSecurityLevel()
140 return DrmPlugin::kSecurityLevelUnknown; in toSecurityLevel()
144 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toHidlSecurityLevel()
146 case DrmPlugin::kSecurityLevelSwSecureCrypto: in toHidlSecurityLevel()
148 case DrmPlugin::kSecurityLevelSwSecureDecode: in toHidlSecurityLevel()
[all …]
DDrmHalAidl.cpp142 static DrmPlugin::KeyRequestType toKeyRequestType(KeyRequestType keyRequestType) { in toKeyRequestType()
145 return DrmPlugin::kKeyRequestType_Initial; in toKeyRequestType()
148 return DrmPlugin::kKeyRequestType_Renewal; in toKeyRequestType()
151 return DrmPlugin::kKeyRequestType_Release; in toKeyRequestType()
154 return DrmPlugin::kKeyRequestType_None; in toKeyRequestType()
157 return DrmPlugin::kKeyRequestType_Update; in toKeyRequestType()
160 return DrmPlugin::kKeyRequestType_Unknown; in toKeyRequestType()
181 static DrmPlugin::HdcpLevel toHdcpLevel(HdcpLevel level) { in toHdcpLevel()
184 return DrmPlugin::kHdcpNone; in toHdcpLevel()
186 return DrmPlugin::kHdcpV1; in toHdcpLevel()
[all …]
DDrmHal.cpp43 DrmPlugin::SecurityLevel securityLevel, bool* result) { in isCryptoSchemeSupported()
63 DrmStatus DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession()
74 String8 const& mimeType, DrmPlugin::KeyType keyType, in getKeyRequest()
77 DrmPlugin::KeyRequestType* keyRequestType) { in getKeyRequest()
153 DrmStatus DrmHal::getHdcpLevels(DrmPlugin::HdcpLevel* connectedLevel, in getHdcpLevels()
154 DrmPlugin::HdcpLevel* maxLevel) const { in getHdcpLevels()
166 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel()
182 DrmPlugin::OfflineLicenseState* licenseState) const { in getOfflineLicenseState()
273 DrmStatus DrmHal::requiresSecureDecoder(const char* mime, DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder()
DDrmMetricsLogger.cpp99 int DrmPluginSecurityLevelToJavaSecurityLevel(DrmPlugin::SecurityLevel securityLevel) { in DrmPluginSecurityLevelToJavaSecurityLevel()
101 case DrmPlugin::k##status: \ in DrmPluginSecurityLevelToJavaSecurityLevel()
128 DrmPlugin::SecurityLevel securityLevel, in isCryptoSchemeSupported()
171 DrmStatus DrmMetricsLogger::openSession(DrmPlugin::SecurityLevel securityLevel, in openSession()
182 ctx.mActualSecurityLevel = DrmPlugin::kSecurityLevelUnknown; in openSession()
213 DrmPlugin::KeyType keyType, in getKeyRequest()
216 DrmPlugin::KeyRequestType* keyRequestType) { in getKeyRequest()
331 DrmStatus DrmMetricsLogger::getHdcpLevels(DrmPlugin::HdcpLevel* connectedLevel, in getHdcpLevels()
332 DrmPlugin::HdcpLevel* maxLevel) const { in getHdcpLevels()
350 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel()
[all …]
/frameworks/av/drm/libmediadrm/fuzzer/
DREADME.md19DrmPlugin::kSecurityLevelUnknown` 1.`DrmPlugin::kSecurityLevelMax` 2.`DrmPlugin::kSecurityLevelSwS…
21 | `keyType` | 0.`DrmPlugin::kKeyType_Offline` 1.`DrmPlugin::kKeyType_Streaming` 2.`DrmPlugin::kKeyT…
Dmediadrm_fuzzer.cpp58 const DrmPlugin::SecurityLevel kSecurityLevel[] = {
59 DrmPlugin::kSecurityLevelUnknown, DrmPlugin::kSecurityLevelMax,
60 DrmPlugin::kSecurityLevelSwSecureCrypto, DrmPlugin::kSecurityLevelSwSecureDecode,
61 DrmPlugin::kSecurityLevelHwSecureCrypto, DrmPlugin::kSecurityLevelHwSecureDecode,
62 DrmPlugin::kSecurityLevelHwSecureAll};
69 const DrmPlugin::KeyType kKeyType[] = {DrmPlugin::kKeyType_Offline, DrmPlugin::kKeyType_Streaming,
70 DrmPlugin::kKeyType_Release};
90 void sendEvent(DrmPlugin::EventType eventType UNUSED_PARAM, in sendEvent()
166 DrmPlugin::SecurityLevel securityLevel; in invokeDrmOpenSession()
170 static_cast<DrmPlugin::SecurityLevel>(mFuzzedDataProvider->ConsumeIntegral<size_t>()); in invokeDrmOpenSession()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DDrmPlugin.cpp70 DrmPlugin::DrmPlugin(SessionLibrary* sessionLibrary) in DrmPlugin() function in aidl::android::hardware::drm::clearkey::DrmPlugin
84 void DrmPlugin::initProperties() { in initProperties()
108 int32_t DrmPlugin::getIntProperty(const std::string& prop, int32_t defaultVal) const { in getIntProperty()
119 int32_t DrmPlugin::getOemError() const { in getOemError()
123 int32_t DrmPlugin::getErrorContext() const { in getErrorContext()
132 void DrmPlugin::installSecureStop(const std::vector<uint8_t>& sessionId) { in installSecureStop()
143 ::ndk::ScopedAStatus DrmPlugin::closeSession(const std::vector<uint8_t>& in_sessionId) { in closeSession()
165 ::ndk::ScopedAStatus DrmPlugin::decrypt(const std::vector<uint8_t>& in_sessionId, in decrypt()
178 ::ndk::ScopedAStatus DrmPlugin::encrypt(const std::vector<uint8_t>& in_sessionId, in encrypt()
191 ::ndk::ScopedAStatus DrmPlugin::getHdcpLevels( in getHdcpLevels()
[all …]
DDrmFactory.cpp54 std::shared_ptr<DrmPlugin> plugin = in createDrmPlugin()
55 ::ndk::SharedRefBase::make<DrmPlugin>(SessionLibrary::get()); in createDrmPlugin()
/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/base/media/jni/
Dandroid_media_MediaDrm.cpp296 virtual void notify(DrmPlugin::EventType eventType, int extra, const ListenerArgs *arg = NULL);
329 void JNIDrmListener::notify(DrmPlugin::EventType eventType, int extra, in notify()
337 case DrmPlugin::kDrmPluginEventProvisionRequired: in notify()
341 case DrmPlugin::kDrmPluginEventKeyNeeded: in notify()
345 case DrmPlugin::kDrmPluginEventKeyExpired: in notify()
349 case DrmPlugin::kDrmPluginEventVendorDefined: in notify()
353 case DrmPlugin::kDrmPluginEventSessionReclaimed: in notify()
357 case DrmPlugin::kDrmPluginEventExpirationUpdate: in notify()
360 case DrmPlugin::kDrmPluginEventKeysChange: in notify()
363 case DrmPlugin::kDrmPluginEventSessionLostState: in notify()
[all …]
Dandroid_media_MediaDrm.h87 virtual void notify(DrmPlugin::EventType eventType, int extra,
94 DrmPlugin::SecurityLevel level,
103 DrmPlugin::EventType eventType,
137 void notify(DrmPlugin::EventType, int extra, const ListenerArgs *args);
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmHal.h30 DrmPlugin::SecurityLevel securityLevel, bool* result);
34 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
40 String8 const &mimeType, DrmPlugin::KeyType keyType,
43 DrmPlugin::KeyRequestType *keyRequestType);
65 virtual DrmStatus getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
66 DrmPlugin::HdcpLevel *maxLevel) const;
70 DrmPlugin::SecurityLevel *level) const;
74 DrmPlugin::OfflineLicenseState *licenseState) const;
114 DrmPlugin::SecurityLevel securityLevel,
DDrmMetricsLogger.h85 DrmPlugin::SecurityLevel mTargetSecurityLevel;
86 DrmPlugin::SecurityLevel mActualSecurityLevel;
100 DrmPlugin::SecurityLevel securityLevel,
108 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
115 DrmPlugin::KeyType keyType,
118 DrmPlugin::KeyRequestType* keyRequestType);
147 virtual DrmStatus getHdcpLevels(DrmPlugin::HdcpLevel* connectedLevel,
148 DrmPlugin::HdcpLevel* maxLevel) const;
151 DrmPlugin::SecurityLevel* level) const;
156 DrmPlugin::OfflineLicenseState* licenseState) const;
[all …]
DIDrm.h56 DrmPlugin::SecurityLevel securityLevel,
64 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
72 String8 const &mimeType, DrmPlugin::KeyType keyType,
75 DrmPlugin::KeyRequestType *keyRequestType) = 0;
106 virtual DrmStatus getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
107 DrmPlugin::HdcpLevel *maxLevel)
112 DrmPlugin::SecurityLevel *level) const = 0;
117 DrmPlugin::OfflineLicenseState *licenseState) const = 0;
169 DrmPlugin::SecurityLevel securityLevel,
DDrmHalAidl.h44 DrmPlugin::SecurityLevel securityLevel, bool* result);
47 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
52 DrmPlugin::KeyType keyType,
55 DrmPlugin::KeyRequestType* keyRequestType);
75 virtual DrmStatus getHdcpLevels(DrmPlugin::HdcpLevel* connectedLevel,
76 DrmPlugin::HdcpLevel* maxLevel) const;
79 DrmPlugin::SecurityLevel* level) const;
83 DrmPlugin::OfflineLicenseState* licenseState) const;
109 DrmPlugin::SecurityLevel securityLevel,
DDrmHalHidl.h70 DrmPlugin::SecurityLevel level, bool* isSupported);
77 virtual DrmStatus openSession(DrmPlugin::SecurityLevel level,
85 String8 const &mimeType, DrmPlugin::KeyType keyType,
88 DrmPlugin::KeyRequestType *keyRequestType);
119 virtual DrmStatus getHdcpLevels(DrmPlugin::HdcpLevel *connectedLevel,
120 DrmPlugin::HdcpLevel *maxLevel) const;
124 DrmPlugin::SecurityLevel *level) const;
129 DrmPlugin::OfflineLicenseState *licenseState) const;
179 DrmPlugin::SecurityLevel securityLevel,
247 DrmPlugin::SecurityLevel level,
DIDrmClient.h40 DrmPlugin::EventType eventType,
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp77 DrmPlugin::EventType eventType,
151 DrmPlugin::EventType eventType, in sendEvent()
163 case DrmPlugin::kDrmPluginEventProvisionRequired: in sendEvent()
166 case DrmPlugin::kDrmPluginEventKeyNeeded: in sendEvent()
169 case DrmPlugin::kDrmPluginEventKeyExpired: in sendEvent()
172 case DrmPlugin::kDrmPluginEventVendorDefined: in sendEvent()
175 case DrmPlugin::kDrmPluginEventSessionReclaimed: in sendEvent()
296 DrmPlugin::kSecurityLevelUnknown, &isSupported); in AMediaDrm_isCryptoSchemeSupported()
384 status_t status = mObj->mDrm->openSession(DrmPlugin::kSecurityLevelMax, session); in AMediaDrm_openSession()
450 DrmPlugin::KeyType mdKeyType; in AMediaDrm_getKeyRequestWithDefaultUrlAndType()
[all …]
/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);
272 DISALLOW_EVIL_CONSTRUCTORS(DrmPlugin);
DDrmFactory.h39 android::DrmPlugin** plugin);
/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()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/include/
DDrmPlugin.h40 struct DrmPlugin : public BnDrmPlugin { struct
42 explicit DrmPlugin(SessionLibrary* sessionLibrary);
43 virtual ~DrmPlugin() { mFileHandle.DeleteAllLicenses(); } in ~DrmPlugin() argument
210 CLEARKEY_DISALLOW_COPY_AND_ASSIGN_AND_NEW(DrmPlugin); argument

12