Merge "Fix getDisplayCapabilitiesBasic VTS test" into qt-dev

am: 767a57fb19

Change-Id: I9477c6015409156e1d184ae70c15630e77f44025
This commit is contained in:
Valerie Hau 2019-05-07 21:27:41 -07:00 committed by android-build-merger
commit 18af76ef9f

View file

@ -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;
}