diff options
| author | 2024-02-20 17:38:03 -0800 | |
|---|---|---|
| committer | 2024-02-22 18:20:52 -0800 | |
| commit | 12f5c3693b91de8e717b97c5893236df3515a898 (patch) | |
| tree | ddb1bc84912bec834002d6788b4447b261bb5c54 /libs/input/PointerController.cpp | |
| parent | 4f7007cfcf87b54d853ea8a446d8400ce02d5cb5 (diff) | |
Use frozen state callback to drop listener alarms
Exact listener alarms are currently dropped few seconds after being in
cached to avoid a violation of the exactness guarantee if the app gets
frozen. Now that a callback from activity manager is available, it is
better to use it directly instead of a delayed handler message.
This also improves the efficiency of the logic by avoiding the linear
query in the MessageQueue on the main system-server handler thread
which can be quite busy.
Test: atest FrameworksMockingServicesTests:com.android.server.alarm
Bug: 324470945
Change-Id: I0a05259db98c63c0c17b98aa11a4e52bbdb73d67
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions