Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DPerNameExecutor.java39 for (NamedTaskExecutor executor : mExecutors.values()) { in cancelPendingTasks()
40 executor.cancelPendingTasks(); in cancelPendingTasks()
46 for (NamedTaskExecutor executor : mExecutors.values()) { in close()
47 executor.close(); in close()
56 NamedTaskExecutor executor = mExecutors.get(name); in execute() local
57 if (executor == null) { in execute()
58 executor = mExecutorFactory.create(); in execute()
59 mExecutors.put(name, executor); in execute()
61 executor.execute(task); in execute()
DBatchingNamedTaskExecutor.java44 public BatchingNamedTaskExecutor(NamedTaskExecutor executor) { in BatchingNamedTaskExecutor() argument
45 mExecutor = executor; in BatchingNamedTaskExecutor()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java250 public void releaseSemaphoreReference(final ImageToProcess img, Executor executor) { in releaseSemaphoreReference() argument
273 closeImageExecutorSafe(img, executor); in releaseSemaphoreReference()
482 public boolean receiveImage(ImageToProcess img, Executor executor, in receiveImage() argument
504 tasksToExecute.add(new TaskPreviewChainedJpeg(img, executor, this, session, in receiveImage()
509 tasksToExecute.add(new TaskCompressImageToJpeg(img, executor, this, session, in receiveImage()
516 tasksToExecute.add(new TaskConvertImageToRGBPreview(img, executor, in receiveImage()
555 ImageToProcess image, Executor executor, ImageBackend imageBackend, in createTaskConvertImageToRGBPreview() argument
558 return new TaskConvertImageToRGBPreview(image, executor, imageBackend, in createTaskConvertImageToRGBPreview()
564 Executor executor, ImageBackend imageBackend, CaptureSession session) { in createTaskCompressImageToJpeg() argument
565 return new TaskCompressImageToJpeg(image, executor, imageBackend, session, in createTaskCompressImageToJpeg()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProviderExecutor.java36 ProviderExecutor executor = sExecutors.get(authority); in forAuthority() local
37 if (executor == null) { in forAuthority()
38 executor = new ProviderExecutor(); in forAuthority()
39 executor.setName("ProviderExecutor: " + authority); in forAuthority()
40 executor.start(); in forAuthority()
41 sExecutors.put(authority, executor); in forAuthority()
43 return executor; in forAuthority()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DMockNamedTaskExecutorFactory.java33 for (MockNamedTaskExecutor executor : mExecutors) { in runNext()
34 executor.runNext(); in runNext()
39 MockNamedTaskExecutor executor = new MockNamedTaskExecutor(); in create() local
40 mExecutors.add(executor); in create()
41 return executor; in create()
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentState.java37 public ExecutorListenerPair(Executor executor, Runnable listener) { in ExecutorListenerPair() argument
38 mExecutor = executor; in ExecutorListenerPair()
76 public SafeCloseable addCallback(Runnable callback, Executor executor) { in addCallback() argument
77 final ExecutorListenerPair pair = new ExecutorListenerPair(executor, callback); in addCallback()
DObservables.java63 public SafeCloseable addCallback(Runnable callback, Executor executor) { in transform() argument
64 return input.addCallback(callback, executor); in transform()
102 public SafeCloseable addCallback(Runnable callback, Executor executor) {
DExecutorCallback.java40 public ExecutorCallback(Callback<T> callback, Executor executor) { in ExecutorCallback() argument
42 mExecutor = executor; in ExecutorCallback()
DForwardingObservable.java38 public SafeCloseable addCallback(Runnable callback, Executor executor) { in addCallback() argument
39 return mDelegate.addCallback(callback, executor); in addCallback()
DResettingDelayedExecutor.java40 public ResettingDelayedExecutor(ScheduledExecutorService executor, long delay, TimeUnit in ResettingDelayedExecutor() argument
42 mExecutor = executor; in ResettingDelayedExecutor()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java100 @VisibleForTesting ExecutorService executor; field in FileOperationService
131 if (executor == null) { in onCreate()
132 executor = Executors.newFixedThreadPool(POOL_SIZE); in onCreate()
173 List<Runnable> unfinishedCopies = executor.shutdownNow(); in onDestroy()
183 executor = null; in onDestroy()
282 return executor; in getExecutorService()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingObserver.java38 private Listener(Runnable runnable, Executor executor) { in Listener() argument
40 mExecutor = executor; in Listener()
87 public SafeCloseable addCallback(@Nonnull Runnable callback, @Nonnull Executor executor) { in addCallback() argument
88 Listener listener = new Listener(callback, executor); in addCallback()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java218 private EmailAsyncTask<Params, Progress, Result> executeInternal(Executor executor, in executeInternal() argument
227 mInnerTask.executeOnExecutor(executor, params); in executeInternal()
245 private static EmailAsyncTask<Void, Void, Void> runAsyncInternal(Executor executor, in runAsyncInternal() argument
254 return task.executeInternal(executor, false, (Void[]) null); in runAsyncInternal()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsService.java304 for (ExecutorService executor : mExecutors) { in onDestroy()
305 executor.shutdown(); in onDestroy()
382 final ExecutorService executor = getRequestExecutor(request); in retainService() local
384 executor.execute(runnable); in retainService()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DExecutorUtilsTests.java38 final ExecutorService executor = in testExecute() local
42 executor.execute(new Runnable() { in testExecute()
50 executor.awaitTermination(DELAY_FOR_WAITING_TASKS_MILLISECONDS, TimeUnit.MILLISECONDS); in testExecute()
/packages/apps/TV/src/com/android/tv/util/
DImageLoader.java192 int maxWidth, int maxHeight, ImageLoaderCallback callback, Executor executor) { in doLoadBitmap() argument
203 return doLoadBitmap(callback, executor, in doLoadBitmap()
226 private static boolean doLoadBitmap(ImageLoaderCallback callback, Executor executor, in doLoadBitmap() argument
248 loadBitmapTask.executeOnExecutor(executor); in doLoadBitmap()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DContactsExecutors.java85 final ThreadPoolExecutor executor = new ThreadPoolExecutor( in getSimReadExecutor() local
87 executor.allowCoreThreadTimeOut(true); in getSimReadExecutor()
88 sSimExecutor = MoreExecutors.listeningDecorator(executor); in getSimReadExecutor()
DFuturesUtil.java39 TimeUnit unit, ScheduledExecutorService executor) { in withTimeout() argument
41 executor.schedule(new Runnable() { in withTimeout()
/packages/apps/Camera2/src/com/android/camera/one/v2/commands/
DRunnableCameraCommand.java27 public RunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { in RunnableCameraCommand() argument
28 mExecutor = executor; in RunnableCameraCommand()
DResettingRunnableCameraCommand.java44 public ResettingRunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { in ResettingRunnableCameraCommand() argument
45 mExecutor = executor; in ResettingRunnableCameraCommand()
/packages/inputmethods/LatinIME/native/dicttoolkit/
Ddict_toolkit_main.cpp37 const auto executor = CommandUtils::getCommandExecutor(commandType); in main() local
38 return executor(argc - 1, argv + 1); in main()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DCondition.java19 final MainThreadExecutor executor = new MainThreadExecutor(); in runOnUiThread() local
26 executor.execute(new Runnable() { in runOnUiThread()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DAsyncTaskExecutors.java81 public SimpleAsyncTaskExecutor(Executor executor) { in SimpleAsyncTaskExecutor() argument
82 mExecutor = executor; in SimpleAsyncTaskExecutor()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarReceiver.java39 private final ExecutorService executor = Executors.newCachedThreadPool(); field in CalendarReceiver
54 executor.submit(new Runnable() { in onReceive()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DPackageIconLoaderTest.java54 NamedTaskExecutor executor = new SingleThreadNamedTaskExecutor( in create() local
57 executor); in create()

123