diff options
author | Valerie Hau <vhau@google.com> | 2019-05-07 11:45:06 -0700 |
---|---|---|
committer | Valerie Hau <vhau@google.com> | 2019-05-07 11:52:27 -0700 |
commit | 804857176a54c56c8553b557e8d470ee8aef7005 (patch) | |
tree | 1a8ae28b9c7e156fa25621d9ae00ac43765d2a41 /graphics | |
parent | 7af01ada853bfaeced663cf6b6fa1b987da26304 (diff) | |
download | android_hardware_interfaces-804857176a54c56c8553b557e8d470ee8aef7005.tar.gz android_hardware_interfaces-804857176a54c56c8553b557e8d470ee8aef7005.tar.bz2 android_hardware_interfaces-804857176a54c56c8553b557e8d470ee8aef7005.zip |
Fix getDisplayCapabilitiesBasic VTS test
Old test checked error code when calling getBrightnessSupport in the
getDisplayCapabilitiesBasic test. However, it is possible that the
function is not implemented (UNSUPPORTED). We want to return normally
and use the returned supported boolean to check this instead.
Bug: 132043561, 132056857
Test: VtsHalGraphicsComposerV2_3TargetTest
Change-Id: I94f8f39ba9129c4a8d939a5385538db3489c46b9
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/composer/2.3/utils/vts/ComposerVts.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/graphics/composer/2.3/utils/vts/ComposerVts.cpp b/graphics/composer/2.3/utils/vts/ComposerVts.cpp index b7632097a..d4f5b3a4d 100644 --- a/graphics/composer/2.3/utils/vts/ComposerVts.cpp +++ b/graphics/composer/2.3/utils/vts/ComposerVts.cpp @@ -192,10 +192,8 @@ Error ComposerClient::getDisplayCapabilities( bool ComposerClient::getDisplayBrightnessSupport(Display display) { bool support = false; - mClient->getDisplayBrightnessSupport(display, [&](const auto& error, const auto& tmpSupport) { - ASSERT_EQ(Error::NONE, error) << "failed to get brightness support"; - support = tmpSupport; - }); + mClient->getDisplayBrightnessSupport( + display, [&](const auto& /*error*/, const auto& tmpSupport) { support = tmpSupport; }); return support; } |