/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Executors.java | 158 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument 162 threadFactory); in newFixedThreadPool() 199 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { in newSingleThreadExecutor() argument 204 threadFactory)); in newSingleThreadExecutor() 238 public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) { in newCachedThreadPool() argument 242 threadFactory); in newCachedThreadPool() 279 …lic static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory) { in newSingleThreadScheduledExecutor() argument 281 (new ScheduledThreadPoolExecutor(1, threadFactory)); in newSingleThreadScheduledExecutor() 308 int corePoolSize, ThreadFactory threadFactory) { in newScheduledThreadPool() argument 309 return new ScheduledThreadPoolExecutor(corePoolSize, threadFactory); in newScheduledThreadPool()
|
D | ThreadPoolExecutor.java | 532 private volatile ThreadFactory threadFactory; field in ThreadPoolExecutor 1254 ThreadFactory threadFactory) { in ThreadPoolExecutor() argument 1256 threadFactory, defaultHandler); in ThreadPoolExecutor() 1326 ThreadFactory threadFactory, in ThreadPoolExecutor() argument 1333 if (workQueue == null || threadFactory == null || handler == null) in ThreadPoolExecutor() 1339 this.threadFactory = threadFactory; in ThreadPoolExecutor() 1509 public void setThreadFactory(ThreadFactory threadFactory) { in setThreadFactory() argument 1510 if (threadFactory == null) in setThreadFactory() 1512 this.threadFactory = threadFactory; in setThreadFactory() 1522 return threadFactory; in getThreadFactory()
|
D | ScheduledThreadPoolExecutor.java | 471 ThreadFactory threadFactory) { in ScheduledThreadPoolExecutor() argument 474 new DelayedWorkQueue(), threadFactory); in ScheduledThreadPoolExecutor() 510 ThreadFactory threadFactory, in ScheduledThreadPoolExecutor() argument 514 new DelayedWorkQueue(), threadFactory, handler); in ScheduledThreadPoolExecutor()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 117 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory(); in createDefault() local 118 if (threadFactory == null) in createDefault() 119 threadFactory = defaultThreadFactory(); in createDefault() 121 ExecutorService executor = Executors.newCachedThreadPool(threadFactory); in createDefault()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousChannelGroup.java | 182 ThreadFactory threadFactory) in withFixedThreadPool() argument 186 .openAsynchronousChannelGroup(nThreads, threadFactory); in withFixedThreadPool()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | Executors.java | 60 int nThreads, java.util.concurrent.ThreadFactory threadFactory) { in newFixedThreadPool() argument 69 java.util.concurrent.ThreadFactory threadFactory) { in newSingleThreadExecutor() argument 78 java.util.concurrent.ThreadFactory threadFactory) { in newCachedThreadPool() argument 87 java.util.concurrent.ThreadFactory threadFactory) { in newSingleThreadScheduledExecutor() argument 97 int corePoolSize, java.util.concurrent.ThreadFactory threadFactory) { in newScheduledThreadPool() argument
|
D | ThreadPoolExecutor.java | 58 java.util.concurrent.ThreadFactory threadFactory) { in ThreadPoolExecutor() argument 78 java.util.concurrent.ThreadFactory threadFactory, in ThreadPoolExecutor() argument 213 public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) { in setThreadFactory() argument 385 private volatile java.util.concurrent.ThreadFactory threadFactory; field in ThreadPoolExecutor
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ScheduledExecutorSubclassTest.java | 96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { in CustomExecutor() argument 97 super(corePoolSize, threadFactory); in CustomExecutor() 99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, in CustomExecutor() argument 101 super(corePoolSize, threadFactory, handler); in CustomExecutor() 538 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 539 final CustomExecutor p = new CustomExecutor(1, threadFactory); in testGetThreadFactory() 541 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 549 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 552 p.setThreadFactory(threadFactory); in testSetThreadFactory() 553 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ThreadPoolExecutorSubclassTest.java | 173 ThreadFactory threadFactory) { in CustomTPE() argument 175 threadFactory); in CustomTPE() 192 ThreadFactory threadFactory, in CustomTPE() argument 195 workQueue, threadFactory, handler); in CustomTPE() 387 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 392 threadFactory, in testGetThreadFactory() 395 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 408 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 409 p.setThreadFactory(threadFactory); in testSetThreadFactory() 410 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ScheduledExecutorTest.java | 482 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 484 new ScheduledThreadPoolExecutor(1, threadFactory); in testGetThreadFactory() 486 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 494 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 497 p.setThreadFactory(threadFactory); in testSetThreadFactory() 498 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ThreadPoolExecutorTest.java | 240 ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 245 threadFactory, in testGetThreadFactory() 248 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 261 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 262 p.setThreadFactory(threadFactory); in testSetThreadFactory() 263 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AsynchronousChannelProvider.java | 187 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException;
|