Searched defs:executor (Results 1 - 25 of 32) sorted by relevance

12

/packages/inputmethods/LatinIME/native/dicttoolkit/
H A Ddict_toolkit_main.cpp37 const auto executor = CommandUtils::getCommandExecutor(commandType); local
38 return executor(argc - 1, argv + 1);
/packages/apps/Camera2/src/com/android/camera/async/
H A DObservable.java42 * @param executor The executor on which the callback will be invoked.
47 public SafeCloseable addCallback(Runnable callback, Executor executor); argument
H A DExecutorCallback.java28 * which runs it on an executor.
38 * @param executor The executor on which to invoke the callback.
40 public ExecutorCallback(Callback<T> callback, Executor executor) { argument
42 mExecutor = executor;
H A DForwardingObservable.java38 public SafeCloseable addCallback(Runnable callback, Executor executor) { argument
39 return mDelegate.addCallback(callback, executor);
H A DObservableCombiner.java84 public SafeCloseable addCallback(Runnable callback, Executor executor) { argument
88 callbackLifetime.add(input.addCallback(callback, executor));
H A DConcurrentState.java37 public ExecutorListenerPair(Executor executor, Runnable listener) { argument
38 mExecutor = executor;
43 * Runs the callback on the executor.
76 public SafeCloseable addCallback(Runnable callback, Executor executor) { argument
77 final ExecutorListenerPair pair = new ExecutorListenerPair(executor, callback);
H A DResettingDelayedExecutor.java25 * An executor which executes with a delay, discarding pending executions such
40 public ResettingDelayedExecutor(ScheduledExecutorService executor, long delay, TimeUnit argument
42 mExecutor = executor;
/packages/apps/Camera2/src/com/android/camera/one/v2/commands/
H A DResettingRunnableCameraCommand.java44 public ResettingRunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { argument
45 mExecutor = executor;
H A DRunnableCameraCommand.java27 public RunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { argument
28 mExecutor = executor;
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DImageTaskManager.java58 * @param executor the executor on which the image close is run. if null,
62 public void releaseSemaphoreReference(final ImageToProcess img, Executor executor); argument
H A DTaskChainedCompressImageToJpeg.java40 TaskChainedCompressImageToJpeg(ImageToProcess image, Executor executor, argument
42 super(image, executor, imageTaskManager, ProcessingPriority.SLOW, captureSession);
H A DTaskPreviewChainedJpeg.java39 * @param executor Executor to fire off an events
46 Executor executor,
51 super(image, executor, imageTaskManager, ProcessingPriority.AVERAGE, captureSession,
45 TaskPreviewChainedJpeg(ImageToProcess image, Executor executor, ImageTaskManager imageTaskManager, CaptureSession captureSession, Size targetSize, LruResourcePool<Integer, ByteBuffer> byteBufferResourcePool) argument
H A DImageConsumer.java77 * @param executor The executor on which to execute events and image close
85 public boolean receiveImage(ImageToProcess img, Executor executor, argument
95 * @param executor executor on which to execute events and image close
102 public boolean receiveImage(ImageToProcess img, Executor executor,
H A DTaskCompressImageToJpeg.java69 * @param executor Executor to run events
73 TaskCompressImageToJpeg(ImageToProcess image, Executor executor, argument
77 super(image, executor, imageTaskManager, ProcessingPriority.SLOW, captureSession);
H A DTaskJpegEncode.java59 * @param executor Executor to avoid thread control leakage
64 public TaskJpegEncode(ImageToProcess image, Executor executor, argument
67 super(image, executor, imageTaskManager, preferredLane, captureSession);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarReceiver.java39 private final ExecutorService executor = Executors.newCachedThreadPool(); field in class:CalendarReceiver
54 executor.submit(new Runnable() {
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
H A DAvailableTicketCounter.java54 public SafeCloseable addCallback(final Runnable callback, final Executor executor) { argument
57 callbackLifetime.add(input.addCallback(callback, executor));
/packages/apps/Dialer/src/com/android/dialer/util/
H A DAsyncTaskExecutors.java89 public SimpleAsyncTaskExecutor(Executor executor) { argument
90 mExecutor = executor;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DBatchingNamedTaskExecutor.java42 * @param executor A SourceTaskExecutor for actually executing the tasks.
44 public BatchingNamedTaskExecutor(NamedTaskExecutor executor) { argument
45 mExecutor = executor;
61 * Instructs the executor to submit the next batch of results.
80 * Cancel any unstarted tasks running in this executor. This instance
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
H A DObservableFrameServer.java117 public SafeCloseable addCallback(Runnable callback, Executor executor) { argument
118 return mAvailability.addCallback(callback, executor);
/packages/apps/Camera2/src/com/android/camera/settings/
H A DSettingObserver.java38 private Listener(Runnable runnable, Executor executor) { argument
40 mExecutor = executor;
87 public SafeCloseable addCallback(@Nonnull Runnable callback, @Nonnull Executor executor) { argument
88 Listener listener = new Listener(callback, executor);
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/
H A DInCallTonePlayer.java51 * @param executor the {@link PausableExecutor} used to play tones in a background thread.
52 * @throws NullPointerException if audioModeProvider, toneGeneratorFactory, or executor are
55 public InCallTonePlayer(ToneGeneratorFactory toneGeneratorFactory, PausableExecutor executor) { argument
57 mExecutor = Preconditions.checkNotNull(executor);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DQueryTask.java79 NamedTaskExecutor executor, Handler handler,
84 executor.execute(task);
76 startQuery(String query, int maxResults, SuggestionCursorProvider<C> provider, NamedTaskExecutor executor, Handler handler, Consumer<C> consumer) argument
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
H A DYuvImageBackendImageSaver.java194 * @param executor Executor to be used for listener events in ImageBackend.
198 ImageBackend imageBackend, Rect crop, Executor executor) {
202 mExecutor = executor;
197 YuvImageBackendImageSaver(ImageRotationCalculator imageRotationCalculator, ImageBackend imageBackend, Rect crop, Executor executor) argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaResourceManager.java63 * media encoding task. Loaded media will be encoded on a dedicated single threaded executor
102 // A dedicated single thread executor for performing background task after loading the resource
103 // on the media loading executor. This includes work such as encoding loaded media to be cached.
224 * Schedule an async media request on the given <code>executor</code>.
230 final MediaRequest<T> mediaRequest, final Executor executor) {
237 // We don't use SafeAsyncTask here since it enforces the shared thread pool executor
238 // whereas we want a dedicated thread pool executor.
286 mediaLoadingTask.executeOnExecutor(executor, (Void) null);
229 scheduleAsyncMediaRequest( final MediaRequest<T> mediaRequest, final Executor executor) argument

Completed in 477 milliseconds

12