Fix InlineSuggestionRenderService service connection leakage
The system reset the remote InlineRenderService and binds service when updateLocked() is called but the system doesn’t unbind it. The updatedLocked() will be called in many conditions like service change, autofill device config change, etc. These behaviors will occur during the test that causes the connection to increase more and more. To fix the issue, we don't reset the remote InlineRenderService and only bind the service if it doesn't be set yet and unbind it after per user service implementation destroyed. Bug: 242097472 Test: run cts and run command “dumpsys activity services com.google.android.ext.services”. The connection is the same after CTS is done. Test: atest android.autofillservice.cts.inline Test: atest android.autofillservice.cts.dropdown Test: manul. Test some top apps, the inline still works. Test: manual. Test with test app, the dropdown still works. Change-Id: Ia51ef58b1cc1926385c501c34bd756f7c223b313
Loading
Please register or sign in to comment