@Implements(value=android.os.AsyncTask.class) public class ShadowAsyncTask<Params,Progress,Result> extends java.lang.Object
Constructor and Description |
---|
ShadowAsyncTask() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cancel(boolean mayInterruptIfRunning) |
protected android.os.AsyncTask<Params,Progress,Result> |
execute(Params... params) |
protected android.os.AsyncTask<Params,Progress,Result> |
executeOnExecutor(java.util.concurrent.Executor executor,
Params... params) |
protected Result |
get() |
protected Result |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
protected android.os.AsyncTask.Status |
getStatus() |
protected boolean |
isCancelled() |
protected void |
publishProgress(Progress... values)
Enqueue a call to
AsyncTask.onProgressUpdate(Object[]) on UI looper (or run it immediately if the looper it is not paused). |
@Implementation protected boolean isCancelled()
@Implementation protected boolean cancel(boolean mayInterruptIfRunning)
@Implementation protected Result get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
@Implementation protected Result get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
@Implementation protected android.os.AsyncTask<Params,Progress,Result> execute(Params... params)
@Implementation protected android.os.AsyncTask<Params,Progress,Result> executeOnExecutor(java.util.concurrent.Executor executor, Params... params)
@Implementation protected android.os.AsyncTask.Status getStatus()
@Implementation protected void publishProgress(Progress... values)
Enqueue a call to AsyncTask.onProgressUpdate(Object[])
on UI looper (or run it immediately if the looper it is not paused).
values
- The progress values to update the UI with.AsyncTask.publishProgress(Object[])