/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/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/ |
FifoPriorityThreadPoolExecutor.java | 6 import java.util.concurrent.ThreadFactory; 29 ThreadFactory threadFactory) { 30 super(corePoolSize, maximumPoolSize, keepAlive, timeUnit, new PriorityBlockingQueue<Runnable>(), threadFactory); 38 public static class DefaultThreadFactory implements ThreadFactory {
|
/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...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Dispatcher.java | 57 new LinkedBlockingQueue<Runnable>(), Util.threadFactory("OkHttp Dispatcher", false));
|
ConnectionPool.java | 84 Util.threadFactory("OkHttp ConnectionPool", true));
|
/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/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
HttpUrlConnectionUrlRequest.java | 27 import java.util.concurrent.ThreadFactory; 123 ThreadFactory threadFactory = new ThreadFactory() { 137 sExecutorService = Executors.newCachedThreadPool(threadFactory);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 39 import java.util.concurrent.ThreadFactory; 272 public static ThreadFactory threadFactory(final String name, final boolean daemon) { 273 return new ThreadFactory() {
|
DiskLruCache.java | 161 new LinkedBlockingQueue<Runnable>(), Util.threadFactory("OkHttp DiskLruCache", 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 | 61 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { 62 super(corePoolSize, threadFactory); 64 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, 66 super(corePoolSize, threadFactory, handler); 473 ThreadFactory tf = new SimpleThreadFactory(); 483 ThreadFactory tf = new SimpleThreadFactory(); [all...] |
ThreadPoolExecutorSubclassTest.java | 135 ThreadFactory threadFactory) { 137 threadFactory); 154 ThreadFactory threadFactory, 157 workQueue, threadFactory, handler); 188 static class FailingThreadFactory implements ThreadFactory { 330 ThreadFactory tf = new SimpleThreadFactory(); 341 ThreadFactory tf = new SimpleThreadFactory(); 816 * Constructor throws if threadFactory is set to nul [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyConnection.java | 69 Util.threadFactory("OkHttp SpdyConnection", true));
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
MockWebServer.java | 244 executor = Executors.newCachedThreadPool(Util.threadFactory("MockWebServer", false));
|
/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 | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |
/prebuilts/sdk/16/ |
android.jar | |