libwvhidl: implement setPlaybackId
Bug: 159337195 Bug: 168341163 Test: GtsMediaTestCases MediaDrmTest#testSetPlaybackId Change-Id: I4fc687892c9dd3b8077b3ecdfd9bbc355b298571
This commit is contained in:
@@ -337,6 +337,7 @@ class SessionMetrics {
|
||||
ValueMetric<std::string> oemcrypto_build_info_;
|
||||
ValueMetric<std::string> license_sdk_version_;
|
||||
ValueMetric<std::string> license_service_version_;
|
||||
ValueMetric<std::string> playback_id_;
|
||||
|
||||
// Serialize the session metrics to the provided |metric_group|.
|
||||
// |metric_group| is owned by the caller and must not be null.
|
||||
|
||||
@@ -246,6 +246,8 @@ void SessionMetrics::SerializeSessionMetrics(
|
||||
license_sdk_version_.ToProto());
|
||||
session_metrics->set_allocated_license_service_version(
|
||||
license_service_version_.ToProto());
|
||||
session_metrics->set_allocated_playback_id(
|
||||
playback_id_.ToProto());
|
||||
}
|
||||
|
||||
OemCryptoDynamicAdapterMetrics::OemCryptoDynamicAdapterMetrics()
|
||||
|
||||
@@ -211,6 +211,7 @@ message WvCdmMetrics {
|
||||
optional ValueMetric oemcrypto_build_info = 8;
|
||||
optional ValueMetric license_sdk_version = 9;
|
||||
optional ValueMetric license_service_version = 10;
|
||||
optional ValueMetric playback_id = 11;
|
||||
}
|
||||
|
||||
// These are metrics recorded at the Engine level. This includes CryptoSession
|
||||
|
||||
Reference in New Issue
Block a user