Add BinderCacheManager: caches Binder & notifies listeners upon death
Adds a BinderCacheManager class, which does the following: 1) Manages a cached Binder node and recreates it when the Binder node dies. 2) Allows Runnables to be associated with the cached Binder, which will be called when the node dies. 3) Associates the Runnable with an Object key, which can be used to remove the runnable without needing to keep a separate map of Object->Runnable pairs when the user unregisters a persistent listener. Test: atest CtsTelephonyTestCases FrameworksTelephonyTests:BinderCacheManagerTest Change-Id: I23a97371435b7aca8153a30997b91bd324a781a0
Loading
Please register or sign in to comment