HomeSort by relevance Sort by last modified time
    Searched refs:threadFactory (Results 1 - 25 of 26) sorted by null

1 2

  /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);
  /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) {
  /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...]
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...]
  /external/guava/guava/src/com/google/common/util/concurrent/
JdkFutureAdapters.java 27 import java.util.concurrent.ThreadFactory;
89 private static final ThreadFactory threadFactory =
95 Executors.newCachedThreadPool(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/
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() {
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 
  /prebuilts/sdk/5/
android.jar 
  /prebuilts/sdk/7/
android.jar 
  /prebuilts/sdk/8/
android.jar 
  /prebuilts/sdk/9/
android.jar 
  /external/droiddriver/libs/
guava-13.0.jar 
  /prebuilts/devtools/tools/lib/
guava-13.0.1.jar 
  /prebuilts/misc/common/tradefed/
tradefed-prebuilt.jar 
  /prebuilts/sdk/tools/lib/
guava-10.0.1.jar 
lint.jar 
lint_api.jar 
lint_checks.jar 
  /prebuilts/tools/common/gradle-plugins/repository/com/google/guava/guava/14.0/
guava-14.0.jar 
  /prebuilts/tools/common/guava-tools/
guava-13.0.1.jar 

Completed in 287 milliseconds

1 2