Home
last modified time | relevance | path

Searched refs:maxThreads (Results 1 – 25 of 27) sorted by relevance

12

/aosp12/system/libhidl/transport/include/hidl/
H A DLegacySupport.h67 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 DHidlTransportSupport.h46 void configureRpcThreadpool(size_t maxThreads, bool callerWillJoin);
H A DHidlBinderSupport.h225 void configureBinderRpcThreadpool(size_t maxThreads, bool callerWillJoin);
/aosp12/frameworks/base/tests/JankBench/app/src/main/jni/
H A DWorkerPool.cpp233 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 DWorkerPool.h37 uint64_t launchWork(WorkerCallback_t cb, void *usr, int maxThreads = -1);
/aosp12/hardware/interfaces/tests/multithread/1.0/default/
H A DMultithread.cpp18 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 DMultithread.h26 virtual Return<void> setNumThreads(int32_t maxThreads, int32_t numThreads) override;
/aosp12/system/libhwbinder/
H A DProcessState.cpp310 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 DThreadPool.cpp87 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 DThreadPool.h86 extern SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads);
/aosp12/frameworks/native/libs/binder/
H A DProcessState.cpp349 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 DRpcState.cpp283 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 DRpcSession.cpp96 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 DHidlTransportSupport.cpp31 void configureRpcThreadpool(size_t maxThreads, bool callerWillJoin) { in configureRpcThreadpool() argument
33 configureBinderRpcThreadpool(maxThreads, callerWillJoin); in configureRpcThreadpool()
H A DHidlBinderSupport.cpp276 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 DIMultithread.hal28 * @param maxThreads arg passed to configureRpcThreadpool
32 setNumThreads(int32_t maxThreads, int32_t numThreads);
/aosp12/frameworks/base/tools/aapt/
H A DWorkQueue.cpp27 WorkQueue::WorkQueue(size_t maxThreads, bool canCallJava) : in WorkQueue() argument
28 mMaxThreads(maxThreads), mCanCallJava(canCallJava), in WorkQueue()
H A DWorkQueue.h50 explicit WorkQueue(size_t maxThreads, bool canCallJava = true);
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_HwBinder.cpp341 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 Dandroid_util_Binder.cpp1155 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 DHwBinder.java114 long maxThreads, boolean callerWillJoin); in configureRpcThreadpool() argument
/aosp12/frameworks/native/include/binder/
H A DProcessState.h60 status_t setThreadPoolMaxThreadCount(size_t maxThreads);
/aosp12/frameworks/native/libs/binder/include/binder/
H A DProcessState.h60 status_t setThreadPoolMaxThreadCount(size_t maxThreads);
H A DRpcSession.h84 status_t getRemoteMaxThreads(size_t* maxThreads);
/aosp12/system/libhwbinder/include/hwbinder/
H A DProcessState.h60 status_t setThreadPoolConfiguration(size_t maxThreads, bool callerJoinsPool);

12