Merge "Handle the empty display information" into rvc-qpr-dev am: be5dec4265
am: d312f17772
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12746598 Change-Id: Ia60211b2e108d3b0b5dd758aed7b9a3871173302
This commit is contained in:
commit
0cfdd53e9c
1 changed files with 6 additions and 1 deletions
|
@ -72,6 +72,8 @@ using ::android::hardware::automotive::evs::V1_1::BufferDesc;
|
|||
using ::android::hardware::automotive::evs::V1_0::DisplayDesc;
|
||||
using ::android::hardware::automotive::evs::V1_0::DisplayState;
|
||||
using ::android::hardware::graphics::common::V1_0::PixelFormat;
|
||||
using ::android::frameworks::automotive::display::V1_0::HwDisplayConfig;
|
||||
using ::android::frameworks::automotive::display::V1_0::HwDisplayState;
|
||||
using IEvsCamera_1_0 = ::android::hardware::automotive::evs::V1_0::IEvsCamera;
|
||||
using IEvsCamera_1_1 = ::android::hardware::automotive::evs::V1_1::IEvsCamera;
|
||||
using IEvsDisplay_1_0 = ::android::hardware::automotive::evs::V1_0::IEvsDisplay;
|
||||
|
@ -605,7 +607,10 @@ TEST_P(EvsHidlTest, CameraToDisplayRoundTrip) {
|
|||
LOG(INFO) << "Display " << targetDisplayId << " is alreay in use.";
|
||||
|
||||
// Get the display descriptor
|
||||
pDisplay->getDisplayInfo_1_1([](const auto& config, const auto& state) {
|
||||
pDisplay->getDisplayInfo_1_1([](const HwDisplayConfig& config, const HwDisplayState& state) {
|
||||
ASSERT_GT(config.size(), 0);
|
||||
ASSERT_GT(state.size(), 0);
|
||||
|
||||
android::DisplayConfig* pConfig = (android::DisplayConfig*)config.data();
|
||||
const auto width = pConfig->resolution.getWidth();
|
||||
const auto height = pConfig->resolution.getHeight();
|
||||
|
|
Loading…
Reference in a new issue