| commit | 532cfe52aaa65641114942bd8a87478901d6558f | [log] [tgz] |
|---|---|---|
| author | Ziyang Cheng <ziyangch@google.com> | Tue Jul 18 20:34:11 2023 +0000 |
| committer | Ziyang Cheng <ziyangch@google.com> | Wed Jul 19 00:48:51 2023 +0000 |
| tree | b99d1ea32d9242daf5efd4fc4428258293676c56 | |
| parent | 36f53b7910ea863457ec8228fbfa64778d1b6330 [diff] |
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>