commit | 0ff19d1f89614fce9454fb415bcbfcbcf3caf76e | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Fri Jan 19 22:22:01 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 06 00:20:53 2024 +0000 |
tree | f1329081fcdf990568d11aadd8b406df3892a880 | |
parent | 40e9f1537e308ed49e3b561ce333e3f2bb64f31e [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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e5e95bf5759a736f3debc6eb583fb1c82b38d847) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1e1627a5da86782960a157a059aec816be5c82b1) Merged-In: Iee4783217cc88134af6de0fe66128684ca984dba Change-Id: Iee4783217cc88134af6de0fe66128684ca984dba