/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) {
|
/external/vogar/src/vogar/util/ |
Threads.java | 21 import java.util.concurrent.ThreadFactory; 32 public static ThreadFactory daemonThreadFactory(final String name) { 33 return new ThreadFactory() { 48 ThreadFactory threadFactory = daemonThreadFactory(name); 51 new LinkedBlockingQueue<Runnable>(Integer.MAX_VALUE), threadFactory) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
Executors.java | 23 * ThreadFactory}, and {@link Callable} classes defined in this 34 * <li> Methods that create and return a {@link ThreadFactory} 108 * ThreadFactory to create new threads when needed. At any point, 119 * @param threadFactory the factory to use when creating new threads 121 * @throws NullPointerException if threadFactory is null 124 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { 128 threadFactory); 153 * off an unbounded queue, and uses the provided ThreadFactory to 155 * equivalent {@code newFixedThreadPool(1, threadFactory)} th [all...] |
ThreadPoolExecutor.java | 78 * <dd>New threads are created using a {@link ThreadFactory}. If not 82 * non-daemon status. By supplying a different ThreadFactory, you can 84 * etc. If a {@code ThreadFactory} fails to create a thread when asked 307 * for example when a ThreadFactory fails to create a thread when 479 private volatile ThreadFactory threadFactory; 577 * Creates with given first task and thread from ThreadFactory. [all...] |
ScheduledThreadPoolExecutor.java | 431 * @param threadFactory the factory to use when the executor 434 * @throws NullPointerException if {@code threadFactory} is null 437 ThreadFactory threadFactory) { 440 new DelayedWorkQueue(), threadFactory); 467 * @param threadFactory the factory to use when the executor 472 * @throws NullPointerException if {@code threadFactory} or 476 ThreadFactory threadFactory, 480 new DelayedWorkQueue(), threadFactory, handler) [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
JdkFutureAdapters.java | 27 import java.util.concurrent.ThreadFactory; 112 private static final ThreadFactory threadFactory = 118 Executors.newCachedThreadPool(threadFactory);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/ |
FifoPriorityThreadPoolExecutor.java | 6 import java.util.concurrent.ThreadFactory; 31 ThreadFactory threadFactory) { 32 super(corePoolSize, maximumPoolSize, keepAlive, timeUnit, new PriorityBlockingQueue<Runnable>(), threadFactory); 41 * A {@link java.util.concurrent.ThreadFactory} that builds threads with priority 44 public static class DefaultThreadFactory implements 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(format).build(); 107 ThreadFactory factory = builder.setNameFormat(format).build(); 115 ThreadFactory factory = builder.setDaemon(false).build() [all...] |
MoreExecutorsTest.java | 71 import java.util.concurrent.ThreadFactory; 543 ThreadFactory threadFactory = mock(ThreadFactory.class); 544 when(executor.getThreadFactory()).thenReturn(threadFactory); 552 ThreadFactory threadFactory = mock(ThreadFactory.class); 553 when(executor.getThreadFactory()).thenReturn(threadFactory); 569 ThreadFactory threadFactory = mock(ThreadFactory.class) [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() {
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Dispatcher.java | 62 new SynchronousQueue<Runnable>(), Util.threadFactory("OkHttp Dispatcher", false));
|
ConnectionPool.java | 93 new LinkedBlockingQueue<Runnable>(), Util.threadFactory("OkHttp ConnectionPool", true));
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 37 import java.util.concurrent.ThreadFactory; 239 public static ThreadFactory threadFactory(final String name, final boolean daemon) { 240 return new ThreadFactory() {
|
DiskLruCache.java | 257 new LinkedBlockingQueue<Runnable>(), Util.threadFactory("OkHttp DiskLruCache", true)); [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
SocksProxy.java | 55 Util.threadFactory("SocksProxy", false));
|
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/ |
WebSocketCall.java | 202 Util.threadFactory(String.format("OkHttp %s WebSocket", url), true));
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyConnection.java | 68 Util.threadFactory("OkHttp SpdyConnection", true)); 157 Util.threadFactory(String.format("OkHttp %s Push Observer", hostName), true));
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/ |
MockSpdyPeer.java | 49 Util.threadFactory("MockSpdyPeer", false));
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
ScheduledExecutorSubclassTest.java | 26 import java.util.concurrent.ThreadFactory; 90 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { 91 super(corePoolSize, threadFactory); 93 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, 95 super(corePoolSize, threadFactory, handler); 524 ThreadFactory tf = new SimpleThreadFactory(); 534 ThreadFactory tf = new SimpleThreadFactory(); [all...] |
ThreadPoolExecutorSubclassTest.java | 29 import java.util.concurrent.ThreadFactory; 165 ThreadFactory threadFactory) { 167 threadFactory); 184 ThreadFactory threadFactory, 187 workQueue, threadFactory, handler); 218 static class FailingThreadFactory implements ThreadFactory { 360 ThreadFactory tf = new SimpleThreadFactory(); 371 ThreadFactory tf = new SimpleThreadFactory() [all...] |
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
MockWebServer.java | 315 executor = Executors.newCachedThreadPool(Util.threadFactory("MockWebServer", false)); 645 Util.threadFactory(String.format("MockWebServer %s WebSocket", request.getPath()), [all...] |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
commons-io-2.2.jar | |
/prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/ |
commons-io-2.4.jar | |
/prebuilts/sdk/10/ |
android.jar | |