Home
last modified time | relevance | path

Searched refs:nThreads (Results 1 – 5 of 5) sorted by relevance

/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/
DExecutors.java62 public static @NonNull ExecutorService newFixedUniqueThreadPool(int nThreads) { in newFixedUniqueThreadPool() argument
63 return new UniqueExecutor(nThreads, nThreads, 0, TimeUnit.MILLISECONDS, in newFixedUniqueThreadPool()
67 public static @NonNull ExecutorService newFixedUniqueThreadPool(int nThreads, in newFixedUniqueThreadPool() argument
69 return new UniqueExecutor(nThreads, nThreads, 0, TimeUnit.MILLISECONDS, in newFixedUniqueThreadPool()
/packages/apps/Settings/src/com/android/settings/fuelgauge/utils/
DLifecycleAwareExecutorFactory.kt40 fun newFixedThreadPool(lifecycle: Lifecycle?, nThreads: Int): ExecutorService { in <lambda>()
41 return Executors.newFixedThreadPool(nThreads).also { executor -> in <lambda>()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DConcurrentUtils.java56 public static ExecutorService newFixedThreadPool(int nThreads, String poolName, in newFixedThreadPool() argument
58 return Executors.newFixedThreadPool(nThreads, in newFixedThreadPool()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/utils/
DLifecycleAwareExecutorFactoryTest.kt58 LifecycleAwareExecutorFactory.newFixedThreadPool(lifecycle, nThreads = 6) in newFixedThreadPool_addObserver()
66 val executor = LifecycleAwareExecutorFactory.newFixedThreadPool(lifecycle, nThreads = 8) in newFixedThreadPool_autoShutdown()
/packages/apps/Launcher3/src/com/android/launcher3/util/coroutines/
DDispatcherProvider.kt56 nThreads = Runtime.getRuntime().availableProcessors(), in bgDispatcher()