Commit Graph

4 Commits

Author SHA1 Message Date
Stephen Crane 44fd9bcfd7 Revert^2 "[binder_common] Update binder import path"
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
2022-01-19 09:58:15 -08:00
Stephen Crane 06e50cf0df Revert "[binder_common] Update binder import path"
Revert "[binder] Expose public Rust API at crate top level"

Revert "[libprofcollectd] Fix binder import path"

Revert submission 1797473-binder_rs-public_api

Reason for revert: Build breakage
Reverted Changes:
Ia37ec9d1e:[binder_common] Update binder import path
Ie6b4a40d7:Update Rust binder import paths
Ia9695e549:[keystore2] Fix binder import path
I811426fa7:[binder] Expose public Rust API at crate top level...
I773767a3a:[libprofcollectd] Fix binder import path

Change-Id: Iea286e143ddcaef673fa34a4f76de45f751f1c9f
2022-01-19 00:05:11 +00:00
Stephen Crane 67bf87f831 [binder_common] Update binder import path
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
2022-01-12 09:29:16 -08:00
Alan Stokes cd359bb6cb Extract run_rpc_server to libbinder_common
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
2021-10-11 15:33:22 +01:00