/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
Utility.java | 29 import android.os.AsyncTask; 435 * Cancel an {@link AsyncTask}. If it's already running, it'll be interrupted. 437 public static void cancelTaskInterrupt(AsyncTask<?, ?, ?> task) { 451 * Cancel an {@link AsyncTask}. 457 public static void cancelTask(AsyncTask<?, ?, ?> task, boolean mayInterruptIfRunning) { 458 if (task != null && task.getStatus() != AsyncTask.Status.FINISHED) { 532 * Run {@code r} on a worker thread, returning the AsyncTask 533 * @return the AsyncTask; this is primarily for use by unit tests, which require the 540 public static AsyncTask<Void, Void, Void> runAsync(final Runnable r) { 541 return new AsyncTask<Void, Void, Void>() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
GalleryProvider.java | 25 import android.os.AsyncTask; 210 AsyncTask<Object, Object, Object> task = new AsyncTask<Object, Object, Object>() {
|
/packages/apps/Gallery2/src/com/android/photos/ |
MultiChoiceManager.java | 23 import android.os.AsyncTask; 188 private static class BulkDeleteTask extends AsyncTask<Void, Void, Void> { 213 deleteTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 21 import android.os.AsyncTask; 151 private class SetupTestKeyStore extends AsyncTask<Void, Void, Void> { 175 private class TestHttpsRequest extends AsyncTask<Void, Void, Void> {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SubtypeSwitcher.java | 27 import android.os.AsyncTask; 206 new AsyncTask<Void, Void, Void>() { 212 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PhotoCarousel.java | 22 import android.os.AsyncTask; 130 private class PhotoLoadTask extends AsyncTask<Void, Void, Bitmap> { 162 if (loader.getStatus() == AsyncTask.Status.FINISHED) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestListAdapter.java | 24 import android.os.AsyncTask; 140 class RefreshTestResultsTask extends AsyncTask<Void, Void, RefreshResult> { 207 class ClearTestResultsTask extends AsyncTask<Void, Void, Void> { 217 class SetTestResultTask extends AsyncTask<Void, Void, Void> {
|
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/RenderScriptIntrinsicSample/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 22 import android.os.AsyncTask; 276 * In the AsyncTask, it invokes RenderScript intrinsics to do a filtering. 277 * After the filtering is done, an operation blocks at Allication.copyTo() in AsyncTask thread. 280 private class RenderScriptTask extends AsyncTask<Float, Integer, Integer> {
|
/developers/samples/android/renderScript/RenderScriptIntrinsic/RenderScriptIntrinsicSample/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 22 import android.os.AsyncTask; 276 * In the AsyncTask, it invokes RenderScript intrinsics to do a filtering. 277 * After the filtering is done, an operation blocks at Allication.copyTo() in AsyncTask thread. 280 private class RenderScriptTask extends AsyncTask<Float, Integer, Integer> {
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
ContentFragment.java | 28 import android.os.AsyncTask; 297 /** Share the currently selected photo using an AsyncTask to compress the image 317 // {@link AsyncTask} class, thus avoiding the possibility of stalling the main (UI) thread. 321 new AsyncTask<Void, Void, Boolean>() {
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceDetailFragment.java | 30 import android.os.AsyncTask; 210 public static class FileServerAsyncTask extends AsyncTask<Void, Void, String> { 253 * @see android.os.AsyncTask#onPostExecute(java.lang.Object) 269 * @see android.os.AsyncTask#onPreExecute()
|
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
ImagePixelization.java | 24 import android.os.AsyncTask; 48 * Lastly, this application shows a use case of AsyncTask where some 287 * Implementation of the AsyncTask class showing how to run the 291 private class PixelizeImageAsyncTask extends AsyncTask<Object, Void, BitmapDrawable> {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ResourceExtractor.java | 12 import android.os.AsyncTask; 47 private class ExtractTask extends AsyncTask<Void, Void, Void> { 290 * AsyncTask. Call waitForCompletion() at the point resources 303 mExtractTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
/frameworks/base/core/java/android/content/ |
AsyncTaskLoader.java | 19 import android.os.AsyncTask; 32 * Abstract Loader that provides an {@link AsyncTask} to do the work. See 57 final class LoadTask extends AsyncTask<Void, Void, D> implements Runnable { 137 this(context, AsyncTask.THREAD_POOL_EXECUTOR);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
RootsCache.java | 32 import android.os.AsyncTask; 111 new UpdateTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); 121 new UpdateTask(packageName).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); 160 private class UpdateTask extends AsyncTask<Void, Void, Void> {
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
TestDocumentsProvider.java | 33 import android.os.AsyncTask; 120 new AsyncTask<Void, Void, Void>() { 338 new AsyncTask<Object, Object, Object>() { 350 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
/frameworks/base/tools/preload/ |
Policy.java | 70 "android.os.AsyncTask",
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupNames.java | 24 import android.os.AsyncTask; 224 new FinalSetupTask(account).executeOnExecutor(AsyncTask.SERIAL_EXECUTOR); 228 * Final account setup work is handled in this AsyncTask: 242 private class FinalSetupTask extends AsyncTask<Void, Void, Boolean> {
|
/packages/apps/Email/tests/src/com/android/email/ |
UtilityLargeTest.java | 60 // AsyncTask needs to be created on the UI thread.
|
/packages/experimental/PrintService/src/foo/bar/printservice/ |
MyPrintService.java | 21 import android.os.AsyncTask; 71 private AsyncTask<ParcelFileDescriptor, Void, Void> mFakePrintTask; 229 mFakePrintTask = new AsyncTask<ParcelFileDescriptor, Void, Void>() { 296 mFakePrintTask.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR,
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
PermissionTestService.java | 21 import android.os.AsyncTask; 82 class NetworkTestAsyncTask extends AsyncTask<Void, Void, Boolean> {
|
/developers/build/prebuilts/gradle/MediaRecorder/MediaRecorderSample/src/main/java/com/example/android/mediarecorder/ |
MainActivity.java | 24 import android.os.AsyncTask; 200 class MediaPrepareTask extends AsyncTask<Void, Void, Boolean> {
|
/developers/samples/android/media/MediaRecorder/MediaRecorderSample/src/main/java/com/example/android/mediarecorder/ |
MainActivity.java | 24 import android.os.AsyncTask; 200 class MediaPrepareTask extends AsyncTask<Void, Void, Boolean> {
|
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/ |
MainActivity.java | 24 import android.os.AsyncTask; 200 class MediaPrepareTask extends AsyncTask<Void, Void, Boolean> {
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
Builtin.java | 77 " <class name=\"AsyncTask\"\n" + 85 " <method name=\"execute\" return=\"android.os.AsyncTask\">\n" +
|