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

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
MockNamedTaskExecutorFactory.java 30 * Runs one task in each executor.
33 for (MockNamedTaskExecutor executor : mExecutors) {
34 executor.runNext();
39 MockNamedTaskExecutor executor = new MockNamedTaskExecutor(); local
40 mExecutors.add(executor);
41 return executor;
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/
Prioritized.java 1 package com.bumptech.glide.load.engine.executor;
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
PerNameExecutor.java 23 * Uses a separate executor for each task name.
39 for (NamedTaskExecutor executor : mExecutors.values()) {
40 executor.cancelPendingTasks();
46 for (NamedTaskExecutor executor : mExecutors.values()) {
47 executor.close();
56 NamedTaskExecutor executor = mExecutors.get(name); local
57 if (executor == null) {
58 executor = mExecutorFactory.create();
59 mExecutors.put(name, executor);
61 executor.execute(task)
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
RejectedExecutionHandler.java 22 * shutdown of the Executor.
29 * @param executor the executor attempting to execute this task
32 void rejectedExecution(Runnable r, ThreadPoolExecutor executor);
ExecutorCompletionService.java 10 * A {@link CompletionService} that uses a supplied {@link Executor}
27 * void solve(Executor e,
47 * void solve(Executor e,
78 private final Executor executor; field in class:ExecutorCompletionService
113 * executor for base task execution and a
116 * @param executor the executor to use
117 * @throws NullPointerException if executor is {@code null}
119 public ExecutorCompletionService(Executor executor)
    [all...]
  /external/guava/guava/src/com/google/common/eventbus/
AsyncEventBus.java 24 import java.util.concurrent.Executor;
27 * An {@link EventBus} that takes the Executor of your choice and uses it to
35 private final Executor executor; field in class:AsyncEventBus
42 * Creates a new AsyncEventBus that will use {@code executor} to dispatch
46 * @param executor Executor to use to dispatch events. It is the caller's
47 * responsibility to shut down the executor after the last event has
50 public AsyncEventBus(String identifier, Executor executor) {
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
ExecutionList.java 22 import java.util.concurrent.Executor;
30 * <p>A list of listeners, each with an associated {@code Executor}, that
37 * <p>Exceptions thrown by a listener will be propagated up to the executor.
38 * Any exception thrown during {@code Executor.execute} (e.g., a {@code
52 * The runnable, executor pairs to execute. This acts as a stack threaded through the
64 * Adds the {@code Runnable} and accompanying {@code Executor} to the list of
81 public void add(Runnable runnable, Executor executor) {
83 // Executor states that it throws NPE on null listener, so we propagate
86 Preconditions.checkNotNull(executor, "Executor was null.")
168 final Executor executor; field in class:ExecutionList.RunnableExecutorPair
    [all...]
SerializingExecutor.java 23 import java.util.concurrent.Executor;
30 * Executor ensuring that all Runnables submitted are executed in order,
31 * using the provided Executor, and serially such that no two will ever
34 * TODO(user): The tasks are given to the underlying executor as a single
35 * task, which means the semantics of the executor may be changed, e.g. the
36 * executor may have an afterExecute method that runs after every task
46 final class SerializingExecutor implements Executor {
50 /** Underlying executor that all submitted Runnable objects are run on. */
51 private final Executor executor; field in class:SerializingExecutor
    [all...]
AbstractScheduledService.java 27 import java.util.concurrent.Executor;
45 * <p>This class uses the {@link ScheduledExecutorService} returned from {@link #executor} to run
125 public Future<?> schedule(AbstractService service, ScheduledExecutorService executor,
127 return executor.scheduleWithFixedDelay(task, initialDelay, delay, unit);
144 public Future<?> schedule(AbstractService service, ScheduledExecutorService executor,
146 return executor.scheduleAtFixedRate(task, initialDelay, period, unit);
151 /** Schedules the task to run on the provided executor on behalf of the service. */
152 abstract Future<?> schedule(AbstractService service, ScheduledExecutorService executor,
191 executorService = MoreExecutors.renamingDecorator(executor(), new Supplier<String>() {
274 * executor will not be {@linkplain ScheduledExecutorService#shutdown shutdown} when this
    [all...]
ListenerCallQueue.java 25 import java.util.concurrent.Executor;
32 * A special purpose queue/executor that executes listener callbacks serially on a configured
33 * executor. Each callback task can be enqueued and executed as separate phases.
60 private final Executor executor; field in class:ListenerCallQueue
65 ListenerCallQueue(L listener, Executor executor) {
67 this.executor = checkNotNull(executor);
86 executor.execute(this)
    [all...]
  /libcore/ojluni/src/main/java/sun/nio/ch/
ThreadPool.java 51 private final ExecutorService executor; field in class:ThreadPool
60 private ThreadPool(ExecutorService executor,
64 this.executor = executor;
69 ExecutorService executor() { method in class:ThreadPool
70 return executor;
105 ExecutorService executor = local
110 return new ThreadPool(executor, false, initialSize);
117 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory); local
118 return new ThreadPool(executor, true, nThreads)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/one/v2/commands/
RunnableCameraCommand.java 27 public RunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) {
28 mExecutor = executor;
  /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
MoreExecutorsDirectExecutorBenchmark.java 31 import java.util.concurrent.Executor;
42 @Override Executor executor() { method
46 EXECUTOR {
47 @Override Executor executor() { method
51 abstract Executor executor(); method in class:MoreExecutorsDirectExecutorBenchmark.Impl
55 Executor executor; field in class:MoreExecutorsDirectExecutorBenchmark
96 final Executor executor = this.executor; local
105 final Executor executor = this.executor; local
    [all...]
ExecutionListBenchmark.java 33 import java.util.concurrent.Executor;
53 void add(Runnable runnable, Executor executor);
64 @Override public void add(Runnable runnable, Executor executor) {
65 list.add(runnable, executor);
82 @Override public void add(Runnable runnable, Executor executor) {
83 list.add(runnable, executor);
100 @Override public void add(Runnable runnable, Executor executor)
    [all...]
  /external/webrtc/webrtc/examples/androidtests/src/org/appspot/apprtc/test/
LooperExecutorTest.java 38 LooperExecutor executor = new LooperExecutor(); local
40 // Try to execute a counter increment task before starting an executor.
41 executor.execute(counterIncRunnable);
43 // Start the executor and run expected amount of counter increment task.
44 executor.requestStart();
46 executor.execute(counterIncRunnable);
48 executor.execute(new Runnable() {
54 executor.requestStop();
56 // Try to execute a task after stopping the executor.
57 executor.execute(counterIncRunnable)
    [all...]
  /external/guava/guava/src/com/google/common/cache/
RemovalListeners.java 23 import java.util.concurrent.Executor;
38 * notifications using {@code executor}.
41 * @param executor the executor with which removal notifications are
45 final RemovalListener<K, V> listener, final Executor executor) {
47 checkNotNull(executor);
51 executor.execute(new Runnable() {
  /packages/inputmethods/LatinIME/native/dicttoolkit/
dict_toolkit_main.cpp 37 const auto executor = CommandUtils::getCommandExecutor(commandType); local
38 return executor(argc - 1, argv + 1);
  /external/guice/extensions/service/src/com/google/inject/service/
AsyncService.java 37 private final ExecutorService executor; field in class:AsyncService
41 public AsyncService(ExecutorService executor) {
42 this.executor = executor;
54 return executor.submit(new Callable<State>() {
79 return executor.submit(new Callable<State>() {
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/async/
AsyncExecutor.java 29 * {@link #dispose()} when no longer used, in which case the executor waits for running tasks to finish. Scheduled but not yet
33 private final ExecutorService executor; field in class:AsyncExecutor
38 executor = Executors.newFixedThreadPool(maxConcurrent, new ThreadFactory() {
52 if (executor.isShutdown()) {
53 throw new GdxRuntimeException("Cannot run tasks on an executor that has been shutdown (disposed)");
55 return new AsyncResult(executor.submit(new Callable<T>() {
67 executor.shutdown();
69 executor.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);
  /frameworks/base/tools/aapt2/xml/
XmlActionExecutor_test.cpp 24 XmlActionExecutor executor; local
25 XmlNodeAction& manifestAction = executor[u"manifest"];
43 ASSERT_TRUE(executor.execute(XmlActionExecutorPolicy::None, &diag, doc.get()));
52 XmlActionExecutor executor; local
53 executor[u"manifest"][u"application"];
58 ASSERT_FALSE(executor.execute(XmlActionExecutorPolicy::Whitelist, &diag, doc.get()));
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
ProviderExecutor.java 26 import java.util.concurrent.Executor;
29 public class ProviderExecutor extends Thread implements Executor {
36 ProviderExecutor executor = sExecutors.get(authority); local
37 if (executor == null) {
38 executor = new ProviderExecutor();
39 executor.setName("ProviderExecutor: " + authority);
40 executor.start();
41 sExecutors.put(authority, executor);
43 return executor;
84 private Executor mNonPreemptingExecutor = new Executor()
    [all...]
  /external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
ExecutorTestBase.java 16 import java.util.concurrent.Executor;
27 * Unit tests base for tests that need an {@link Executor} for multithreaded
32 protected ExecutorService executor; field in class:ExecutorTestBase
36 executor = Executors.newSingleThreadExecutor();
41 executor.shutdown();
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
ExecutorUtilsTests.java 38 final ExecutorService executor = local
42 executor.execute(new Runnable() {
50 executor.awaitTermination(DELAY_FOR_WAITING_TASKS_MILLISECONDS, TimeUnit.MILLISECONDS);
  /external/guice/extensions/service/test/com/google/inject/service/
SingleServiceIntegrationTest.java 22 ExecutorService executor = Executors.newSingleThreadExecutor(); local
26 AsyncService service = new AsyncService(executor) {
54 executor.shutdown();
61 ExecutorService executor = Executors.newSingleThreadExecutor(); local
64 AsyncService service = new AsyncService(executor) {
77 executor.shutdown();
  /external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/builder/
TestComponentWithBuilder.java 20 import java.util.concurrent.Executor;
34 Builder executor(Executor executor); method in interface:TestComponentWithBuilder.Builder

Completed in 1027 milliseconds

1 2 3 4 5 6 7 8 91011>>