[Magnifier-78] Add 1 pixel error tolerance in CTS

The CL updates the Magnifier CTS tests, to allow a error of at most one
pixel when coordinates are tested - we are testing the coordinates where
the magnifier copies its content from and the coordinates where the
magnifier is shown. This is to account for potential rounding
differences when the coordinates are computed, between different screen
pixel densities across devices.

Bug: 120078374
Bug: 123040687
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Iebc07cf6cf70b0d6f563b09e99ec08274ff92307
1 file changed