Query analog output capabilities.
[ Merge of http://go/wvgerrit/107763 ] This CL enables the ability to query the CDM for the analog output capabilites of the device. Due to the number of possibilities that OEMCrypto can report, two queries are exposed: - Output capabilities: None, Supported, CGMS-C, Unknown - Can disable: True, False, Unknown Bug: 168322023 Test: Android integration test Change-Id: I8036a89237d698f170d2c1901c41d1d6b708c917
This commit is contained in:
@@ -2648,9 +2648,9 @@ bool CryptoSession::GetAnalogOutputCapabilities(bool* can_support_output,
|
||||
bool* can_disable_output,
|
||||
bool* can_support_cgms_a) {
|
||||
LOGV("Getting analog output capabilities: id = %u", oec_session_id_);
|
||||
uint32_t flags;
|
||||
WithOecReadLock("GetAnalogOutputCapabilities", [&] {
|
||||
flags = OEMCrypto_GetAnalogOutputFlags(requested_security_level_);
|
||||
RETURN_IF_UNINITIALIZED(false);
|
||||
const uint32_t flags = WithOecReadLock("GetAnalogOutputCapabilities", [&] {
|
||||
return OEMCrypto_GetAnalogOutputFlags(requested_security_level_);
|
||||
});
|
||||
|
||||
if ((flags & OEMCrypto_Unknown_Analog_Output) != 0) return false;
|
||||
|
||||
Reference in New Issue
Block a user