From 2a2d8f1479cdf943e2bc2da0924a4192fc7733d4 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 18 Oct 2021 15:13:02 -0700 Subject: libbinder: RPC - remove 'agreed experimental' Where this can be used is still limited by sepolicy, but now that we have examples for how to version the wire protocol, tests, fuzzer entries, and most performance analysis is done, we can avoid this function name. Bug: 167966510 Test: N/A Change-Id: Ibda9a656f1b96be7d38c4684cab787e411297a24 --- libs/binder/RpcServer.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libs/binder/RpcServer.cpp') diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index 4edc2029dc..93ed50e986 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp @@ -58,10 +58,6 @@ sp RpcServer::make(std::unique_ptr rpcTranspo return sp::make(std::move(ctx)); } -void RpcServer::iUnderstandThisCodeIsExperimentalAndIWillNotUseItInProduction() { - mAgreedExperimental = true; -} - status_t RpcServer::setupUnixDomainServer(const char* path) { return setupSocketServer(UnixSocketAddress(path)); } @@ -163,14 +159,12 @@ static void joinRpcServer(sp&& thiz) { } void RpcServer::start() { - LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!"); std::lock_guard _l(mLock); LOG_ALWAYS_FATAL_IF(mJoinThread.get(), "Already started!"); mJoinThread = std::make_unique(&joinRpcServer, sp::fromExisting(this)); } void RpcServer::join() { - LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!"); { std::lock_guard _l(mLock); @@ -274,9 +268,6 @@ size_t RpcServer::numUninitializedSessions() { void RpcServer::establishConnection(sp&& server, base::unique_fd clientFd, const sockaddr_storage addr, socklen_t addrLen) { - // TODO(b/183988761): cannot trust this simple ID - LOG_ALWAYS_FATAL_IF(!server->mAgreedExperimental, "no!"); - // mShutdownTrigger can only be cleared once connection threads have joined. // It must be set before this thread is started LOG_ALWAYS_FATAL_IF(server->mShutdownTrigger == nullptr); @@ -506,19 +497,16 @@ void RpcServer::onSessionIncomingThreadEnded() { } bool RpcServer::hasServer() { - LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!"); std::lock_guard _l(mLock); return mServer.ok(); } unique_fd RpcServer::releaseServer() { - LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!"); std::lock_guard _l(mLock); return std::move(mServer); } status_t RpcServer::setupExternalServer(base::unique_fd serverFd) { - LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!"); std::lock_guard _l(mLock); if (mServer.ok()) { ALOGE("Each RpcServer can only have one server."); -- cgit v1.2.3-59-g8ed1b