Home
last modified time | relevance | path

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

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAsyncTaskTest.java9 import android.os.AsyncTask;
32 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testNormalFlow()
47 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testCancelBeforeBackground()
64 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testCancelBeforePostExecute()
82 AsyncTask<String, String, String> asyncTask = new MyAsyncTask() { in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
109 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in executeReturnsAsyncTask()
115 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in shouldGetStatusForAsyncTask()
116 assertThat(asyncTask.getStatus(), is(AsyncTask.Status.PENDING)); in shouldGetStatusForAsyncTask()
118 assertThat(asyncTask.getStatus(), is(AsyncTask.Status.RUNNING)); in shouldGetStatusForAsyncTask()
120 assertThat(asyncTask.getStatus(), is(AsyncTask.Status.FINISHED)); in shouldGetStatusForAsyncTask()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAsyncTask.java3 import android.os.AsyncTask;
17 @Implements(AsyncTask.class)
20 @RealObject private AsyncTask<Params, Progress, Result> realAsyncTask;
24 private AsyncTask.Status status = AsyncTask.Status.PENDING;
31 status = AsyncTask.Status.FINISHED; in ShadowAsyncTask()
76 public AsyncTask<Params, Progress, Result> execute(final Params... params) { in execute()
77 status = AsyncTask.Status.RUNNING; in execute()
92 public AsyncTask.Status getStatus() { in getStatus()
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
DChromeSigninController.java9 import android.os.AsyncTask;
114 new AsyncTask<Void, Void, Void>() { in ensureGcmIsInitialized() method
130 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in ensureGcmIsInitialized()
DAccountManagerHelper.java17 import android.os.AsyncTask;
266 new AsyncTask<Void, Void, String>() { in getAuthTokenAsynchronously() method
/external/robolectric/src/main/java/android/os/
DShadowAsyncTaskBridge.java7 private AsyncTask<Params, Progress, Result> asyncTask;
9 public ShadowAsyncTaskBridge(AsyncTask<Params, Progress, Result> asyncTask) { in ShadowAsyncTaskBridge()
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DDefaultVideoPosterRequestHandler.java8 import android.os.AsyncTask;
44 AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() { in getInputStream()
DAwContents.java18 import android.os.AsyncTask;
1278 new AsyncTask<Void, Void, String>() { in saveWebArchive() method
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/sync/
DDelayedSyncController.java11 import android.os.AsyncTask;
64 new AsyncTask<Void, Void, Void>() { in requestSyncOnBackgroundThread() method
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DResourceExtractor.java12 import android.os.AsyncTask;
47 private class ExtractTask extends AsyncTask<Void, Void, Void> {
303 mExtractTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in startExtractingResources()
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/
DAppRTCClient.java31 import android.os.AsyncTask;
161 private class RedirectResolver extends AsyncTask<String, Void, String> {
204 extends AsyncTask<String, Void, AppRTCSignalingParameters> {
405 (new AsyncTask<Void, Void, Void>() { in requestQueueDrainInBackground() method
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DSSLClientCertificateRequest.java9 import android.os.AsyncTask;
28 class SSLClientCertificateRequest extends AsyncTask<Void, Void, Void>
DWebappAuthenticator.java8 import android.os.AsyncTask;
204 AsyncTask.THREAD_POOL_EXECUTOR.execute(sMacKeyGenerator); in triggerMacKeyGeneration()
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
DMockSyncContentResolverDelegate.java11 import android.os.AsyncTask;
191 new AsyncTask<Void, Void, Void>() { in notifyObserverAsync() method
DMockAccountManager.java20 import android.os.AsyncTask;
581 new AsyncTask<Void, Void, Void>() {
/external/chromium_org/media/base/android/java/src/org/chromium/media/
DMediaPlayerBridge.java10 import android.os.AsyncTask;
176 private class LoadDataUriTask extends AsyncTask <Void, Void, Boolean> {
DMediaDrmBridge.java9 import android.os.AsyncTask;
791 private class PostRequestTask extends AsyncTask<String, Void, Void> {
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java463 public static ShadowAsyncTask shadowOf(AsyncTask instance){ in shadowOf()