Merge latest oemcrypto-v17 change
No-Typo-Check: Not related to this change. Bug: 161477208 Change-Id: I99e4780f6855b7045aa0cd5a49c13d2d0d51ed64
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
c924960962
commit
642965c678
@@ -37,7 +37,7 @@ PolicyEngine::PolicyEngine(CdmSessionId session_id,
|
||||
event_listener_(event_listener),
|
||||
license_keys_(new LicenseKeys(crypto_session->GetSecurityLevel())),
|
||||
policy_timers_(new PolicyTimersV15),
|
||||
clock_(new Clock) {
|
||||
clock_(new wvutil::Clock) {
|
||||
InitDevice(crypto_session);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ bool PolicyEngine::CanDecryptContent(const KeyId& key_id) {
|
||||
return license_keys_->CanDecryptContent(key_id);
|
||||
} else {
|
||||
LOGE("Provided content key is not in license: key_id = %s",
|
||||
b2a_hex(key_id).c_str());
|
||||
wvutil::b2a_hex(key_id).c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -424,7 +424,7 @@ int64_t PolicyEngine::GetCurrentTime() {
|
||||
return current_time;
|
||||
}
|
||||
|
||||
void PolicyEngine::set_clock(Clock* clock) { clock_.reset(clock); }
|
||||
void PolicyEngine::set_clock(wvutil::Clock* clock) { clock_.reset(clock); }
|
||||
|
||||
void PolicyEngine::SetSecurityLevelForTest(CdmSecurityLevel security_level) {
|
||||
license_keys_->SetSecurityLevelForTest(security_level);
|
||||
|
||||
Reference in New Issue
Block a user