Listen to DisplayManager to get screen on/off states.
-After TTW optimizations on Pixel watch, ACTION_SCREEN_ON/OFF
broadcast is not guaranteed to be fired. Use a more reliable
method to monitor screen on/off states.
-See: go/wear-dd-aod-off-ttw-opt.
Test: Performing tilt/untilt gestures on Pixel watch and verify
SetParameters is called when screen is on/off.
Bug: 291313447
Change-Id: Ia374eb6634597283ac92328a6efa25c7aa9779a0
Signed-off-by: Ziyang Cheng <ziyangch@google.com>
Loading
Please register or sign in to comment