diff options
| author | 2022-08-29 20:07:10 -0400 | |
|---|---|---|
| committer | 2022-09-06 19:29:54 +0000 | |
| commit | 22c330ce3b5ae4763f5dee9821662e743bb02e6a (patch) | |
| tree | fc9cc15fb33ad06c010798604be277f4f3054b40 /libs/gui/BufferQueueThreadState.cpp | |
| parent | cb05b913b656e3d16a6ea362afa7e1e403297847 (diff) | |
Avoid UI freezing when reading battery capacity/status
Reading battery capacity and status could fail and end up
with timeout after 5s for some input devices, for example:
8BitDo SN30 Pro+ gamepad.
Before reading those items, it would be better to release
`mLock` so that other threads could run.
Bug: 244088945
Test: Manually verified no UI freezing when calling
`inputDevice.batteryState.capacity` or
`inputDevice.batteryState.status`
Change-Id: Ibb6b8c999b7fd4fe7fbcc57264a1fe6ad74903dc
Merged-In: Ibb6b8c999b7fd4fe7fbcc57264a1fe6ad74903dc
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions