History log of /cts/tests/camera/src/android/hardware/camera2/cts/helpers/CameraErrorCollector.java
Revision Date Author Comments
eac9c62b5ad03134a7d134229eae6ff0ab7bfa10 16-Jan-2016 Mikael Persson <mikael.persson@intel.com> camera2: Modify logic for comparing rects

The helper function expectRectsAreSimilar, used by
e.g. testDigitalZoom, is checking that the top-left
coordinates are similar with an error margin in percent.
However, this doesn't work well if the top-left
coordinate is only a few pixels since a pixel
difference is then significant amount in percentage.
For example, if the actual top-left is (6,3) and the
expected is (8,4), then the difference in percentage
is 25%.
Instead of comparing the top-left and bottom-right
coordinates, check that the center of both rectangles
are similar. If this is the case, as well as the width
and height, then they are similar.

Change-Id: Ice491178bf26e2d35579efc42036e0ac86c77b66
Signed-off-by: Mikael Persson <mikael.persson@intel.com>
96f4d40076c3165e8ea2e123759340be2e7aad32 30-Oct-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: create camera test package

and move all the camera CTS tests from hardware package to
camera package.

Bug: 25291899
Change-Id: I942b78a305b359bee7c78a301aa1be74601e3328