binder: Add RpcTransport class.
RpcTransport represents the transport
layer. The transport layer may have security (TLS) enabled
or not, depending on how it is configured.
In libbinder, RpcTransportRaw implements RpcTransport without TLS.
Add RpcTransportShim that wraps usage of RpcTransport*. If TLS is not
requested, return RpcTranpsortRaw. Otherwise return RpcTransportTls.
RpcTransportTls will be added in follow up CL.
Bug: 190868302
Test: TH
Change-Id: Ic6c6bec4a2135e42f32840dcd5f60b57e57439b5
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 2027b6e..f34672c 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -123,6 +123,7 @@
"RpcSession.cpp",
"RpcServer.cpp",
"RpcState.cpp",
+ "RpcTransportRaw.cpp",
"Static.cpp",
"Stability.cpp",
"Status.cpp",