Ensure lines are not drawn on pixel edges

The GPU may snap to different directions depending
on the rotation of content if drawn directly on
pixel edges.  This updates the test to draw offset
of the pixel edget since all GPUs should draw those
consistently.

Test: atest CtsUiRenderingTestCases
Bug: 229038824
Change-Id: I6750bb0c93a33f6b2bcb8a017585542a5bfb16fa
(cherry picked from commit 4a9117d229f3a9984013098e0726a401f7367af8)
Merged-In: I6750bb0c93a33f6b2bcb8a017585542a5bfb16fa
1 file changed