summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Tetiana Meronyk <tetianameronyk@google.com> 2024-02-02 21:41:58 +0000
committer Tetiana Meronyk <tetianameronyk@google.com> 2024-03-26 22:19:52 +0000
commit8ca5a04051c28cda09ce886e85e42c88541e043b (patch)
treee41040083fcb736b8c3cf0214354483baebececb /libs/androidfw/FileStream.cpp
parent42910f6b153888886f7a09f46759f28e656bf29b (diff)
Implement user start before alarms go off
Before this change alarms in multiuser environment were not consistent. If the user was stopped, their alarm did not go off. Since user stops happen without user's explicit interaction and their status is not available to regular users, if the alarm was set on background user, there was no certainty that the alarm would ring. After the change a list of users with alarms scheduled is stored to start them in background shortly before their alarm. This ensures consistency in alarms going off even if the user gets stopped. Persistence of this list was added to save this list even after device reboots. Bug: 314907186 Test: atest AlarmManagerServiceTest && atest UserWakeupStoreTest Change-Id: I5a75813d76f505383909ac6a281902c54784a1ed
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions