CE: Fix color layer HWC call ordering

Always set the layer color value after setting the composition type to
SOLID_COLOR.

The unit test is modified to enforce this order.

Bug: 143078872
Bug: 143242857
Bug: 139761656
Test: atest libcompositionengine_test
Test: Observed no one frame flicker issues on rotation per the bugs
Test: go/wm-smoke
Change-Id: I27e880b06c16e4ce23004fccea6e9fa73449d54b
2 files changed