Lines Matching refs:DrmPlugin
123 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
126 return DrmPlugin::kSecurityLevelSwSecureCrypto; in toSecurityLevel()
128 return DrmPlugin::kSecurityLevelSwSecureDecode; in toSecurityLevel()
130 return DrmPlugin::kSecurityLevelHwSecureCrypto; in toSecurityLevel()
132 return DrmPlugin::kSecurityLevelHwSecureDecode; in toSecurityLevel()
134 return DrmPlugin::kSecurityLevelHwSecureAll; in toSecurityLevel()
136 return DrmPlugin::kSecurityLevelUnknown; in toSecurityLevel()
140 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toHidlSecurityLevel()
142 case DrmPlugin::kSecurityLevelSwSecureCrypto: in toHidlSecurityLevel()
144 case DrmPlugin::kSecurityLevelSwSecureDecode: in toHidlSecurityLevel()
146 case DrmPlugin::kSecurityLevelHwSecureCrypto: in toHidlSecurityLevel()
148 case DrmPlugin::kSecurityLevelHwSecureDecode: in toHidlSecurityLevel()
150 case DrmPlugin::kSecurityLevelHwSecureAll: in toHidlSecurityLevel()
157 static DrmPlugin::OfflineLicenseState toOfflineLicenseState( in toOfflineLicenseState()
161 return DrmPlugin::kOfflineLicenseStateUsable; in toOfflineLicenseState()
163 return DrmPlugin::kOfflineLicenseStateReleased; in toOfflineLicenseState()
165 return DrmPlugin::kOfflineLicenseStateUnknown; in toOfflineLicenseState()
169 static DrmPlugin::HdcpLevel toHdcpLevel(HdcpLevel_V1_2 level) { in toHdcpLevel()
172 return DrmPlugin::kHdcpNone; in toHdcpLevel()
174 return DrmPlugin::kHdcpV1; in toHdcpLevel()
176 return DrmPlugin::kHdcpV2; in toHdcpLevel()
178 return DrmPlugin::kHdcpV2_1; in toHdcpLevel()
180 return DrmPlugin::kHdcpV2_2; in toHdcpLevel()
182 return DrmPlugin::kHdcpV2_3; in toHdcpLevel()
184 return DrmPlugin::kHdcpNoOutput; in toHdcpLevel()
186 return DrmPlugin::kHdcpLevelUnknown; in toHdcpLevel()
452 DrmPlugin::EventType eventType; in sendEvent()
455 eventType = DrmPlugin::kDrmPluginEventProvisionRequired; in sendEvent()
458 eventType = DrmPlugin::kDrmPluginEventKeyNeeded; in sendEvent()
461 eventType = DrmPlugin::kDrmPluginEventKeyExpired; in sendEvent()
464 eventType = DrmPlugin::kDrmPluginEventVendorDefined; in sendEvent()
467 eventType = DrmPlugin::kDrmPluginEventSessionReclaimed; in sendEvent()
517 type = DrmPlugin::kKeyStatusType_Usable; in sendKeysChange_1_2()
520 type = DrmPlugin::kKeyStatusType_Expired; in sendKeysChange_1_2()
523 type = DrmPlugin::kKeyStatusType_OutputNotAllowed; in sendKeysChange_1_2()
526 type = DrmPlugin::kKeyStatusType_StatusPending; in sendKeysChange_1_2()
529 type = DrmPlugin::kKeyStatusType_UsableInFuture; in sendKeysChange_1_2()
533 type = DrmPlugin::kKeyStatusType_InternalError; in sendKeysChange_1_2()
571 DrmPlugin::SecurityLevel level, in matchMimeTypeAndSecurityLevel()
576 if (level == DrmPlugin::kSecurityLevelUnknown) { in matchMimeTypeAndSecurityLevel()
601 DrmPlugin::SecurityLevel level, in isCryptoSchemeSupported()
657 status_t DrmHal::openSession(DrmPlugin::SecurityLevel level, in openSession()
665 if (level == DrmPlugin::kSecurityLevelMax) { in openSession()
752 static DrmPlugin::KeyRequestType toKeyRequestType( in toKeyRequestType()
756 return DrmPlugin::kKeyRequestType_Initial; in toKeyRequestType()
759 return DrmPlugin::kKeyRequestType_Renewal; in toKeyRequestType()
762 return DrmPlugin::kKeyRequestType_Release; in toKeyRequestType()
765 return DrmPlugin::kKeyRequestType_Unknown; in toKeyRequestType()
770 static DrmPlugin::KeyRequestType toKeyRequestType_1_1( in toKeyRequestType_1_1()
774 return DrmPlugin::kKeyRequestType_None; in toKeyRequestType_1_1()
777 return DrmPlugin::kKeyRequestType_Update; in toKeyRequestType_1_1()
787 DrmPlugin::KeyType keyType, KeyedVector<String8, in getKeyRequest()
789 String8 &defaultUrl, DrmPlugin::KeyRequestType *keyRequestType) { in getKeyRequest()
797 if (keyType == DrmPlugin::kKeyType_Streaming) { in getKeyRequest()
799 } else if (keyType == DrmPlugin::kKeyType_Offline) { in getKeyRequest()
801 } else if (keyType == DrmPlugin::kKeyType_Release) { in getKeyRequest()
1098 status_t DrmHal::getHdcpLevels(DrmPlugin::HdcpLevel *connected, in getHdcpLevels()
1099 DrmPlugin::HdcpLevel *max) const { in getHdcpLevels()
1108 *connected = DrmPlugin::kHdcpLevelUnknown; in getHdcpLevels()
1109 *max = DrmPlugin::kHdcpLevelUnknown; in getHdcpLevels()
1167 DrmPlugin::SecurityLevel *level) const { in getSecurityLevel()
1180 *level = DrmPlugin::kSecurityLevelUnknown; in getSecurityLevel()
1235 DrmPlugin::OfflineLicenseState *licenseState) const { in getOfflineLicenseState()
1245 *licenseState = DrmPlugin::kOfflineLicenseStateUnknown; in getOfflineLicenseState()