summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2020-10-08 11:10:09 -0700
committerBrad Ebinger <breadley@google.com>2020-10-08 13:19:28 -0700
commiteb0737961d7035394dd5a2315da806a84f895eab (patch)
treed83486348bafb3eea510fbc9015c573e698da667 /rs/java/android/renderscript/ProgramRaster.java
parentec6681c927813ee31a4a4677aaedc9eaab3a1794 (diff)
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions