Fix backgroundPixels comparison for testLightStatusBarIcons and testLightNavigationBar.

While in evaluateLightBarBitmap, it only accepts background as pure RED(0XFFFF0000), but edge of notification icon can be shown as not exact pure RED (i.e. 0xFFFD0000, 0xFFFC0000, etc) caused by anti-aliasing. but it still looks like RED. So some edge pixels of icon are not counted as backgroundPixel as well as forgroundPixels() will return increased pixel count.

So using isColorSame() which was added recently will let test case passes.

BUG: 111913908

Signed-off-by: Mark Hong <sungmin.h@samsung.com>

Change-Id: I9618d87eb582163e6bd2d3a6ab7d87900a7b5188
1 file changed