[SurfaceFlinger] Allow force a supported color mode.
Device now can force color mode by setting persist.sys.sf.color_mode.
persist.sys.sf.color_mode must:
1. not be NATIVE color mode, NATIVE color mode means no forced color mode;
2. be one of the supported color modes returned by hardware composer,
otherwise it will not be respected.
persist.sys.sf.color_mode will only take effect when persist.sys.sf.native_mode
is not set to 1.
Minor: Fix some color profile tests.
BUG: 124129486
Test: Build, flash and boot. Verify by hacking Pixel 3.
Change-Id: I6aa4cff5aec16f0953d63e698919b41d617ea111
4 files changed