diff options
| author | 2022-04-28 17:33:31 +0800 | |
|---|---|---|
| committer | 2022-04-28 17:43:17 +0800 | |
| commit | 2a51ba9bf1ac8b7776c08311bce2d956b2dfda83 (patch) | |
| tree | 78db5f208690ade646ac52fec4857d4337b9bca5 /libs/androidfw/StringPool.cpp | |
| parent | 9736fb2a2bc642c216f198eb4ac26cd3a3a0c05b (diff) | |
Toggle orientation sensor outside of WM lock
Otherwise when turning on/off, the toggling of orientation sensor
may spend time in IPC to HIDL::ISensors, which may block other
callers to window manager service.
Now the enable/disable are moved to the same thread (android.ui)
that receives sensor events.
Also remove UpdateRunnable because onProposedRotationChanged is
already called on the handler thread. The original code just posts
one more time.
Bug: 225183104
Test: atest DisplayRotationTests
Change-Id: I3d3b774fae1f5981533b79ebdbf6f651c803d511
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions