Home
last modified time | relevance | path

Searched refs:asyncTask (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAsyncTaskTest.java32 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testNormalFlow() local
34 asyncTask.execute("a", "b"); in testNormalFlow()
39 …assertEquals("Result should get stored in the AsyncTask", "c", asyncTask.get(100, TimeUnit.MILLISE… in testNormalFlow()
47 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testCancelBeforeBackground() local
49 asyncTask.execute("a", "b"); in testCancelBeforeBackground()
52 assertTrue(asyncTask.cancel(true)); in testCancelBeforeBackground()
53 assertTrue(asyncTask.isCancelled()); in testCancelBeforeBackground()
64 AsyncTask<String, String, String> asyncTask = new MyAsyncTask(); in testCancelBeforePostExecute() local
66 asyncTask.execute("a", "b"); in testCancelBeforePostExecute()
71 …assertEquals("Result should get stored in the AsyncTask", "c", asyncTask.get(100, TimeUnit.MILLISE… in testCancelBeforePostExecute()
[all …]
/external/robolectric/src/main/java/android/os/
DShadowAsyncTaskBridge.java7 private AsyncTask<Params, Progress, Result> asyncTask; field in ShadowAsyncTaskBridge
9 public ShadowAsyncTaskBridge(AsyncTask<Params, Progress, Result> asyncTask) { in ShadowAsyncTaskBridge() argument
10 this.asyncTask = asyncTask; in ShadowAsyncTaskBridge()
14 return asyncTask.doInBackground(params); in doInBackground()
18 asyncTask.onPreExecute(); in onPreExecute()
22 asyncTask.onPostExecute(result); in onPostExecute()
26 asyncTask.onProgressUpdate(values); in onProgressUpdate()
30 asyncTask.onCancelled(); in onCancelled()
/external/chromium_org/chrome/browser/resources/google_now/
Dcommon_test_util.js85 function PromisePrototypeObject(asyncTask) { argument
137 var resolveReject = callResolveRejectFunc(asyncTask);