summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2023-10-17 13:10:36 -0700
committer Song Chun Fan <schfan@google.com> 2023-10-17 21:58:43 +0000
commit6284ee7ead2aeec31a55ecab7506e8a6c1f903c3 (patch)
tree4de7c68b6c73cb3150ce6bfbab84a3853ac83989 /libs/androidfw/FileStream.cpp
parent779139ddfbd98326dcdd55a48921379a542348fa (diff)
[SettingsProvider] do not write under mLock
persistSyncLocked() is called when holding the SettingsProvider lock. It writes to disk synchronously, which can sometimes take long. This blocks future reads that also tries to acquire the lock and causes SysUI jankiness. This CL changes the synchronous write to async, just like any other write operations in SettingsProvider. BUG: 284452689 Test: atest com.android.providers.settings.SettingsStateTest Change-Id: I318c4c6f358dbaa227cb53019db93f262ed10443
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions