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.cpp419 status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { in setThreadPoolMaxThreadCount() argument
420 LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, in setThreadPoolMaxThreadCount()
423 if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { in setThreadPoolMaxThreadCount()
424 mMaxThreads = maxThreads; in setThreadPoolMaxThreadCount()
514 size_t maxThreads = DEFAULT_MAX_BINDER_THREADS; in open_driver() local
515 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); in open_driver()
DRpcState.cpp468 int32_t maxThreads; in getMaxThreads() local
469 status = reply.readInt32(&maxThreads); in getMaxThreads()
471 if (maxThreads <= 0) { in getMaxThreads()
472 ALOGE("Error invalid max maxThreads: %d", maxThreads); in getMaxThreads()
476 *maxThreadsOut = maxThreads; in getMaxThreads()
DRpcSession.cpp243 status_t RpcSession::getRemoteMaxThreads(size_t* maxThreads) { in getRemoteMaxThreads() argument
248 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.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()
Dandroid_util_Binder.cpp1180 jobject clazz, jint maxThreads) in android_os_BinderInternal_setMaxThreads() argument
1182 ProcessState::self()->setThreadPoolMaxThreadCount(maxThreads); in android_os_BinderInternal_setMaxThreads()
/frameworks/base/core/java/android/os/
DHwBinder.java114 long maxThreads, boolean callerWillJoin); in configureRpcThreadpool() argument
/frameworks/native/libs/binder/include/binder/
DProcessState.h67 status_t setThreadPoolMaxThreadCount(size_t maxThreads);
DRpcSession.h171 [[nodiscard]] status_t getRemoteMaxThreads(size_t* maxThreads);
/frameworks/native/include/binder/
DProcessState.h67 status_t setThreadPoolMaxThreadCount(size_t maxThreads);