Home
last modified time | relevance | path

Searched refs:ThreadFactory (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java73 static ThreadFactory defaultThreadFactory() { in defaultThreadFactory()
117 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory(); in createDefault()
126 static ThreadPool create(int nThreads, ThreadFactory factory) { in create()
170 private static ThreadFactory getDefaultThreadPoolThreadFactory() { in getDefaultThreadPoolThreadFactory()
177 return ((ThreadFactory)c.newInstance()); in getDefaultThreadPoolThreadFactory()
DLinuxAsynchronousChannelProvider.java31 import java.util.concurrent.ThreadFactory;
54 … public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) in openAsynchronousChannelGroup()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java158 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool()
199 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { in newSingleThreadExecutor()
238 public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) { in newCachedThreadPool()
279 …public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactor… in newSingleThreadScheduledExecutor()
308 int corePoolSize, ThreadFactory threadFactory) { in newScheduledThreadPool()
358 public static ThreadFactory defaultThreadFactory() { in defaultThreadFactory()
366 public static ThreadFactory privilegedThreadFactory() { in privilegedThreadFactory()
551 private static class DefaultThreadFactory implements ThreadFactory {
DThreadFactory.java58 public interface ThreadFactory { interface
DThreadPoolExecutor.java532 private volatile ThreadFactory threadFactory;
1254 ThreadFactory threadFactory) { in ThreadPoolExecutor()
1326 ThreadFactory threadFactory, in ThreadPoolExecutor()
1509 public void setThreadFactory(ThreadFactory threadFactory) { in setThreadFactory()
1521 public ThreadFactory getThreadFactory() { in getThreadFactory()
DScheduledThreadPoolExecutor.java471 ThreadFactory threadFactory) { in ScheduledThreadPoolExecutor()
510 ThreadFactory threadFactory, in ScheduledThreadPoolExecutor()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java60 int nThreads, java.util.concurrent.ThreadFactory threadFactory) { in newFixedThreadPool()
69 java.util.concurrent.ThreadFactory threadFactory) { in newSingleThreadExecutor()
78 java.util.concurrent.ThreadFactory threadFactory) { in newCachedThreadPool()
87 java.util.concurrent.ThreadFactory threadFactory) { in newSingleThreadScheduledExecutor()
97 int corePoolSize, java.util.concurrent.ThreadFactory threadFactory) { in newScheduledThreadPool()
112 public static java.util.concurrent.ThreadFactory defaultThreadFactory() { in defaultThreadFactory()
116 public static java.util.concurrent.ThreadFactory privilegedThreadFactory() { in privilegedThreadFactory()
150 private static class DefaultThreadFactory implements java.util.concurrent.ThreadFactory {
DThreadPoolExecutor.java58 java.util.concurrent.ThreadFactory threadFactory) { in ThreadPoolExecutor()
78 java.util.concurrent.ThreadFactory threadFactory, in ThreadPoolExecutor()
213 public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) { in setThreadFactory()
217 public java.util.concurrent.ThreadFactory getThreadFactory() { in getThreadFactory()
385 private volatile java.util.concurrent.ThreadFactory threadFactory;
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousChannelGroup.java31 import java.util.concurrent.ThreadFactory;
182 ThreadFactory threadFactory) in withFixedThreadPool()
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java24 import java.util.concurrent.ThreadFactory;
48 private static class TestThreadFactory implements ThreadFactory {
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousChannelGroupTest.java27 import java.util.concurrent.ThreadFactory;
171 private static class TestThreadFactory implements ThreadFactory {
DAsynchronousFileChannelTest.java45 import java.util.concurrent.ThreadFactory;
647 ExecutorService executorService = Executors.newSingleThreadExecutor(new ThreadFactory() { in testCustomExecutor()
/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java41 import java.util.concurrent.ThreadFactory;
92 private static class ProcessReaperThreadFactory implements ThreadFactory {
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java187 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException;
/libcore/ojluni/annotations/hiddenapi/java/lang/
DUNIXProcess.java156 private static class ProcessReaperThreadFactory implements java.util.concurrent.ThreadFactory {
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadPoolExecutorSubclassTest.java56 import java.util.concurrent.ThreadFactory;
195 ThreadFactory threadFactory) { in CustomTPE()
214 ThreadFactory threadFactory, in CustomTPE()
248 static class FailingThreadFactory implements ThreadFactory {
409 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
430 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
966 (ThreadFactory) null); in testConstructorNullPointerException3()
1153 (ThreadFactory) null, in testConstructorNullPointerException8()
DScheduledExecutorSubclassTest.java55 import java.util.concurrent.ThreadFactory;
118 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { in CustomExecutor()
121 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, in CustomExecutor()
560 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
571 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
DThreadPoolExecutorTest.java57 import java.util.concurrent.ThreadFactory;
101 static class FailingThreadFactory implements ThreadFactory {
262 ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
283 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
854 (ThreadFactory) null); in testConstructorNullPointerException3()
1041 (ThreadFactory) null, in testConstructorNullPointerException8()
DScheduledExecutorTest.java54 import java.util.concurrent.ThreadFactory;
504 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
516 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorSubclassTest.java31 import java.util.concurrent.ThreadFactory;
173 ThreadFactory threadFactory) { in CustomTPE()
192 ThreadFactory threadFactory, in CustomTPE()
226 static class FailingThreadFactory implements ThreadFactory {
387 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
408 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
944 (ThreadFactory) null); in testConstructorNullPointerException3()
1131 (ThreadFactory) null, in testConstructorNullPointerException8()
DScheduledExecutorSubclassTest.java30 import java.util.concurrent.ThreadFactory;
96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { in CustomExecutor()
99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, in CustomExecutor()
538 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
549 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
DThreadPoolExecutorTest.java31 import java.util.concurrent.ThreadFactory;
79 static class FailingThreadFactory implements ThreadFactory {
240 ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
261 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
832 (ThreadFactory) null); in testConstructorNullPointerException3()
1019 (ThreadFactory) null, in testConstructorNullPointerException8()
DScheduledExecutorTest.java29 import java.util.concurrent.ThreadFactory;
482 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory()
494 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory()
DJSR166TestCase.java51 import java.util.concurrent.ThreadFactory;
1630 public static class SimpleThreadFactory implements ThreadFactory {
/libcore/ojluni/src/main/java/sun/nio/fs/
DPollingWatchService.java58 .newSingleThreadScheduledExecutor(new ThreadFactory() { in PollingWatchService()

12