SF: Improve surface flinger unit tests

- Fix compiler warnings
- Make checkPixel print out the actual/expected values on failure
- Add unit tests for setLayerStack, setFlags, and setMatrix
- Make the tests work when the display is off

Change-Id: I53ac1279b967fe06ff8cdb10d3ee4c0e2349b2d0
1 file changed