Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 871f02e4 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6887726 from be5dec42 to rvc-qpr2-release

Change-Id: I936ec8d7aa451e4388c3318824ee78070c0f950b
parents c2b0e192 be5dec42
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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();