Home
last modified time | relevance | path

Searched refs:numThreads (Results 1 – 25 of 32) sorted by relevance

12

/aosp12/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DParcelObtainPerfTest.java46 private static void timeContention(int numThreads) throws Exception { in timeContention() argument
49 final ObtainThread[] threads = new ObtainThread[numThreads]; in timeContention()
50 for (int i = 0; i < numThreads; i++) { in timeContention()
51 final ObtainThread thread = new ObtainThread(ITERATIONS / numThreads); in timeContention()
55 for (int i = 0; i < numThreads; i++) { in timeContention()
/aosp12/art/test/522-checker-regression-monitor-exit/src/
H A DMain.java59 int numThreads = 10; in main() local
61 ExecutorService pool = Executors.newFixedThreadPool(numThreads); in main()
63 List<HashCodeQuery> queries = new ArrayList<HashCodeQuery>(numThreads); in main()
64 for (int i = 0; i < numThreads; ++i) { in main()
72 for (int i = 0; i < numThreads; ++i) { in main()
/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()
26 mNumThreads = numThreads; in setNumThreads()
H A DMultithread.h26 virtual Return<void> setNumThreads(int32_t maxThreads, int32_t numThreads) override;
/aosp12/hardware/libhardware_legacy/
H A Dpower_test.cpp46 constexpr int numThreads = 20; in TEST()
48 for (int i = 0; i < numThreads; i++) { in TEST()
72 constexpr int numThreads = 20; in TEST() local
76 for (int i = 0; i < numThreads; i++) { in TEST()
/aosp12/frameworks/native/cmds/surfacereplayer/replayer/
H A DMain.cpp64 int numThreads = DEFAULT_THREADS; in main() local
74 numThreads = atoi(optarg); in main()
105 android::Replayer r(filename, pauseBeginning, numThreads, wait, stopHere); in main()
H A DReplayer.h58 int numThreads = DEFAULT_THREADS, bool wait = true, nsecs_t stopHere = -1);
59 Replayer(const Trace& trace, bool replayManually = false, int numThreads = DEFAULT_THREADS,
H A DReplayer.cpp52 Replayer::Replayer(const std::string& filename, bool replayManually, int numThreads, bool wait, in Replayer() argument
58 mNumThreads(numThreads), in Replayer()
84 Replayer::Replayer(const Trace& t, bool replayManually, int numThreads, bool wait, nsecs_t stopHere) in Replayer() argument
89 mNumThreads(numThreads), in Replayer()
/aosp12/hardware/interfaces/tests/multithread/1.0/
H A DIMultithread.hal30 * @param numThreads number of calls in parallel to finish
32 setNumThreads(int32_t maxThreads, int32_t numThreads);
36 * @return noTimeout numThreads appeared in parallel before timeout
/aosp12/frameworks/native/libs/binder/ndk/
H A Dprocess.cpp31 bool ABinderProcess_setThreadPoolMaxThreadCount(uint32_t numThreads) { in ABinderProcess_setThreadPoolMaxThreadCount() argument
32 return ProcessState::self()->setThreadPoolMaxThreadCount(numThreads) == 0; in ABinderProcess_setThreadPoolMaxThreadCount()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DCastControllerImplTest.java88 int numThreads = 2 * callbackCount; in testAddCallbackRemoveCallback_concurrently() local
90 CountDownLatch threadsDone = new CountDownLatch(numThreads); in testAddCallbackRemoveCallback_concurrently()
97 for (int i = 0; i < numThreads; i++) { in testAddCallbackRemoveCallback_concurrently()
/aosp12/frameworks/av/services/mediaresourcemanager/fuzzer/
H A Dmediaresourcemanager_fuzzer.cpp228 size_t numThreads = numThreadPairs * 2; in setResources() local
231 pthread_t pt[numThreads]; in setResources()
233 for (i = 0; i < numThreads - 1; i += 2) { in setResources()
255 for (i = 0; i < numThreads; ++i) { in setResources()
/aosp12/build/soong/finder/
H A Dfinder_test.go39 …hNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) *Finder {
40 f, err := newFinderAndErr(t, filesystem, cacheParams, numThreads)
56 f, err := newImpl(cacheParams, filesystem, logger, cachePath, numThreads)
150 func testAgainstSeveralThreadcounts(t *testing.T, tester func(t *testing.T, numThreads int)) {
154 for _, numThreads := range threadCounts {
155 testName := fmt.Sprintf("%v threads", numThreads)
157 localNumThreads := numThreads
230 testWithNumThreads := func(t *testing.T, numThreads int) {
243 numThreads,
502 testWithNumThreads := func(t *testing.T, numThreads int) {
[all …]
/aosp12/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/
H A DInetDiagSocketIntegrationTest.java203 final int numThreads = 8; in testB141603906() local
205 final Thread[] threads = new Thread[numThreads]; in testB141603906()
207 for (int i = 0; i < numThreads; i++) { in testB141603906()
/aosp12/frameworks/native/libs/binder/ndk/include_platform/android/
H A Dbinder_process.h38 bool ABinderProcess_setThreadPoolMaxThreadCount(uint32_t numThreads);
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DArchiveTest.java220 int numThreads = SIZE - 2; in testRemoveChannelNotifications_concurrently() local
223 CountDownLatch threadsDone = new CountDownLatch(numThreads); in testRemoveChannelNotifications_concurrently()
224 for (int i = 0; i < numThreads; i++) { in testRemoveChannelNotifications_concurrently()
/aosp12/art/tools/dmtracedump/
H A Dcreatetesttrace.cc141 int32_t numThreads = maxThreadId + 1; in parseInputFile() local
146 stack* callStack = new stack[numThreads]; in parseInputFile()
147 for (int32_t ii = 0; ii < numThreads; ++ii) { in parseInputFile()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
H A DTzS2PolygonsToTzS2CellUnions.java90 int numThreads; field in TzS2PolygonsToTzS2CellUnions.Arguments
116 int threads = arguments.numThreads; in main()
H A DTzS2CellUnionsToTzS2Ranges.java88 int numThreads; field in TzS2CellUnionsToTzS2Ranges.Arguments
114 int threads = arguments.numThreads; in main()
H A DGeoJsonTzToTzS2Polygons.java102 int numThreads; field in GeoJsonTzToTzS2Polygons.Arguments
134 int threads = arguments.numThreads; in main()
H A DMergeTzS2Ranges.java84 int numThreads; field in MergeTzS2Ranges.Arguments
110 int threads = arguments.numThreads; in main()
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DQsbApplication.java178 protected Factory<Executor> createExecutorFactory(final int numThreads) { in createExecutorFactory() argument
183 return Executors.newFixedThreadPool(numThreads, threadFactory); in createExecutorFactory()
/aosp12/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp726 const uint32_t numThreads = mWorkers.mCount + 1; in launchReduceParallel() local
730 const uint32_t numAllocAccum = numThreads - (mtls->outFunc == nullptr); in launchReduceParallel()
751 const size_t accumPtrArrayBytes = sizeof(uint8_t *) * numThreads; in launchReduceParallel()
762 numThreads, mtls->accumAlloc); in launchReduceParallel()
767 mtls->mSliceSize = rsMax(1U, mtls->redp.dim.y / (numThreads * 4)); in launchReduceParallel()
770 mtls->mSliceSize = rsMax(1U, mtls->redp.dim.x / (numThreads * 4)); in launchReduceParallel()
/aosp12/system/update_engine/payload_generator/
H A Dxz_android.cc137 lzma2Props.lzmaProps.numThreads = 1; in XzCompress()
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DBinderInternal.java189 public static final native void setMaxThreads(int numThreads); in setMaxThreads() argument

12