Loading libs/binder/tests/binderRpcTest.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -199,13 +199,8 @@ private: static std::string allocateSocketAddress() { static size_t id = 0; static bool gUseTmp = access("/tmp/", F_OK) != -1; if (gUseTmp) { return "/tmp/binderRpcTest_" + std::to_string(id++); } else { return "/dev/binderRpcTest_" + std::to_string(id++); } std::string temp = getenv("TMPDIR") ?: "/tmp"; return temp + "/binderRpcTest_" + std::to_string(id++); }; struct ProcessConnection { Loading Loading
libs/binder/tests/binderRpcTest.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -199,13 +199,8 @@ private: static std::string allocateSocketAddress() { static size_t id = 0; static bool gUseTmp = access("/tmp/", F_OK) != -1; if (gUseTmp) { return "/tmp/binderRpcTest_" + std::to_string(id++); } else { return "/dev/binderRpcTest_" + std::to_string(id++); } std::string temp = getenv("TMPDIR") ?: "/tmp"; return temp + "/binderRpcTest_" + std::to_string(id++); }; struct ProcessConnection { Loading