Lines Matching refs:SecurityLevel

54 using ::aidl::android::hardware::drm::SecurityLevel;
202 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
204 case SecurityLevel::SW_SECURE_CRYPTO: in toSecurityLevel()
206 case SecurityLevel::SW_SECURE_DECODE: in toSecurityLevel()
208 case SecurityLevel::HW_SECURE_CRYPTO: in toSecurityLevel()
210 case SecurityLevel::HW_SECURE_DECODE: in toSecurityLevel()
212 case SecurityLevel::HW_SECURE_ALL: in toSecurityLevel()
214 case SecurityLevel::DEFAULT: in toSecurityLevel()
221 static SecurityLevel toAidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toAidlSecurityLevel()
224 return SecurityLevel::SW_SECURE_CRYPTO; in toAidlSecurityLevel()
226 return SecurityLevel::SW_SECURE_DECODE; in toAidlSecurityLevel()
228 return SecurityLevel::HW_SECURE_CRYPTO; in toAidlSecurityLevel()
230 return SecurityLevel::HW_SECURE_DECODE; in toAidlSecurityLevel()
232 return SecurityLevel::HW_SECURE_ALL; in toAidlSecurityLevel()
234 return SecurityLevel::DEFAULT; in toAidlSecurityLevel()
236 return SecurityLevel::UNKNOWN; in toAidlSecurityLevel()
413 DrmPlugin::SecurityLevel level, bool* isSupported) { in isCryptoSchemeSupported()
417 SecurityLevel levelAidl = toAidlSecurityLevel(level); in isCryptoSchemeSupported()
435 if (levelAidl == SecurityLevel::DEFAULT || levelAidl == SecurityLevel::UNKNOWN) { in isCryptoSchemeSupported()
511 DrmStatus DrmHalAidl::openSession(DrmPlugin::SecurityLevel level, Vector<uint8_t>& sessionId) { in openSession()
515 SecurityLevel aSecurityLevel = toAidlSecurityLevel(level); in openSession()
517 if (aSecurityLevel == SecurityLevel::UNKNOWN) { in openSession()
829 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel()
839 SecurityLevel result; in getSecurityLevel()
1095 mPlugin->requiresSecureDecoder(mimeAidl, SecurityLevel::DEFAULT, required); in requiresSecureDecoder()
1105 DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder()