/aosp12/system/libhidl/transport/include/hidl/ |
H A D | LegacySupport.h | 67 const std::string& name, size_t maxThreads = 1) { 68 configureRpcThreadpool(maxThreads, true); 80 size_t maxThreads = 1) { 82 maxThreads); 113 const std::string& name, size_t maxThreads = 1) { 114 configureRpcThreadpool(maxThreads, true); 127 size_t maxThreads = 1) { 129 maxThreads);
|
H A D | HidlTransportSupport.h | 46 void configureRpcThreadpool(size_t maxThreads, bool callerWillJoin);
|
H A D | HidlBinderSupport.h | 225 void configureBinderRpcThreadpool(size_t maxThreads, bool callerWillJoin);
|
/aosp12/frameworks/base/tests/JankBench/app/src/main/jni/ |
H A D | WorkerPool.cpp | 233 uint64_t WorkerPool::launchWork(WorkerCallback_t cb, void *usr, int maxThreads) { in launchWork() argument 238 if (maxThreads < 1) { in launchWork() 239 maxThreads = mCount; in launchWork() 241 if ((uint32_t)maxThreads > mCount) { in launchWork() 243 maxThreads = mCount; in launchWork() 247 mRunningCount = maxThreads; in launchWork() 250 for (int ct = 0; ct < maxThreads; ct++) { in launchWork()
|
H A D | WorkerPool.h | 37 uint64_t launchWork(WorkerCallback_t cb, void *usr, int maxThreads = -1);
|
/aosp12/hardware/interfaces/tests/multithread/1.0/default/ |
H A D | Multithread.cpp | 18 Return<void> Multithread::setNumThreads(int32_t maxThreads, int32_t numThreads) { in setNumThreads() argument 20 << maxThreads << ", " << numThreads << ")"; in setNumThreads() 23 << maxThreads << ")"; in setNumThreads() 24 ::android::hardware::configureRpcThreadpool(maxThreads, /*willjoin*/ false); in setNumThreads()
|
H A D | Multithread.h | 26 virtual Return<void> setNumThreads(int32_t maxThreads, int32_t numThreads) override;
|
/aosp12/system/libhwbinder/ |
H A D | ProcessState.cpp | 310 status_t ProcessState::setThreadPoolConfiguration(size_t maxThreads, bool callerJoinsPool) { in setThreadPoolConfiguration() argument 311 LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, in setThreadPoolConfiguration() 315 LOG_ALWAYS_FATAL_IF(maxThreads == 0 && callerJoinsPool, in setThreadPoolConfiguration() 318 size_t threadsToAllocate = maxThreads; in setThreadPoolConfiguration() 341 mMaxThreads = maxThreads; in setThreadPoolConfiguration() 380 size_t maxThreads = DEFAULT_MAX_BINDER_THREADS; in open_driver() local 381 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); in open_driver()
|
/aosp12/frameworks/wilhelm/src/ |
H A D | ThreadPool.cpp | 87 SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads) in ThreadPool_init() argument 120 if (0 == maxThreads) in ThreadPool_init() 121 maxThreads = THREAD_TYPICAL; in ThreadPool_init() 122 tp->mMaxThreads = maxThreads; in ThreadPool_init() 138 if (THREAD_TYPICAL >= maxThreads) { in ThreadPool_init() 141 tp->mThreadArray = (pthread_t *) malloc(maxThreads * sizeof(pthread_t)); in ThreadPool_init() 148 for (i = 0; i < maxThreads; ++i) { in ThreadPool_init()
|
H A D | ThreadPool.h | 86 extern SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads);
|
/aosp12/frameworks/native/libs/binder/ |
H A D | ProcessState.cpp | 349 status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { in setThreadPoolMaxThreadCount() argument 350 LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, in setThreadPoolMaxThreadCount() 353 if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { in setThreadPoolMaxThreadCount() 354 mMaxThreads = maxThreads; in setThreadPoolMaxThreadCount() 396 size_t maxThreads = DEFAULT_MAX_BINDER_THREADS; in open_driver() local 397 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); in open_driver()
|
H A D | RpcState.cpp | 283 int32_t maxThreads; in getMaxThreads() local 284 status = reply.readInt32(&maxThreads); in getMaxThreads() 286 if (maxThreads <= 0) { in getMaxThreads() 287 ALOGE("Error invalid max maxThreads: %d", maxThreads); in getMaxThreads() 291 *maxThreadsOut = maxThreads; in getMaxThreads()
|
H A D | RpcSession.cpp | 96 status_t RpcSession::getRemoteMaxThreads(size_t* maxThreads) { in getRemoteMaxThreads() argument 98 return state()->getMaxThreads(connection.fd(), sp<RpcSession>::fromExisting(this), maxThreads); in getRemoteMaxThreads()
|
/aosp12/system/libhidl/transport/ |
H A D | HidlTransportSupport.cpp | 31 void configureRpcThreadpool(size_t maxThreads, bool callerWillJoin) { in configureRpcThreadpool() argument 33 configureBinderRpcThreadpool(maxThreads, callerWillJoin); in configureRpcThreadpool()
|
H A D | HidlBinderSupport.cpp | 276 void configureBinderRpcThreadpool(size_t maxThreads, bool callerWillJoin) { in configureBinderRpcThreadpool() argument 278 maxThreads, callerWillJoin /*callerJoinsPool*/); in configureBinderRpcThreadpool()
|
/aosp12/hardware/interfaces/tests/multithread/1.0/ |
H A D | IMultithread.hal | 28 * @param maxThreads arg passed to configureRpcThreadpool 32 setNumThreads(int32_t maxThreads, int32_t numThreads);
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | WorkQueue.cpp | 27 WorkQueue::WorkQueue(size_t maxThreads, bool canCallJava) : in WorkQueue() argument 28 mMaxThreads(maxThreads), mCanCallJava(canCallJava), in WorkQueue()
|
H A D | WorkQueue.h | 50 explicit WorkQueue(size_t maxThreads, bool canCallJava = true);
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_os_HwBinder.cpp | 341 jlong maxThreads, jboolean callerWillJoin) { in JHwBinder_native_configureRpcThreadpool() argument 342 CHECK(maxThreads > 0); in JHwBinder_native_configureRpcThreadpool() 343 … ProcessState::self()->setThreadPoolConfiguration(maxThreads, callerWillJoin /*callerJoinsPool*/); in JHwBinder_native_configureRpcThreadpool()
|
H A D | android_util_Binder.cpp | 1155 jobject clazz, jint maxThreads) in android_os_BinderInternal_setMaxThreads() argument 1157 ProcessState::self()->setThreadPoolMaxThreadCount(maxThreads); in android_os_BinderInternal_setMaxThreads()
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | HwBinder.java | 114 long maxThreads, boolean callerWillJoin); in configureRpcThreadpool() argument
|
/aosp12/frameworks/native/include/binder/ |
H A D | ProcessState.h | 60 status_t setThreadPoolMaxThreadCount(size_t maxThreads);
|
/aosp12/frameworks/native/libs/binder/include/binder/ |
H A D | ProcessState.h | 60 status_t setThreadPoolMaxThreadCount(size_t maxThreads);
|
H A D | RpcSession.h | 84 status_t getRemoteMaxThreads(size_t* maxThreads);
|
/aosp12/system/libhwbinder/include/hwbinder/ |
H A D | ProcessState.h | 60 status_t setThreadPoolConfiguration(size_t maxThreads, bool callerJoinsPool);
|