Import from the binder crate root instead of binder::public_api for
compatibility with the new crate structure.
Relanding change: Ia37ec9d1ec9afea8ff61fecb06d13bfb8a4f65cf
Test: m
Bug: 196056781
Change-Id: I35e1d9268929f35d3ce494c2833f39f708170b96
Import from the binder crate root instead of binder::public_api for
compatibility with the new crate structure.
Test: m
Bug: 196056781
Change-Id: Ia37ec9d1ec9afea8ff61fecb06d13bfb8a4f65cf
We have two very similar uses of RunRpcServerCallback; extract them to
a common place, using a closure to encapsulate the specific behavior
for notifiying readiness.
This also neatly encapsulates all the unsafe code, and justification
of it, in one place.
Bug: 187444679
Test: atest ComposTestCase
Change-Id: If23f862748b2f921690820eaa6ee80e4b2829274