test-hwc2: set cursor position

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: I4b265826befcf33c3f71b52bfabc076c48efed5f
diff --git a/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h b/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
index f548ea6..2cf2029 100644
--- a/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
+++ b/services/surfaceflinger/tests/hwc2/Hwc2TestLayer.h
@@ -37,6 +37,7 @@
     hwc2_blend_mode_t      getBlendMode() const;
     hwc_color_t            getColor() const;
     hwc2_composition_t     getComposition() const;
+    hwc_rect_t             getCursorPosition() const;
     android_dataspace_t    getDataspace() const;
     hwc_rect_t             getDisplayFrame() const;
     float                  getPlaneAlpha() const;
@@ -48,6 +49,7 @@
     bool advanceBufferArea();
     bool advanceColor();
     bool advanceComposition();
+    bool advanceCursorPosition();
     bool advanceDataspace();
     bool advanceDisplayFrame();
     bool advancePlaneAlpha();