Home
last modified time | relevance | path

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

123

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DThreadFactoryBuilderTest.java25 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 …]
DMoreExecutorsTest.java70 import java.util.concurrent.ThreadFactory;
594 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_executorDelegatesToOriginal()
603 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_shutdownHookRegistered()
620 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingScheduledExecutorService_executorDelegatesToOriginal()
630 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetScheduledExitingExecutorService_shutdownHookRegistered()
638 ThreadFactory factory = MoreExecutors.platformThreadFactory(); in testPlatformThreadFactory_default()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DThreadFactoryBuilderTest.java25 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 …]
DMoreExecutorsTest.java70 import java.util.concurrent.ThreadFactory;
594 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_executorDelegatesToOriginal()
603 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingExecutorService_shutdownHookRegistered()
620 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetExitingScheduledExecutorService_executorDelegatesToOriginal()
630 ThreadFactory threadFactory = mock(ThreadFactory.class); in testGetScheduledExitingExecutorService_shutdownHookRegistered()
638 ThreadFactory factory = MoreExecutors.platformThreadFactory(); in testPlatformThreadFactory_default()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DThreadFactoryBuilder.java26 import java.util.concurrent.ThreadFactory;
53 private ThreadFactory backingThreadFactory = null;
131 public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory) { in setThreadFactory()
144 public ThreadFactory build() { in build()
150 private static ThreadFactory doBuild(ThreadFactoryBuilder builder) { in doBuild()
155 final ThreadFactory backingThreadFactory = in doBuild()
160 return new ThreadFactory() { in doBuild()
DJdkFutureAdapters.java25 import java.util.concurrent.ThreadFactory;
99 private static final ThreadFactory threadFactory =
/external/guava/guava/src/com/google/common/util/concurrent/
DThreadFactoryBuilder.java26 import java.util.concurrent.ThreadFactory;
53 private ThreadFactory backingThreadFactory = null;
131 public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory) { in setThreadFactory()
144 public ThreadFactory build() { in build()
150 private static ThreadFactory doBuild(ThreadFactoryBuilder builder) { in doBuild()
155 final ThreadFactory backingThreadFactory = in doBuild()
160 return new ThreadFactory() { in doBuild()
DJdkFutureAdapters.java25 import java.util.concurrent.ThreadFactory;
99 private static final ThreadFactory threadFactory =
/external/vogar/src/vogar/util/
DThreads.java21 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/
DDaemonThreadFactory.java20 import java.util.concurrent.ThreadFactory;
24 public final class DaemonThreadFactory implements ThreadFactory {
31 private static final ThreadFactory threadFactory = MoreExecutors.platformThreadFactory();
/external/libchrome/base/android/javatests/src/org/chromium/base/
DAsyncTaskTest.java21 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/testng/src/main/java/org/testng/internal/
DPoolService.java13 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/
DWithTimeoutOrNullThreadDispatchTest.kt10 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>()
DWithTimeoutThreadDispatchTest.kt10 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/tensorflow/tensorflow/core/framework/
Dthread_factory.h28 class ThreadFactory {
30 virtual ~ThreadFactory() {} in ~ThreadFactory()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/
DAsyncServer.java42 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/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/
DFifoPriorityThreadPoolExecutor.java6 import java.util.concurrent.ThreadFactory;
31 ThreadFactory threadFactory) { in FifoPriorityThreadPoolExecutor()
44 public static class DefaultThreadFactory implements ThreadFactory {
/external/testng/src/main/java/org/testng/internal/thread/
DThreadUtil.java11 import java.util.concurrent.ThreadFactory;
49 new ThreadFactory() { in execute()
104 public static class ThreadFactoryImpl implements IThreadFactory, ThreadFactory {
DExecutorAdapter.java6 import java.util.concurrent.ThreadFactory;
24 (ThreadFactory) tf.getThreadFactory()); in ExecutorAdapter()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DHandshakerServiceChannel.java26 import java.util.concurrent.ThreadFactory;
72 ThreadFactory clientThreadFactory = new DefaultThreadFactory("handshaker pool", true); in getHandshakerChannelPoolForTesting()
/external/tensorflow/tensorflow/core/kernels/data/
Dunbounded_thread_pool.cc53 class UnboundedThreadPool::LogicalThreadFactory : public ThreadFactory {
68 std::shared_ptr<ThreadFactory> UnboundedThreadPool::get_thread_factory() { in get_thread_factory()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DInactivityTimer.java29 import java.util.concurrent.ThreadFactory;
87 private static final class DaemonThreadFactory implements ThreadFactory {
/external/downloader/src/test/java/com/google/android/downloader/
DTestExecutorRule.java29 import java.util.concurrent.ThreadFactory;
42 private final ThreadFactory threadFactory =
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverStatsExporter.java36 import java.util.concurrent.ThreadFactory;
345 static final class DaemonThreadFactory implements ThreadFactory {
351 private static final ThreadFactory threadFactory = MoreExecutors.platformThreadFactory();
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DUtil.java38 import java.util.concurrent.ThreadFactory;
228 public static ThreadFactory threadFactory(final String name, final boolean daemon) { in threadFactory()
229 return new ThreadFactory() { in threadFactory()

123