Fix the position set for setGeometry calculation.

The current implementation of setGeometry will set the position as the x
and y value of destination. However, this value will not work if the
source is not at 0, 0 since it will start crop at a non zero position.
The position will be set based on the non cropped area so the final
content frame will not be positioned at the specified position.

This change calculates the offset for x and y based on the source's
crop's position and scale since it will need to create a negative offset
to compensate for the crop

Test: SetGeometryTest
Fixes: 141495784
Change-Id: I7dc0e5f9e65f9838ebd86f304bc1ca0beffc4393
diff --git a/services/surfaceflinger/tests/Android.bp b/services/surfaceflinger/tests/Android.bp
index d6b9b60..f422939 100644
--- a/services/surfaceflinger/tests/Android.bp
+++ b/services/surfaceflinger/tests/Android.bp
@@ -19,18 +19,19 @@
     srcs: [
         "BufferGenerator.cpp",
         "Credentials_test.cpp",
-	"DereferenceSurfaceControl_test.cpp",
+        "DereferenceSurfaceControl_test.cpp",
         "DisplayActiveConfig_test.cpp",
-	"InvalidHandles_test.cpp",
+        "InvalidHandles_test.cpp",
         "LayerCallback_test.cpp",
-	"LayerRenderTypeTransaction_test.cpp",
-	"LayerTransaction_test.cpp",
-	"LayerTypeAndRenderTypeTransaction_test.cpp",
-	"LayerTypeTransaction_test.cpp",
-	"LayerUpdate_test.cpp",
-	"MultiDisplayLayerBounds_test.cpp",
-	"RelativeZ_test.cpp",
-	"Stress_test.cpp",
+        "LayerRenderTypeTransaction_test.cpp",
+        "LayerTransaction_test.cpp",
+        "LayerTypeAndRenderTypeTransaction_test.cpp",
+        "LayerTypeTransaction_test.cpp",
+        "LayerUpdate_test.cpp",
+        "MultiDisplayLayerBounds_test.cpp",
+        "RelativeZ_test.cpp",
+        "SetGeometry_test.cpp",
+        "Stress_test.cpp",
         "SurfaceInterceptor_test.cpp",
         "VirtualDisplay_test.cpp",
     ],