HomeSort by relevance Sort by last modified time
    Searched full:threadfactory (Results 1 - 25 of 54) sorted by null

1 2 3

  /external/guava/guava/src/com/google/common/util/concurrent/
ThreadFactoryBuilder.java 24 import java.util.concurrent.ThreadFactory;
28 * A ThreadFactory builder, providing any combination of these features:
36 * <li> a {@linkplain ThreadFactory#newThread backing thread factory}
50 private ThreadFactory backingThreadFactory = null;
53 * Creates a new {@link ThreadFactory} builder.
59 * which are created with this ThreadFactory.
64 * instance of the ThreadFactory and will be assigned sequentially.
74 * Sets daemon or not for new threads created with this ThreadFactory.
76 * @param daemon whether or not new Threads created with this ThreadFactory
86 * Sets the priority for new threads created with this ThreadFactory
    [all...]
JdkFutureAdapters.java 27 import java.util.concurrent.ThreadFactory;
89 private static final ThreadFactory threadFactory =
95 Executors.newCachedThreadPool(threadFactory);
MoreExecutors.java 32 import java.util.concurrent.ThreadFactory;
42 * ExecutorService}, and {@link ThreadFactory}.
  /cts/libs/vogar-expect/src/vogar/util/
Threads.java 21 import java.util.concurrent.ThreadFactory;
31 public static ThreadFactory daemonThreadFactory(final String name) {
32 return new ThreadFactory() {
47 ThreadFactory threadFactory = daemonThreadFactory(name);
50 new LinkedBlockingQueue<Runnable>(Integer.MAX_VALUE), threadFactory) {
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
ThreadFactoryBuilderTest.java 27 import java.util.concurrent.ThreadFactory;
57 ThreadFactory threadFactory = builder.build();
58 Thread thread = threadFactory.newThread(monitoredRunnable);
74 // Creating a new thread from the same ThreadFactory will have the same
76 Thread thread2 = threadFactory.newThread(monitoredRunnable);
83 ThreadFactory threadFactory2 = builder.build();
98 ThreadFactory factory = builder.setNameFormat(NAME_FORMAT).build();
106 ThreadFactory factory = builder.setDaemon(false).build();
112 ThreadFactory factory = builder.setDaemon(true).build()
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
SingleThreadNamedTaskExecutor.java 22 import java.util.concurrent.ThreadFactory;
36 public SingleThreadNamedTaskExecutor(ThreadFactory threadFactory) {
38 mWorker = threadFactory.newThread(new Worker());
94 public static Factory<NamedTaskExecutor> factory(final ThreadFactory threadFactory) {
97 return new SingleThreadNamedTaskExecutor(threadFactory);
PriorityThreadFactory.java 21 import java.util.concurrent.ThreadFactory;
26 public class PriorityThreadFactory implements ThreadFactory {
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/
NamedThreadFactory.java 36 import java.util.concurrent.ThreadFactory;
46 public class NamedThreadFactory implements ThreadFactory
50 private ThreadFactory delegate;
62 public NamedThreadFactory( String name, ThreadFactory delegate )
67 public NamedThreadFactory( String name, boolean daemon, ThreadFactory delegate )
  /libcore/luni/src/main/java/java/util/concurrent/
Executors.java 22 * ThreadFactory}, and {@link Callable} classes defined in this
33 * <li> Methods that create and return a {@link ThreadFactory}
107 * ThreadFactory to create new threads when needed. At any point,
118 * @param threadFactory the factory to use when creating new threads
120 * @throws NullPointerException if threadFactory is null
123 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) {
127 threadFactory);
152 * off an unbounded queue, and uses the provided ThreadFactory to
154 * equivalent {@code newFixedThreadPool(1, threadFactory)} th
    [all...]
ThreadFactory.java 17 * class SimpleThreadFactory implements ThreadFactory {
29 public interface ThreadFactory {
ThreadPoolExecutor.java 77 * <dd>New threads are created using a {@link ThreadFactory}. If not
81 * non-daemon status. By supplying a different ThreadFactory, you can
83 * etc. If a {@code ThreadFactory} fails to create a thread when asked
306 * for example when a ThreadFactory fails to create a thread when
478 private volatile ThreadFactory threadFactory;
576 * Creates with given first task and thread from ThreadFactory.
    [all...]
ScheduledThreadPoolExecutor.java 410 * @param threadFactory the factory to use when the executor
413 * @throws NullPointerException if {@code threadFactory} is null
416 ThreadFactory threadFactory) {
418 new DelayedWorkQueue(), threadFactory);
444 * @param threadFactory the factory to use when the executor
449 * @throws NullPointerException if {@code threadFactory} or
453 ThreadFactory threadFactory,
456 new DelayedWorkQueue(), threadFactory, handler)
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
PriorityThreadFactory.java 21 import java.util.concurrent.ThreadFactory;
27 public class PriorityThreadFactory implements ThreadFactory {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
QsbApplication.java 44 import java.util.concurrent.ThreadFactory;
54 private ThreadFactory mQueryThreadFactory;
140 ThreadFactory iconThreadFactory = new PriorityThreadFactory(
179 final ThreadFactory threadFactory = getQueryThreadFactory();
183 return Executors.newFixedThreadPool(numThreads, threadFactory);
202 ThreadFactory queryThreadFactory = getQueryThreadFactory();
210 protected ThreadFactory getQueryThreadFactory() {
218 protected ThreadFactory createQueryThreadFactory() {
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
PriorityThreadFactoryTest.java 23 import java.util.concurrent.ThreadFactory;
41 ThreadFactory factory = new PriorityThreadFactory(priority);
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
InactivityTimer.java 29 import java.util.concurrent.ThreadFactory;
87 private static final class DaemonThreadFactory implements ThreadFactory {
  /external/jmonkeyengine/engine/src/core/com/jme3/asset/
ThreadingManager.java 38 import java.util.concurrent.ThreadFactory;
60 protected class LoadingThreadFactory implements ThreadFactory {
  /packages/apps/Mms/src/com/android/mms/util/
BackgroundLoaderManager.java 25 import java.util.concurrent.ThreadFactory;
145 * {@link ThreadFactory} which sets a meaningful name for the thread.
147 private static class BackgroundLoaderThreadFactory implements ThreadFactory {
  /frameworks/base/core/java/com/android/internal/os/
SamplingProfilerIntegration.java 34 import java.util.concurrent.ThreadFactory;
66 snapshotWriter = Executors.newSingleThreadExecutor(new ThreadFactory() {
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/
Util.java 35 import java.util.concurrent.ThreadFactory;
337 public static ThreadFactory daemonThreadFactory(final String name) {
338 return new ThreadFactory() {
  /frameworks/support/v4/java/android/support/v4/content/
ModernAsyncTask.java 26 import java.util.concurrent.ThreadFactory;
54 private static final ThreadFactory sThreadFactory = new ThreadFactory() {
  /external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/
VideoRecorderAppState.java 38 private ExecutorService executor = Executors.newCachedThreadPool(new ThreadFactory() {
  /prebuilts/sdk/13/
android.jar 
  /development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
AsyncTask.java 33 import java.util.concurrent.ThreadFactory;
204 private static final ThreadFactory sThreadFactory = new ThreadFactory() {
  /frameworks/base/core/java/android/os/
AsyncTask.java 27 import java.util.concurrent.ThreadFactory;
185 private static final ThreadFactory sThreadFactory = new ThreadFactory() {

Completed in 259 milliseconds

1 2 3