Pick widevine oemcrypto-v18 change
No-Typo-Check: From a third party header file Bug: 260918793 Test: unit tests Test: atp v2/widevine-eng/drm_compliance Change-Id: I36effd6a10a99bdb2399ab1f4a0fad026d607c70
This commit is contained in:
@@ -105,6 +105,15 @@ void SetAttributeField<drm_metrics::Attributes::kErrorDetailFieldNumber,
|
||||
attributes->set_error_detail(error_detail);
|
||||
}
|
||||
|
||||
template <>
|
||||
void SetAttributeField<
|
||||
drm_metrics::Attributes::kOemCryptoSignatureHashAlgorithmFieldNumber,
|
||||
OEMCrypto_SignatureHashAlgorithm>(
|
||||
const OEMCrypto_SignatureHashAlgorithm& algorithm,
|
||||
drm_metrics::Attributes* attributes) {
|
||||
attributes->set_oem_crypto_signature_hash_algorithm(algorithm);
|
||||
}
|
||||
|
||||
template <>
|
||||
void SetAttributeField<0, util::Unused>(const util::Unused&,
|
||||
drm_metrics::Attributes*) {
|
||||
|
||||
@@ -161,8 +161,6 @@ void CryptoMetrics::Serialize(
|
||||
crypto_metrics->mutable_oemcrypto_rewrap_device_rsa_key_30_time_us());
|
||||
crypto_metrics->set_allocated_oemcrypto_security_patch_level(
|
||||
oemcrypto_security_patch_level_.ToProto());
|
||||
oemcrypto_select_key_.ToProto(
|
||||
crypto_metrics->mutable_oemcrypto_select_key_time_us());
|
||||
crypto_metrics->set_allocated_oemcrypto_usage_table_support(
|
||||
oemcrypto_usage_table_support_.ToProto());
|
||||
oemcrypto_update_usage_table_.ToProto(
|
||||
@@ -213,6 +211,10 @@ void CryptoMetrics::Serialize(
|
||||
oemcrypto_watermarking_support_.ToProto());
|
||||
crypto_metrics->set_allocated_oemcrypto_production_readiness(
|
||||
oemcrypto_production_readiness_.ToProto());
|
||||
oemcrypto_get_key_handle_.ToProto(
|
||||
crypto_metrics->mutable_oemcrypto_get_key_handle_time_us());
|
||||
oemcrypto_get_signature_hash_algorithm_.ToProto(
|
||||
crypto_metrics->mutable_oemcrypto_get_signature_hash_algorithm());
|
||||
}
|
||||
|
||||
SessionMetrics::SessionMetrics() : session_id_(""), completed_(false) {}
|
||||
|
||||
@@ -49,6 +49,9 @@ message Attributes {
|
||||
optional uint32 license_type = 17;
|
||||
// Error detail supplemental to the error_code field.
|
||||
optional int32 error_detail = 18;
|
||||
// The type of hashing algorithm used in signing with a private key. See
|
||||
// OEMCrypto_SignatureHashAlgorithm in OEMCryptoCENC.h.
|
||||
optional uint32 oem_crypto_signature_hash_algorithm = 19;
|
||||
}
|
||||
|
||||
// The Counter message is used to store a count value with an associated
|
||||
@@ -194,6 +197,8 @@ message WvCdmMetrics {
|
||||
optional ValueMetric oemcrypto_maximum_usage_table_header_size = 84;
|
||||
optional ValueMetric oemcrypto_watermarking_support = 85;
|
||||
optional ValueMetric oemcrypto_production_readiness = 86;
|
||||
repeated DistributionMetric oemcrypto_get_key_handle_time_us = 87;
|
||||
repeated CounterMetric oemcrypto_get_signature_hash_algorithm = 88;
|
||||
}
|
||||
|
||||
// This contains metrics that were captured within a CdmSession. This contains
|
||||
|
||||
Reference in New Issue
Block a user