Parameterize "forbid analog" in mod mock
Merge from Widevine repo of http://go/wvgerrit/43660 This CL adds parameters to the mod mock to control various analog output behaviour. bug: 38005556 Change-Id: I308b300a2dd73f6bb7fb798d56c2c631a09f3765
This commit is contained in:
@@ -1140,11 +1140,18 @@ extern "C" OEMCryptoResult OEMCrypto_GetHDCPCapability(
|
||||
}
|
||||
|
||||
extern "C" uint32_t OEMCrypto_GetAnalogOutputFlags() {
|
||||
// TODO(b/69867568, fredgc): parameterize this.
|
||||
return 0;
|
||||
if (!crypto_engine) {
|
||||
LOGE("OEMCrypto_GetAnalogOutputFlags: OEMCrypto Not Initialized.");
|
||||
return 0;
|
||||
}
|
||||
return crypto_engine->analog_output_flags();
|
||||
}
|
||||
|
||||
extern "C" bool OEMCrypto_SupportsUsageTable() {
|
||||
if (!crypto_engine) {
|
||||
LOGE("OEMCrypto_SupportsUsageTable: OEMCrypto Not Initialized.");
|
||||
return 0;
|
||||
}
|
||||
bool supports_usage = crypto_engine->config_supports_usage_table();
|
||||
return supports_usage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user