Home
last modified time | relevance | path

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

12

/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java20 import android.os.AsyncTask;
36 private static AsyncTask mAsyncTask;
58 return mMyAsyncTask.getStatus() == AsyncTask.Status.FINISHED; in doTestAsyncTask()
73 assertEquals(AsyncTask.Status.FINISHED, mMyAsyncTask.getStatus()); in doTestAsyncTask()
144 mAsyncTask = new AsyncTask() { in testCancellationWithException()
179 mAsyncTask = new AsyncTask() { in testException()
219 assertEquals(AsyncTask.Status.PENDING, mMyAsyncTask.getStatus()); in startAsyncTask()
221 assertEquals(AsyncTask.Status.RUNNING, mMyAsyncTask.getStatus()); in startAsyncTask()
226 private static class MyAsyncTask extends AsyncTask<String, Integer, Long> {
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInlineSuggestionTest.java25 import android.os.AsyncTask;
84 () -> suggestion.inflate(context, new Size(10, 10), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateInvalidSizeThrowsException()
97 suggestion.inflate(context, new Size(100, 100), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateNoContentProviderAcceptNullView()
108 suggestion.inflate(context, new Size(100, 100), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateTwiceThrowsException()
112 AsyncTask.THREAD_POOL_EXECUTOR, mockConsumer)); in testInflateTwiceThrowsException()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DClearApplicationDataTest.java19 import android.os.AsyncTask;
52 packageName, AsyncTask.THREAD_POOL_EXECUTOR, in clearApplicationDataTest()
/cts/tests/app/app/src/android/app/stubs/
DActivityManagerMemoryClassTestActivity.java20 import android.os.AsyncTask;
44 private class AllocateMemoryTask extends AsyncTask<Void, Void, Void> {
DTrimMemService.java24 import android.os.AsyncTask;
112 instanceName, AsyncTask.THREAD_POOL_EXECUTOR, conn); in bindToTrimMemService()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DVideoPlayerActivity.java21 import android.os.AsyncTask;
73 new AsyncTask<Void, Void, Void>() { in delay() method
DStatsdCtsForegroundActivity.java30 import android.os.AsyncTask;
119 new AsyncTask<Void, Void, Void>() { in doSleepWhileTop() method
224 new AsyncTask<Void, Void, Void>() { in doBusyWork() method
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateBitmapTask.java22 import android.os.AsyncTask;
34 class GenerateBitmapTask extends AsyncTask<Void, Void, Boolean> {
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/
DOtherUserActivity.java7 import android.os.AsyncTask;
40 private class MakeProviderBad extends AsyncTask<Void, Void, Exception> {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DReportExporter.java21 import android.os.AsyncTask;
41 public class ReportExporter extends AsyncTask<Void, Void, String> {
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DDirectActionsSession.java22 import android.os.AsyncTask;
178 requestDirectActions(mActivityId, null, AsyncTask.THREAD_POOL_EXECUTOR, (b) -> { in getDirectActions()
198 performDirectAction(action, arguments, null, AsyncTask.THREAD_POOL_EXECUTOR, (b) -> { in performDirectAction()
227 AsyncTask.THREAD_POOL_EXECUTOR, (b) -> in performDirectActionAndCancel()
/cts/tests/app/AppExitTest/src/android/app/cts/
DMemoryConsumerService.java24 import android.os.AsyncTask;
166 instanceName, AsyncTask.THREAD_POOL_EXECUTOR, conn); in bindToService()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java21 import android.os.AsyncTask;
82 class NetworkTestAsyncTask extends AsyncTask<Void, Void, Boolean> {
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java40 import android.os.AsyncTask;
232 new AsyncTask<Void, Void, Void>() { in doScheduleJob() method
243 new AsyncTask<Void, Void, Void>() { in doNothingAsync() method
269 new AsyncTask<Void, Void, Void>() { in doSync() method
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
DGbaServiceTest.java28 import android.os.AsyncTask;
164 Uri.parse(NAF), builder.build(), true, AsyncTask.SERIAL_EXECUTOR, cb), in testAuthSuccess()
229 Uri.parse(NAF), builder.build(), true, AsyncTask.SERIAL_EXECUTOR, cb), permission); in runGbaFailCase()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java31 import android.os.AsyncTask;
242 private class LookupRtspUrlTask extends AsyncTask<String, Void, String> {
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java33 import android.os.AsyncTask;
183 private class MyTask extends AsyncTask<AsyncTaskArg, Void, Void> {
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java27 import android.os.AsyncTask;
392 new AsyncTask<Void, Void, Void>() { in openDocumentUnchecked() method
408 }.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR); in openDocumentUnchecked()
411 new AsyncTask<Void, Void, Void>() { in openDocumentUnchecked() method
431 }.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR); in openDocumentUnchecked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DBaseEmulatorActivity.java15 import android.os.AsyncTask;
138 private class SetupServicesTask extends AsyncTask<ComponentName, Void, Boolean> {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DSelfManagedIncomingCallTestActivity.java21 import android.os.AsyncTask;
137 (new AsyncTask<Void, Void, Throwable>() { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvInputDiscoveryTestActivity.java24 import android.os.AsyncTask;
198 new AsyncTask<Void, Void, Boolean>() { in verifyGlobalSearch() method
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java22 import android.os.AsyncTask;
76 class GenerateKeyTask extends AsyncTask<KeyGenParameterSpec, Integer, AttestedKeyPair> {
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DDirectActionsActivity.java23 import android.os.AsyncTask;
127 interactor.registerOnDestroyedCallback(AsyncTask.THREAD_POOL_EXECUTOR, latch::countDown); in detectDestroyedInteractor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DTagVerifierActivity.java38 import android.os.AsyncTask;
199 class WriteTagTask extends AsyncTask<Tag, Void, TagVerifier> {
243 class VerifyTagTask extends AsyncTask<Tag, Void, Result> {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeChecker.java28 import android.os.AsyncTask;
175 private final class GarageModeCheckerTask extends AsyncTask<Void, Void, Boolean> {

12