Loading libs/binder/ndk/Android.bp +5 −1 Original line number Diff line number Diff line Loading @@ -66,10 +66,14 @@ cc_library { "service_manager.cpp", ], shared_libs: [ static_libs: [ "libandroid_runtime_lazy", "libbase", ], shared_libs: [ "libbinder", "liblog", "libutils", ], Loading libs/binder/tests/binderRpcTest.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -372,12 +372,12 @@ TEST_P(BinderRpc, ThreadPoolGreaterThanEqualRequested) { ts.push_back(std::thread([&] { proc.rootIface->lockUnlock(); })); } usleep(10000); // give chance for calls on other threads usleep(100000); // give chance for calls on other threads // other calls still work EXPECT_EQ(OK, proc.rootBinder->pingBinder()); constexpr size_t blockTimeMs = 50; constexpr size_t blockTimeMs = 100; size_t epochMsBefore = epochMillis(); // after this, we should never see a response within this time EXPECT_OK(proc.rootIface->unlockInMsAsync(blockTimeMs)); Loading libs/binder/tests/rpc_fuzzer/main.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -133,8 +133,13 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { bool hangupBeforeShutdown = provider.ConsumeBool(); // b/260736889 - limit arbitrarily, due to thread resource exhaustion, which currently // aborts. Servers should consider RpcServer::setConnectionFilter instead. constexpr size_t kMaxConnections = 1000; while (provider.remaining_bytes() > 0) { if (connections.empty() || provider.ConsumeBool()) { if (connections.empty() || (connections.size() < kMaxConnections && provider.ConsumeBool())) { base::unique_fd fd(TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0))); CHECK_NE(fd.get(), -1); CHECK_EQ(0, Loading libs/renderengine/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,8 @@ cc_library_static { "-fvisibility=hidden", "-Werror=format", "-Wno-unused-parameter", // TODO: Investigate reducing pinned-memory usage (b/263377839) "-DRE_SKIAVK", ], srcs: [ ":librenderengine_sources", Loading opengl/libs/EGL/egl_cache.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,10 @@ static EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID keySize, void* v // egl_cache_t definition // egl_cache_t::egl_cache_t() : mInitialized(false), mMultifileMode(true), mCacheByteLimit(maxTotalSize) {} : mInitialized(false), mMultifileMode(true), mCacheByteLimit(maxTotalSize), mMultifileCleanupPending(false) {} egl_cache_t::~egl_cache_t() {} Loading Loading
libs/binder/ndk/Android.bp +5 −1 Original line number Diff line number Diff line Loading @@ -66,10 +66,14 @@ cc_library { "service_manager.cpp", ], shared_libs: [ static_libs: [ "libandroid_runtime_lazy", "libbase", ], shared_libs: [ "libbinder", "liblog", "libutils", ], Loading
libs/binder/tests/binderRpcTest.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -372,12 +372,12 @@ TEST_P(BinderRpc, ThreadPoolGreaterThanEqualRequested) { ts.push_back(std::thread([&] { proc.rootIface->lockUnlock(); })); } usleep(10000); // give chance for calls on other threads usleep(100000); // give chance for calls on other threads // other calls still work EXPECT_EQ(OK, proc.rootBinder->pingBinder()); constexpr size_t blockTimeMs = 50; constexpr size_t blockTimeMs = 100; size_t epochMsBefore = epochMillis(); // after this, we should never see a response within this time EXPECT_OK(proc.rootIface->unlockInMsAsync(blockTimeMs)); Loading
libs/binder/tests/rpc_fuzzer/main.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -133,8 +133,13 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { bool hangupBeforeShutdown = provider.ConsumeBool(); // b/260736889 - limit arbitrarily, due to thread resource exhaustion, which currently // aborts. Servers should consider RpcServer::setConnectionFilter instead. constexpr size_t kMaxConnections = 1000; while (provider.remaining_bytes() > 0) { if (connections.empty() || provider.ConsumeBool()) { if (connections.empty() || (connections.size() < kMaxConnections && provider.ConsumeBool())) { base::unique_fd fd(TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0))); CHECK_NE(fd.get(), -1); CHECK_EQ(0, Loading
libs/renderengine/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,8 @@ cc_library_static { "-fvisibility=hidden", "-Werror=format", "-Wno-unused-parameter", // TODO: Investigate reducing pinned-memory usage (b/263377839) "-DRE_SKIAVK", ], srcs: [ ":librenderengine_sources", Loading
opengl/libs/EGL/egl_cache.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,10 @@ static EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID keySize, void* v // egl_cache_t definition // egl_cache_t::egl_cache_t() : mInitialized(false), mMultifileMode(true), mCacheByteLimit(maxTotalSize) {} : mInitialized(false), mMultifileMode(true), mCacheByteLimit(maxTotalSize), mMultifileCleanupPending(false) {} egl_cache_t::~egl_cache_t() {} Loading