Added CDM support for production readiness reporting. am: cd5afa88a6 am: cce550d006
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/18195696 Change-Id: Ib68038545cfc302f34eabe52264188b3e7ff356b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -221,6 +221,11 @@ class CryptoSession {
|
||||
RequestedSecurityLevel requested_security_level,
|
||||
CdmWatermarkingSupport* support);
|
||||
|
||||
virtual bool GetProductionReadiness(CdmProductionReadiness* readiness);
|
||||
virtual bool GetProductionReadiness(
|
||||
RequestedSecurityLevel requested_security_level,
|
||||
CdmProductionReadiness* readiness);
|
||||
|
||||
virtual bool GetMaximumUsageTableEntries(
|
||||
RequestedSecurityLevel security_level, size_t* number_of_entries);
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ OEMCryptoResult OEMCrypto_GetOEMPublicCertificate(uint8_t* public_cert,
|
||||
RequestedSecurityLevel level);
|
||||
OEMCrypto_WatermarkingSupport OEMCrypto_GetWatermarkingSupport(
|
||||
RequestedSecurityLevel level);
|
||||
OEMCryptoResult OEMCrypto_ProductionReady(RequestedSecurityLevel level);
|
||||
} // namespace wvcdm
|
||||
|
||||
/* The following functions are deprecated in OEMCrypto v13. They are defined
|
||||
|
||||
@@ -112,6 +112,7 @@ static const std::string QUERY_KEY_ANALOG_OUTPUT_CAPABILITIES =
|
||||
static const std::string QUERY_KEY_CAN_DISABLE_ANALOG_OUTPUT =
|
||||
"CanDisableAnalogOutput";
|
||||
static const std::string QUERY_KEY_WATERMARKING_SUPPORT = "WatermarkingSupport";
|
||||
static const std::string QUERY_KEY_PRODUCTION_READY = "ProductionReady";
|
||||
|
||||
static const std::string QUERY_VALUE_TRUE = "True";
|
||||
static const std::string QUERY_VALUE_FALSE = "False";
|
||||
|
||||
@@ -599,6 +599,12 @@ enum CdmWatermarkingSupport : int32_t {
|
||||
kWatermarkingAlwaysOn
|
||||
};
|
||||
|
||||
enum CdmProductionReadiness : int32_t {
|
||||
kProductionReadinessUnknown,
|
||||
kProductionReadinessTrue,
|
||||
kProductionReadinessFalse,
|
||||
};
|
||||
|
||||
class CdmKeyAllowedUsage {
|
||||
public:
|
||||
CdmKeyAllowedUsage() { Clear(); }
|
||||
@@ -842,6 +848,7 @@ const char* CdmUsageEntryStorageTypeToString(CdmUsageEntryStorageType type);
|
||||
const char* RequestedSecurityLevelToString(
|
||||
RequestedSecurityLevel security_level);
|
||||
const char* CdmWatermarkingSupportToString(CdmWatermarkingSupport support);
|
||||
const char* CdmProductionReadinessToString(CdmProductionReadiness readiness);
|
||||
// Converts a generic, unknown enum value to a string representation
|
||||
// containing its numeric value.
|
||||
// The pointer returned from this function is thread_local.
|
||||
|
||||
Reference in New Issue
Block a user