commit | 6bfa90f77888c29bd60c542d9dc3e4564b18d3a8 | [log] [tgz] |
---|---|---|
author | Felix Oghina <hackz@google.com> | Wed Oct 25 14:29:15 2023 +0000 |
committer | Felix Oghina <hackz@google.com> | Mon Nov 13 13:49:22 2023 +0000 |
tree | e8eb11580131d265b292a4a5779ffee44504999e | |
parent | 02b3211ef962f80aa071c84afe69aec8d58392cf [diff] |
[speech] implement finalizer for SpeechRecognizer objects This change is needed because GC'd SpeechRecognizer objects will leak an open binder connection and cause a leak in system_server until this process dies. This finalizer ensures we call destroy when SR is garbage collected, which notifies system_server to do internal cleanup. Test: atest CtsVoiceRecognitionTestCases Bug: 297249772 Change-Id: I04061a84e21fab3ffbabc68d003c4436a27f837f