Home | History | Annotate | Download | only in libmediadrm

Lines Matching refs:DrmPlugin

131 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) {
134 return DrmPlugin::kSecurityLevelSwSecureCrypto;
136 return DrmPlugin::kSecurityLevelSwSecureDecode;
138 return DrmPlugin::kSecurityLevelHwSecureCrypto;
140 return DrmPlugin::kSecurityLevelHwSecureDecode;
142 return DrmPlugin::kSecurityLevelHwSecureAll;
144 return DrmPlugin::kSecurityLevelUnknown;
148 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) {
150 case DrmPlugin::kSecurityLevelSwSecureCrypto:
152 case DrmPlugin::kSecurityLevelSwSecureDecode:
154 case DrmPlugin::kSecurityLevelHwSecureCrypto:
156 case DrmPlugin::kSecurityLevelHwSecureDecode:
158 case DrmPlugin::kSecurityLevelHwSecureAll:
165 static DrmPlugin::OfflineLicenseState toOfflineLicenseState(
169 return DrmPlugin::kOfflineLicenseStateUsable;
171 return DrmPlugin::kOfflineLicenseStateReleased;
173 return DrmPlugin::kOfflineLicenseStateUnknown;
177 static DrmPlugin::HdcpLevel toHdcpLevel(HdcpLevel_V1_2 level) {
180 return DrmPlugin::kHdcpNone;
182 return DrmPlugin::kHdcpV1;
184 return DrmPlugin::kHdcpV2;
186 return DrmPlugin::kHdcpV2_1;
188 return DrmPlugin::kHdcpV2_2;
190 return DrmPlugin::kHdcpV2_3;
192 return DrmPlugin::kHdcpNoOutput;
194 return DrmPlugin::kHdcpLevelUnknown;
476 DrmPlugin::EventType eventType;
479 eventType = DrmPlugin::kDrmPluginEventProvisionRequired;
482 eventType = DrmPlugin::kDrmPluginEventKeyNeeded;
485 eventType = DrmPlugin::kDrmPluginEventKeyExpired;
488 eventType = DrmPlugin::kDrmPluginEventVendorDefined;
491 eventType = DrmPlugin::kDrmPluginEventSessionReclaimed;
514 listener->notify(DrmPlugin::kDrmPluginEventExpirationUpdate, 0, &obj);
549 type = DrmPlugin::kKeyStatusType_Usable;
552 type = DrmPlugin::kKeyStatusType_Expired;
555 type = DrmPlugin::kKeyStatusType_OutputNotAllowed;
558 type = DrmPlugin::kKeyStatusType_StatusPending;
561 type = DrmPlugin::kKeyStatusType_UsableInFuture;
565 type = DrmPlugin::kKeyStatusType_InternalError;
574 listener->notify(DrmPlugin::kDrmPluginEventKeysChange, 0, &obj);
598 listener->notify(DrmPlugin::kDrmPluginEventSessionLostState, 0, &obj);
606 DrmPlugin::SecurityLevel level,
611 if (level == DrmPlugin::kSecurityLevelUnknown) {
636 DrmPlugin::SecurityLevel level,
692 status_t DrmHal::openSession(DrmPlugin::SecurityLevel level,
700 if (level == DrmPlugin::kSecurityLevelMax) {
785 static DrmPlugin::KeyRequestType toKeyRequestType(
789 return DrmPlugin::kKeyRequestType_Initial;
792 return DrmPlugin::kKeyRequestType_Renewal;
795 return DrmPlugin::kKeyRequestType_Release;
798 return DrmPlugin::kKeyRequestType_Unknown;
803 static DrmPlugin::KeyRequestType toKeyRequestType_1_1(
807 return DrmPlugin::kKeyRequestType_None;
810 return DrmPlugin::kKeyRequestType_Update;
820 DrmPlugin::KeyType keyType, KeyedVector<String8,
822 String8 &defaultUrl, DrmPlugin::KeyRequestType *keyRequestType) {
830 if (keyType == DrmPlugin::kKeyType_Streaming) {
832 } else if (keyType == DrmPlugin::kKeyType_Offline) {
834 } else if (keyType == DrmPlugin::kKeyType_Release) {
1132 status_t DrmHal::getHdcpLevels(DrmPlugin::HdcpLevel *connected,
1133 DrmPlugin::HdcpLevel *max) const {
1142 *connected = DrmPlugin::kHdcpLevelUnknown;
1143 *max = DrmPlugin::kHdcpLevelUnknown;
1201 DrmPlugin::SecurityLevel *level) const {
1214 *level = DrmPlugin::kSecurityLevelUnknown;
1269 DrmPlugin::OfflineLicenseState *licenseState) const {
1279 *licenseState = DrmPlugin::kOfflineLicenseStateUnknown;