commit | 92f705cee51938f485b3a8ca1e09910761f7eac0 | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Fri Jan 19 22:22:01 2024 +0000 |
committer | Devin Moore <devinmoore@google.com> | Thu Jan 25 00:17:47 2024 +0000 |
tree | 1b7c88041e6535e804acf18020ad96585afffc8a | |
parent | 2f66667556b97de97f69b9ada6ca8b5f409b094e [diff] |
Use onUnlinked in health HAL It's possible to get an onBinderDied callback after a call to AIBinder_unlinkToDeath() so we can't delete the objects in callbacks_ until we are done using the void* cookie. Handling the cleanup in onBinderUnlinked will handle the case where we manually unlink it as well as the case where it's unlinked due to death. Test: atest VtsHalHealthTargetTest Bug: 319210610 Change-Id: Iee4783217cc88134af6de0fe66128684ca984dba