Tracking changes to renaming DisplayConfig to DisplayMode

Bug: 159590486
Test: presubmit
Change-Id: I23509d81e47bbe5245f33aa86a94d8126ace5f8e
This commit is contained in:
Marin Shalamanov
2021-02-03 21:20:15 +01:00
parent 0858c46146
commit da826d6ebe

View File

@@ -41,14 +41,14 @@ static const float kNanoToSeconds = 0.000000001f;
#include <utils/Errors.h>
#include <utils/StrongPointer.h>
#include <android-base/logging.h>
#include <android/hardware/automotive/evs/1.1/IEvsCamera.h>
#include <android/hardware/automotive/evs/1.1/IEvsCameraStream.h>
#include <android/hardware/automotive/evs/1.1/IEvsEnumerator.h>
#include <android/hardware/automotive/evs/1.1/IEvsDisplay.h>
#include <android/hardware/automotive/evs/1.1/IEvsEnumerator.h>
#include <android/hardware/camera/device/3.2/ICameraDevice.h>
#include <android-base/logging.h>
#include <system/camera_metadata.h>
#include <ui/DisplayConfig.h>
#include <ui/DisplayMode.h>
#include <ui/DisplayState.h>
#include <ui/GraphicBuffer.h>
#include <ui/GraphicBufferAllocator.h>
@@ -622,7 +622,7 @@ TEST_P(EvsHidlTest, CameraToDisplayRoundTrip) {
ASSERT_GT(config.size(), 0);
ASSERT_GT(state.size(), 0);
android::DisplayConfig* pConfig = (android::DisplayConfig*)config.data();
android::ui::DisplayMode* pConfig = (android::ui::DisplayMode*)config.data();
const auto width = pConfig->resolution.getWidth();
const auto height = pConfig->resolution.getHeight();
LOG(INFO) << " Resolution: " << width << "x" << height;