/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/concurrent/ |
D | BasicThreadFactoryTest.java | 28 import java.util.concurrent.ThreadFactory; 101 final ThreadFactory wrappedFactory = EasyMock.createMock(ThreadFactory.class); in testBuilderReset() 120 builder.wrappedFactory(EasyMock.createNiceMock(ThreadFactory.class)) in testBuilderResetAfterBuild() 130 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadNamingPattern() 153 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadNoNamingPattern() 171 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in checkDaemonFlag() 205 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadNoDaemonFlag() 227 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadPriority() 246 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadNoPriority() 264 final ThreadFactory wrapped = EasyMock.createMock(ThreadFactory.class); in testNewThreadExHandler() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | ThreadFactoryBuilderTest.java | 25 import java.util.concurrent.ThreadFactory; 60 ThreadFactory threadFactory = builder.build(); in testThreadFactoryBuilder_defaults() 84 ThreadFactory threadFactory2 = builder.build(); in testThreadFactoryBuilder_defaults() 97 ThreadFactory factory = builder.setNameFormat(format).build(); in testNameFormatWithPercentS_custom() 105 ThreadFactory factory = builder.setNameFormat(format).build(); in testNameFormatWithPercentD_custom() 112 ThreadFactory factory = builder.setDaemon(false).build(); in testDaemon_false() 118 ThreadFactory factory = builder.setDaemon(true).build(); in testDaemon_true() 125 ThreadFactory factory = builder.setPriority(i).build(); in testPriority_custom() 158 ThreadFactory factory1 = builder.setPriority(1).build(); in testBuildMutateBuild() 161 ThreadFactory factory2 = builder.setPriority(2).build(); in testBuildMutateBuild() [all …]
|
D | MoreExecutorsTest.java | 70 import java.util.concurrent.ThreadFactory; 597 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_executorDelegatesToOriginal() 607 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_shutdownHookRegistered() 625 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingScheduledExecutorService_executorDelegatesToOriginal() 636 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetScheduledExitingExecutorService_shutdownHookRegistered() 644 ThreadFactory factory = MoreExecutors.platformThreadFactory(); in testPlatformThreadFactory_default()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | ThreadFactoryBuilderTest.java | 25 import java.util.concurrent.ThreadFactory; 60 ThreadFactory threadFactory = builder.build(); in testThreadFactoryBuilder_defaults() 84 ThreadFactory threadFactory2 = builder.build(); in testThreadFactoryBuilder_defaults() 97 ThreadFactory factory = builder.setNameFormat(format).build(); in testNameFormatWithPercentS_custom() 105 ThreadFactory factory = builder.setNameFormat(format).build(); in testNameFormatWithPercentD_custom() 112 ThreadFactory factory = builder.setDaemon(false).build(); in testDaemon_false() 118 ThreadFactory factory = builder.setDaemon(true).build(); in testDaemon_true() 125 ThreadFactory factory = builder.setPriority(i).build(); in testPriority_custom() 158 ThreadFactory factory1 = builder.setPriority(1).build(); in testBuildMutateBuild() 161 ThreadFactory factory2 = builder.setPriority(2).build(); in testBuildMutateBuild() [all …]
|
D | MoreExecutorsTest.java | 70 import java.util.concurrent.ThreadFactory; 597 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_executorDelegatesToOriginal() 607 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_shutdownHookRegistered() 625 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingScheduledExecutorService_executorDelegatesToOriginal() 636 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetScheduledExitingExecutorService_shutdownHookRegistered() 644 ThreadFactory factory = MoreExecutors.platformThreadFactory(); in testPlatformThreadFactory_default()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | ThreadFactoryBuilder.java | 27 import java.util.concurrent.ThreadFactory; 56 @CheckForNull private ThreadFactory backingThreadFactory = null; 134 public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory) { in setThreadFactory() 147 public ThreadFactory build() { in build() 153 private static ThreadFactory doBuild(ThreadFactoryBuilder builder) { in doBuild() 158 ThreadFactory backingThreadFactory = in doBuild() 163 return new ThreadFactory() { in doBuild()
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | ThreadFactoryBuilder.java | 27 import java.util.concurrent.ThreadFactory; 56 @CheckForNull private ThreadFactory backingThreadFactory = null; 134 public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory) { in setThreadFactory() 147 public ThreadFactory build() { in build() 153 private static ThreadFactory doBuild(ThreadFactoryBuilder builder) { in doBuild() 158 ThreadFactory backingThreadFactory = in doBuild() 163 return new ThreadFactory() { in doBuild()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/concurrent/ |
D | BasicThreadFactory.java | 23 import java.util.concurrent.ThreadFactory; 91 public class BasicThreadFactory implements ThreadFactory { 96 private final ThreadFactory wrappedFactory; 139 public final ThreadFactory getWrappedFactory() { in getWrappedFactory() 257 private ThreadFactory wrappedFactory; 281 public Builder wrappedFactory(final ThreadFactory factory) { in wrappedFactory()
|
/external/vogar/src/vogar/util/ |
D | Threads.java | 21 import java.util.concurrent.ThreadFactory; 32 public static ThreadFactory daemonThreadFactory(final String name) { in daemonThreadFactory() 33 return new ThreadFactory() { in daemonThreadFactory() 48 ThreadFactory threadFactory = daemonThreadFactory(name); in fixedThreadsExecutor()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/ |
D | DaemonThreadFactory.java | 20 import java.util.concurrent.ThreadFactory; 24 public final class DaemonThreadFactory implements ThreadFactory { 31 private static final ThreadFactory threadFactory = MoreExecutors.platformThreadFactory();
|
/external/cronet/base/android/javatests/src/org/chromium/base/task/ |
D | AsyncTaskTest.java | 21 import java.util.concurrent.ThreadFactory; 64 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorRunnables() 89 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorChromeAsyncTask() 113 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorOsAsyncTask()
|
/external/libchrome/base/android/javatests/src/org/chromium/base/ |
D | AsyncTaskTest.java | 21 import java.util.concurrent.ThreadFactory; 63 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorRunnables() 88 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorChromeAsyncTask() 112 new ArrayBlockingQueue<Runnable>(QUEUE_SIZE), new ThreadFactory() { in testChromeThreadPoolExecutorOsAsyncTask()
|
/external/cronet/base/android/java/src/org/chromium/base/task/ |
D | ChromeThreadPoolExecutor.java | 19 import java.util.concurrent.ThreadFactory; 34 private static final ThreadFactory sThreadFactory = new ThreadFactory() { 55 TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) { in ChromeThreadPoolExecutor()
|
/external/testng/src/main/java/org/testng/internal/ |
D | PoolService.java | 13 import java.util.concurrent.ThreadFactory; 21 private ThreadFactory m_threadFactory; 25 m_threadFactory = new ThreadFactory() { in PoolService()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | WithTimeoutOrNullThreadDispatchTest.kt | 10 import java.util.concurrent.ThreadFactory 58 …private fun checkCancellationDispatch(factory: (ThreadFactory) -> CoroutineDispatcher) = runBlocki… in <lambda>() 61 val dispatcher = factory(ThreadFactory { Thread(it).also { thread = it } }) in <lambda>()
|
D | WithTimeoutThreadDispatchTest.kt | 10 import java.util.concurrent.ThreadFactory 58 …private fun checkCancellationDispatch(factory: (ThreadFactory) -> CoroutineDispatcher) = runBlocki… in <lambda>() 61 val dispatcher = factory(ThreadFactory { Thread(it).also { thread = it } }) in <lambda>()
|
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/ |
D | AsyncServer.java | 42 import java.util.concurrent.ThreadFactory; 96 ThreadFactory tf = new DefaultThreadFactory("server-elg-", true /*daemon */); in newServer() 114 .getConstructor(int.class, ThreadFactory.class) in newServer() 119 .getConstructor(int.class, ThreadFactory.class) in newServer() 137 .getConstructor(int.class, ThreadFactory.class) in newServer() 142 .getConstructor(int.class, ThreadFactory.class) in newServer()
|
/external/tensorflow/tensorflow/core/framework/ |
D | thread_factory.h | 28 class ThreadFactory { 30 virtual ~ThreadFactory() {} in ~ThreadFactory()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/ |
D | FifoPriorityThreadPoolExecutor.java | 6 import java.util.concurrent.ThreadFactory; 31 ThreadFactory threadFactory) { in FifoPriorityThreadPoolExecutor() 44 public static class DefaultThreadFactory implements ThreadFactory {
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/monitor/ |
D | FileAlterationMonitor.java | 25 import java.util.concurrent.ThreadFactory; 44 private ThreadFactory threadFactory; 161 public synchronized void setThreadFactory(final ThreadFactory threadFactory) { in setThreadFactory()
|
/external/testng/src/main/java/org/testng/internal/thread/ |
D | ThreadUtil.java | 11 import java.util.concurrent.ThreadFactory; 49 new ThreadFactory() { in execute() 104 public static class ThreadFactoryImpl implements IThreadFactory, ThreadFactory {
|
D | ExecutorAdapter.java | 6 import java.util.concurrent.ThreadFactory; 24 (ThreadFactory) tf.getThreadFactory()); in ExecutorAdapter()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/monitor/ |
D | FileAlterationMonitorTest.java | 32 import java.util.concurrent.ThreadFactory; 179 final ThreadFactory threadFactory = new ThreadFactory() { in testStopWhileWaitingForNextInterval() 180 private final ThreadFactory delegate = Executors.defaultThreadFactory(); in testStopWhileWaitingForNextInterval()
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/ |
D | HandshakerServiceChannel.java | 26 import java.util.concurrent.ThreadFactory; 72 ThreadFactory clientThreadFactory = new DefaultThreadFactory("handshaker pool", true); in getHandshakerChannelPoolForTesting()
|
/external/tensorflow/tensorflow/core/data/ |
D | unbounded_thread_pool.cc | 53 class UnboundedThreadPool::LogicalThreadFactory : public ThreadFactory { 68 std::shared_ptr<ThreadFactory> UnboundedThreadPool::get_thread_factory() { in get_thread_factory()
|