Add async registerCO API in SettingsProxy.
Add new suspend API for kotlin and a Java API launching a new coroutine for each existing register/unregister ContentObserver API in SettingsProxy and UserSettingsProxy. Added a new API in the SettingsProxy interface that provides the dispatcher to be used while calling the above async methods. Each individual implementation can decide which dispatcher to use based on the injected parameter. Test: make SystemUIGoogle, atest SettingsProxyTest, atest UserSettingsProxyTest Bug: 330299944 Flag: NONE new async APIs and existing APIs kept unmodified. Change-Id: Ia6e0f0e20a9eee314c8e00138c94a73702a62c3e
Loading
Please register or sign in to comment