Home
last modified time | relevance | path

Searched refs:AsyncTask (Results 1 – 25 of 150) sorted by relevance

123456

/packages/apps/Dialer/tests/src/com/android/dialer/util/
DFakeAsyncTaskExecutor.java20 import android.os.AsyncTask;
72 AsyncTask<?, ?, ?> getAsyncTask(); in getAsyncTask()
78 private final AsyncTask<?, ?, ?> mAsyncTask;
81 AsyncTask<?, ?, ?> asyncTask) { in SubmittedTaskImpl() argument
98 public AsyncTask<?, ?, ?> getAsyncTask() { in getAsyncTask()
111 @GuardedBy("mNextLock") private AsyncTask<?, ?, ?> mNextTask;
124 public <T> AsyncTask<T, ?, ?> submit(Object identifier, in submit()
125 AsyncTask<T, ?, ?> task, T... params) { in submit()
141 public <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params) { in submit()
194 if (submittedTask.getAsyncTask().getStatus() == AsyncTask.Status.FINISHED) { in runTask()
/packages/apps/Contacts/src/com/android/contacts/list/
DProviderStatusWatcher.java23 import android.os.AsyncTask;
223 mLoaderTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in startLoading()
226 private class LoaderTask extends AsyncTask<Void, Void, Boolean> {
292 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in retryUpgrade()
302 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in retryUpgrade()
/packages/apps/Dialer/src/com/android/dialer/util/
DAsyncTaskExecutors.java19 import android.os.AsyncTask;
52 return new SimpleAsyncTaskExecutor(AsyncTask.SERIAL_EXECUTOR); in createAsyncTaskExecutor()
65 return new SimpleAsyncTaskExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in createThreadPoolExecutor()
94 public <T> AsyncTask<T, ?, ?> submit(Object identifer, AsyncTask<T, ?, ?> task, in submit()
DAsyncTaskExecutor.java19 import android.os.AsyncTask;
47 <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params); in submit()
/packages/apps/PhoneCommon/src/com/android/phone/common/
DCallLogAsync.java20 import android.os.AsyncTask;
130 public AsyncTask addCall(AddCallArgs args) { in addCall()
145 public AsyncTask getLastOutgoingCall(GetLastOutgoingCallArgs args) { in getLastOutgoingCall()
153 private class AddCallTask extends AsyncTask<AddCallArgs, Void, Uri[]> {
197 private class GetLastOutgoingCallTask extends AsyncTask<GetLastOutgoingCallArgs, Void, String> {
/packages/experimental/PrintApp/src/foo/bar/print/
DPrintActivity.java27 import android.os.AsyncTask;
92 new AsyncTask<Void, Void, Integer>() { in printView()
151 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in printView()
160 new AsyncTask<Void, Void, Integer>() { in printView()
235 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in printView()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java24 import android.os.AsyncTask;
171 private AsyncTask<Void, ?, ?> mPrepareTask;
204 mAsyncTaskExecutor.submit(Tasks.CHECK_FOR_CONTENT, new AsyncTask<Void, Void, Boolean>() { in checkThatWeHaveContent()
275 new AsyncTask<Void, Void, Boolean>() { in onChange()
307 new AsyncTask<Void, Void, Exception>() { in postSuccessfullyFetchedContent()
439 private class AsyncPrepareTask extends AsyncTask<Void, Void, Exception> {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DAsyncTaskUtil.java19 import android.os.AsyncTask;
35 sExecutor = (Executor) AsyncTask.class.getField("THREAD_POOL_EXECUTOR")
37 sMethodExecuteOnExecutor = AsyncTask.class.getMethod(
49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { in executeInParallel()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java27 import android.os.AsyncTask;
250 new AsyncTask<Void, Void, Void>() { in getPreview() method
255 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in getPreview()
377 new AsyncTask<Void, Void, Void>() { in removePackageFromDb() method
396 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in removePackageFromDb()
400 new AsyncTask<Void, Void, Void>() { in removeItemFromDb() method
411 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in removeItemFromDb()
DPreloadReceiver.java22 import android.os.AsyncTask;
43 new AsyncTask<Void, Void, Void>() { in onReceive() method
48 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in onReceive()
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/
DClearFrequentsDialog.java26 import android.os.AsyncTask;
51 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onCreateDialog()
64 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateDialog()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java29 import android.os.AsyncTask;
437 public static void cancelTaskInterrupt(AsyncTask<?, ?, ?> task) { in cancelTaskInterrupt() argument
457 public static void cancelTask(AsyncTask<?, ?, ?> task, boolean mayInterruptIfRunning) { in cancelTask() argument
458 if (task != null && task.getStatus() != AsyncTask.Status.FINISHED) { in cancelTask()
540 public static AsyncTask<Void, Void, Void> runAsync(final Runnable r) { in runAsync()
541 return new AsyncTask<Void, Void, Void>() { in runAsync()
546 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in runAsync()
873 public abstract static class ForEachAccount extends AsyncTask<Void, Void, Long[]> {
DEmailAsyncTask.java19 import android.os.AsyncTask;
40 private static final Executor SERIAL_EXECUTOR = AsyncTask.SERIAL_EXECUTOR;
41 private static final Executor PARALLEL_EXECUTOR = AsyncTask.THREAD_POOL_EXECUTOR;
109 extends AsyncTask<Params2, Progress2, Result2> {
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DFlipperDreamSettings.java21 import android.os.AsyncTask;
22 import android.os.AsyncTask.Status;
44 private AsyncTask<Void, Void, Void> mLoadingTask;
66 mLoadingTask = new AsyncTask<Void, Void, Void>() { in init()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java28 import android.os.AsyncTask;
150 (new AsyncTask<Void, Void, Void>() {
180 }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
293 (new AsyncTask<Void, Void, TinyPlanetImage>() { in onCreateTinyPlanet() method
326 }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateTinyPlanet()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventLocationAdapter.java26 import android.os.AsyncTask;
229 AsyncTask<Void, Void, Bitmap> photoUpdaterTask = in asyncLoadPhotoAndUpdateView()
230 new AsyncTask<Void, Void, Bitmap>() { in asyncLoadPhotoAndUpdateView()
278 AsyncTask<Void, Void, List<Result>> locationsQueryTask = in performFiltering()
279 new AsyncTask<Void, Void, List<Result>>() { in performFiltering()
/packages/experimental/PrintService2/src/foo/bar/printservice2/
DMyPrintService.java5 import android.os.AsyncTask;
72 AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onPrintJobQueued()
133 task.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, (Void[]) null); in onPrintJobQueued()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertActivity.java28 import android.os.AsyncTask;
139 new AsyncTask<List<AlarmId>, Void, Void>() { in initiateGlobalDismiss() method
257 AsyncTask task = new AsyncTask<Context, Void, Void>() { in onStop()
/packages/apps/Settings/src/com/android/settings/users/
DRestrictedProfileSettings.java38 import android.os.AsyncTask;
230 new AsyncTask<Void, Void, Void>() { in onCreateDialog()
237 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in onCreateDialog()
450 new AsyncTask<Void, Void, Bitmap>() { in onPhotoCropped() method
503 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in onPhotoCropped()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DPhoneNumberFormatter.java20 import android.os.AsyncTask;
33 AsyncTask<Void, Void, PhoneNumberFormattingTextWatcher> {
71 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in setPhoneNumberFormattingTextWatcher()
/packages/apps/Mms/src/com/android/mms/util/
DPhoneNumberFormatter.java20 import android.os.AsyncTask;
33 AsyncTask<Void, Void, PhoneNumberFormattingTextWatcher> {
71 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in setPhoneNumberFormattingTextWatcher()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DClearCallLogDialog.java28 import android.os.AsyncTask;
59 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onCreateDialog()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettings.java32 import android.os.AsyncTask;
211 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, i); in onCreate()
414 AsyncTask.THREAD_POOL_EXECUTOR, mDeletingAccountId); in updateAccounts()
489 private class LoadAccountListTask extends AsyncTask<Long, Void, Object[]> {
770 private class GetAccountIdFromAccountTask extends AsyncTask<Intent, Void, Long> {
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java26 import android.os.AsyncTask;
242 new AsyncTask<Void, Void, Void>() { in getPreview() method
247 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in getPreview()
362 new AsyncTask<Void, Void, Void>() { in removeFromDb() method
377 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in removeFromDb()
/packages/experimental/PrintService/src/foo/bar/printservice/
DMyPrintService.java21 import android.os.AsyncTask;
71 private AsyncTask<ParcelFileDescriptor, Void, Void> mFakePrintTask;
229 mFakePrintTask = new AsyncTask<ParcelFileDescriptor, Void, Void>() { in handleQueuedPrintJob()
296 mFakePrintTask.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, in handleQueuedPrintJob()

123456