test-hwc2: present display
Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
frameworks/native/libs/gui/BufferQueueCore.cpp.
Recompile and flash.
Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
Push test-hwc2 to device.
Run "adb root && adb shell stop".
Run test case. Ex: "./test-hwc2"
Change-Id: I845320afdf635d1716310d1183bcb10515615517
diff --git a/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h b/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
index 17f5079..0e7dd22 100644
--- a/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
+++ b/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
@@ -18,6 +18,7 @@
#define _HWC2_TEST_LAYER_H
#include <android-base/unique_fd.h>
+#include <unordered_map>
#include "Hwc2TestBuffer.h"
#include "Hwc2TestProperties.h"
@@ -32,6 +33,10 @@
public:
Hwc2TestLayer(Hwc2TestCoverage coverage, const Area& displayArea);
+ Hwc2TestLayer(Hwc2TestCoverage coverage, const Area& displayArea,
+ const std::unordered_map<Hwc2TestPropertyName,
+ Hwc2TestCoverage>& coverage_exceptions);
+
std::string dump() const;
int getBuffer(buffer_handle_t* outHandle,