Home
last modified time | relevance | path

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

/frameworks/base/tests/JankBench/app/src/main/jni/
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()
DWorkerPool.h37 uint64_t launchWork(WorkerCallback_t cb, void *usr, int maxThreads = -1);
/frameworks/wilhelm/src/
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()
DThreadPool.h86 extern SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads);
/frameworks/native/libs/binder/
DProcessState.cpp421 status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { in setThreadPoolMaxThreadCount() argument
422 LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, in setThreadPoolMaxThreadCount()
425 if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { in setThreadPoolMaxThreadCount()
426 mMaxThreads = maxThreads; in setThreadPoolMaxThreadCount()
538 size_t maxThreads = DEFAULT_MAX_BINDER_THREADS; in open_driver() local
539 result = ioctl(fd.get(), BINDER_SET_MAX_THREADS, &maxThreads); in open_driver()
DRpcState.cpp497 int32_t maxThreads; in getMaxThreads() local
498 status = reply.readInt32(&maxThreads); in getMaxThreads()
500 if (maxThreads <= 0) { in getMaxThreads()
501 ALOGE("Error invalid max maxThreads: %d", maxThreads); in getMaxThreads()
505 *maxThreadsOut = maxThreads; in getMaxThreads()
DRpcSession.cpp234 status_t RpcSession::getRemoteMaxThreads(size_t* maxThreads) { in getRemoteMaxThreads() argument
239 return state()->getMaxThreads(connection.get(), sp<RpcSession>::fromExisting(this), maxThreads); in getRemoteMaxThreads()
/frameworks/base/tools/aapt/
DWorkQueue.cpp27 WorkQueue::WorkQueue(size_t maxThreads, bool canCallJava) : in WorkQueue() argument
28 mMaxThreads(maxThreads), mCanCallJava(canCallJava), in WorkQueue()
DWorkQueue.h50 explicit WorkQueue(size_t maxThreads, bool canCallJava = true);
/frameworks/base/core/jni/
Dandroid_os_HwBinder.cpp385 jlong maxThreads, jboolean callerWillJoin) { in JHwBinder_native_configureRpcThreadpool() argument
386 CHECK(maxThreads > 0); in JHwBinder_native_configureRpcThreadpool()
387 … ProcessState::self()->setThreadPoolConfiguration(maxThreads, callerWillJoin /*callerJoinsPool*/); in JHwBinder_native_configureRpcThreadpool()
Dandroid_util_Binder.cpp1233 jobject clazz, jint maxThreads) in android_os_BinderInternal_setMaxThreads() argument
1235 ProcessState::self()->setThreadPoolMaxThreadCount(maxThreads); in android_os_BinderInternal_setMaxThreads()
/frameworks/base/core/java/android/os/
DHwBinder.java126 long maxThreads, boolean callerWillJoin); in configureRpcThreadpool() argument
/frameworks/native/libs/binder/include/binder/
DProcessState.h64 LIBBINDER_EXPORTED status_t setThreadPoolMaxThreadCount(size_t maxThreads);
DRpcSession.h173 [[nodiscard]] LIBBINDER_EXPORTED status_t getRemoteMaxThreads(size_t* maxThreads);
/frameworks/native/include/binder/
DProcessState.h64 LIBBINDER_EXPORTED status_t setThreadPoolMaxThreadCount(size_t maxThreads);