Please reference the following links
on what is Flicker Test and how to write a Flicker Test
To run the Flicker Tests for WM Shell, simply run atest WMShellFlickerTests
atest WMShellFlickerTests