diff options
author | 2025-03-14 17:35:05 +0100 | |
---|---|---|
committer | 2025-03-17 16:57:49 +0100 | |
commit | 61e3eb3fdf420a75b084c69d3fd11d2619681f74 (patch) | |
tree | 6f60f03cce2830cf18df441945abadf0b0b45dde /libs/androidfw/LocaleDataLookup.cpp | |
parent | d4d65b1705ad9cf59056cdf97f019f3c20ab6935 (diff) |
Make ZenModeRepository.modes a (single) StateFlow
Using regular Flows per caller means that every client of ZenModeRepository/ZenModeInteractor causes a new ContentObserver to be registered (and ZenModesBackend.getModes() to be called on each of those changes). With the current clients of the interactor, this could easily become 12 or more Binder calls per each zen change!
Bug: 403434908
Test: atest ZenModeRepositoryTest + manual
Flag: EXEMPT Simple (and urgent) performance improvement
Change-Id: I428ef6ef03eb331115d53f878e742542963a11a8
Diffstat (limited to 'libs/androidfw/LocaleDataLookup.cpp')
0 files changed, 0 insertions, 0 deletions