summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author James O'Leary <jamesoleary@google.com> 2022-05-26 19:30:52 +0000
committer James O'Leary <jamesoleary@google.com> 2022-05-26 19:31:55 +0000
commitc3cffc8bb6e6fd664dd2358bee1cba592b3f691b (patch)
treeb46e855564b297885a95c0562c8d67f18c333ed7 /libs/androidfw/StringPool.cpp
parentabfe28784c563258173f67002b5168ff2b599fea (diff)
Match Android's colors to design intent
May 2021 HCT code in Android ("CAM") gives results inconsistent with HCT in design tooling. Using HCT solver ensures they match, allowing design to verify their specs against the results in Android, derisking the launch of theme variants. HCT Solver is a standalone class that is easily integrated with Android & Cam: when Cam.get(hue,chroma,tone) is called, it now calls HctSolver.get(hue, chroma, tone). HCT Solver was imported from google3, where it is tested against _all_ hex codes, both forward and reverse conversions. A number of other tests cover all parts of the theming system, giving us high confidence that there won't be a regression. Test: atest ColorSchemeTest (unit test); atest SystemPaletteTest (CTS). Spent ~4 hours trying a variety of wallpapers, and seed colors, and used dumpsys to verify results match UX spec. Verify hex codes and HCT values output by Android match those in design tooling via putting hex codes into Monet Studio, and confirming the resulting HCT values match the HCT values generated by Android. Bug: 213314628 Change-Id: I95da1efacc2d61f19ce7f20efa3e7f70736258a9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions