binder: Implement the callback addition/removal
BinderManager stores all the callback binder references registered via the
corresponding binder object.
The callbacks are deleted when either:
a. binder object death notification or
b. corresponding binder object is removed (for ex: all |wlan0| iface callbacks
are removed when the |wlan0| iface is deregistered).
Uses a helper class |CallbackObjectDeathNotifier| to cleanup the binder
references from our list when the hosting process is dead.
BUG: 30093041
Change-Id: Ib3f6817fc4d63e4f4711fe6aa280547b768bf774
Signed-off-by: Roshan Pius <rpius@google.com>
2 files changed