Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacController.java30 import android.os.AsyncTask;
401 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in requestRefresh()
490 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setTemperature()
511 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setHvacPowerState()
541 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setSeatWarmerLevel()
578 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setFanSpeed()
637 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setDefrosterState()
670 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setAcState()
725 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setFanDirection()
760 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setAirCirculation()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DCameraFilmstripDataAdapter.java22 import android.os.AsyncTask;
86 public AsyncTask updateMetadataAt(int index) { in updateMetadataAt()
90 private AsyncTask updateMetadataAt(int index, boolean forceItemUpdate) { in updateMetadataAt()
92 result.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, index); in updateMetadataAt()
276 public List<AsyncTask> preloadItems(List<Integer> items) { in preloadItems()
277 List<AsyncTask> result = new ArrayList<>(); in preloadItems()
287 public void cancelItems(List<AsyncTask> loadTokens) { in cancelItems()
288 for (AsyncTask asyncTask : loadTokens) { in cancelItems()
309 private class LoadNewPhotosTask extends AsyncTask<ContentResolver, Void, List<PhotoItem>> {
372 private class QueryTask extends AsyncTask<Context, Void, QueryTaskResult> {
[all …]
DFilmstripDataAdapterProxy.java21 import android.os.AsyncTask;
112 public AsyncTask updateMetadataAt(int index) { in updateMetadataAt()
122 public List<AsyncTask> preloadItems(List<Integer> items) { in preloadItems()
127 public void cancelItems(List<AsyncTask> loadTokens) { in cancelItems()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java27 import android.os.AsyncTask;
79 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeBitmap()
85 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeRawDimensions()
104 new AsyncTask<Void, Void, InputStream>() { in fetchInputStream() method
114 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in fetchInputStream()
143 public AsyncTask runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask()
240 private class DecodeBitmapAsyncTask extends AsyncTask<Void, Void, Bitmap> {
300 private class DecodeBitmapRegionAsyncTask extends AsyncTask<Void, Void, Bitmap> {
374 private class DecodeDimensionsAsyncTask extends AsyncTask<Void, Void, Point> {
DBuiltInWallpaperAsset.java28 import android.os.AsyncTask;
72 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeBitmapRegion()
78 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeRawDimensions()
85 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeBitmap()
129 private class DecodeBitmapAsyncTask extends AsyncTask<Void, Void, Bitmap> {
168 private class DecodeBitmapRegionAsyncTask extends AsyncTask<Void, Void, Bitmap> {
205 private class DecodeDimensionsAsyncTask extends AsyncTask<Void, Void, Point> {
DCurrentWallpaperAssetV16.java26 import android.os.AsyncTask;
51 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeBitmap()
62 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in decodeRawDimensions()
81 private class DecodeBitmapAsyncTask extends AsyncTask<Void, Void, Bitmap> {
120 private class DecodeDimensionsAsyncTask extends AsyncTask<Void, Void, Point> {
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/
DSampleDvbTunerSetupActivity.java25 import android.os.AsyncTask;
95 new QueryEpgInputTask(embeddedInputId).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreate()
100 new AsyncTask<Void, Void, Integer>() { in executeGetTunerTypeAndCountAsyncTask() method
119 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in executeGetTunerTypeAndCountAsyncTask()
255 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in executeAction()
361 AsyncTask.Status status = fetchLineupTask.getStatus(); in cancelFetchLineup()
362 if (status == AsyncTask.Status.RUNNING || status == AsyncTask.Status.PENDING) { in cancelFetchLineup()
383 fetchLineupTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in restartFetchLineupTask()
386 private class FetchLineupTask extends AsyncTask<Void, Void, List<Lineup>> {
426 private class InsertOrModifyEpgInputTask extends AsyncTask<Void, Void, Void> {
[all …]
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/
DSampleNetworkTunerSetupActivity.java25 import android.os.AsyncTask;
95 new QueryEpgInputTask(embeddedInputId).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreate()
100 new AsyncTask<Void, Void, Integer>() { in executeGetTunerTypeAndCountAsyncTask() method
120 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in executeGetTunerTypeAndCountAsyncTask()
255 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in executeAction()
361 AsyncTask.Status status = fetchLineupTask.getStatus(); in cancelFetchLineup()
362 if (status == AsyncTask.Status.RUNNING || status == AsyncTask.Status.PENDING) { in cancelFetchLineup()
383 fetchLineupTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in restartFetchLineupTask()
386 private class FetchLineupTask extends AsyncTask<Void, Void, List<Lineup>> {
426 private class InsertOrModifyEpgInputTask extends AsyncTask<Void, Void, Void> {
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DAppLinkCardView.java27 import android.os.AsyncTask;
129 new AsyncTask<Void, Void, CharSequence>() { in onBind() method
150 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onBind()
169 new AsyncTask<Void, Void, Drawable>() { in onBind() method
190 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onBind()
204 new AsyncTask<Void, Void, CharSequence>() { in onBind() method
230 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onBind()
321 new AsyncTask<Void, Void, Drawable>() {
351 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
360 new AsyncTask<Void, Void, Drawable>() {
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.kt21 import android.os.AsyncTask in <lambda>()
57 val updateTask: AsyncTask<Void, Void, AlarmInstance> = in <lambda>()
58 object : AsyncTask<Void, Void, AlarmInstance>() { in <lambda>()
100 val updateTask: AsyncTask<Void, Void, AlarmInstance> = in <lambda>()
101 object : AsyncTask<Void, Void, AlarmInstance>() { in <lambda>()
149 val deleteTask: AsyncTask<Void, Void, Boolean> = object : AsyncTask<Void, Void, Boolean>() { in <lambda>()
DAlarmUpdateHandler.java21 import android.os.AsyncTask;
62 final AsyncTask<Void, Void, AlarmInstance> updateTask = in asyncAddAlarm()
63 new AsyncTask<Void, Void, AlarmInstance>() { in asyncAddAlarm()
104 final AsyncTask<Void, Void, AlarmInstance> updateTask = in asyncUpdateAlarm()
105 new AsyncTask<Void, Void, AlarmInstance>() { in asyncUpdateAlarm()
157 final AsyncTask<Void, Void, Boolean> deleteTask = new AsyncTask<Void, Void, Boolean>() { in asyncDeleteAlarm()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DAsyncTaskExecutors.java19 import android.os.AsyncTask;
48 return new SimpleAsyncTaskExecutor(AsyncTask.SERIAL_EXECUTOR); in createAsyncTaskExecutor()
61 return new SimpleAsyncTaskExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in createThreadPoolExecutor()
87 public <T> AsyncTask<T, ?, ?> submit(Object identifer, AsyncTask<T, ?, ?> task, T... params) { in submit()
DAsyncTaskExecutor.java19 import android.os.AsyncTask;
50 <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params); in submit()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DPermissionControllerServiceImpl.java36 import android.os.AsyncTask;
212 AsyncTask.execute(() -> callback.accept(onRevokeRuntimePermissions(request, doDryRun, in onRevokeRuntimePermissions()
305 AsyncTask.execute(() -> { in onGetRuntimePermissionsBackup()
329 AsyncTask.execute(() -> { in onRestoreRuntimePermissionsBackup()
350 AsyncTask.execute(() -> callback.accept( in onRestoreDelayedRuntimePermissionsBackup()
367 AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> callback.accept( in onGetAppPermissions()
405 AsyncTask.execute(() -> { in onRevokeRuntimePermission()
433 AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> callback.accept( in onCountPermissionApps()
492 AsyncTask.THREAD_POOL_EXECUTOR.execute( in onGetPermissionUsages()
505 AsyncTask.execute(() -> callback.accept(onSetRuntimePermissionGrantStateByDeviceAdmin( in onSetRuntimePermissionGrantStateByDeviceAdmin()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchHistoryManager.java27 import android.os.AsyncTask;
80 AsyncTask.SERIAL_EXECUTOR); in getInstance()
148 AsyncTask.SERIAL_EXECUTOR); in addHistory()
152 DATABASE_OPERATION.DELETE).executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, in addHistory()
160 AsyncTask.SERIAL_EXECUTOR); in addHistory()
173 AsyncTask.SERIAL_EXECUTOR); in deleteHistory()
178 private class DatabaseTask extends AsyncTask<Object, Void, Object> {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DAsyncTaskUtil.java19 import android.os.AsyncTask;
35 sExecutor = (Executor) AsyncTask.class.getField("THREAD_POOL_EXECUTOR")
37 sMethodExecuteOnExecutor = AsyncTask.class.getMethod(
49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { in executeInParallel()
/packages/apps/Contacts/src/com/android/contacts/dialog/
DClearFrequentsDialog.java27 import android.os.AsyncTask;
57 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onCreateDialog()
70 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateDialog()
/packages/apps/Dialer/java/com/android/contacts/common/dialog/
DClearFrequentsDialog.java28 import android.os.AsyncTask;
63 final AsyncTask<Void, Void, Void> task = in onCreateDialog()
64 new AsyncTask<Void, Void, Void>() { in onCreateDialog()
77 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateDialog()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DTrickplayStorageManager.java20 import android.os.AsyncTask;
44 private static AsyncTask<Void, Void, Void> sLastCacheCleanUpTask;
84 new AsyncTask<Void, Void, Void>() { in clearStorage()
106 sLastCacheCleanUpTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in clearStorage()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DFlipperDreamSettings.java21 import android.os.AsyncTask;
22 import android.os.AsyncTask.Status;
44 private AsyncTask<Void, Void, Void> mLoadingTask;
66 mLoadingTask = new AsyncTask<Void, Void, Void>() { in init()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DTrickplayStorageManager.java20 import android.os.AsyncTask;
44 private static AsyncTask<Void, Void, Void> sLastCacheCleanUpTask;
84 new AsyncTask<Void, Void, Void>() { in clearStorage()
106 sLastCacheCleanUpTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in clearStorage()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumbersUtil.java23 import android.os.AsyncTask;
73 final AsyncTask task = in checkForSendToVoicemailContact()
74 new AsyncTask<Object, Void, Boolean>() { in checkForSendToVoicemailContact()
123 final AsyncTask<Object, Void, Boolean> task = in importSendToVoicemailContacts()
124 new AsyncTask<Object, Void, Boolean>() { in importSendToVoicemailContacts()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DUrisSupplierTest.java24 import android.os.AsyncTask;
64 AsyncTask.setDefaultExecutor(mExecutor); in setUp()
73 AsyncTask.setDefaultExecutor(AsyncTask.SERIAL_EXECUTOR); in tearDownOnce()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DBackend.java24 import android.os.AsyncTask;
61 private AsyncTask<Void, Void, Integer> mStartTask;
102 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in getCapabilities()
148 mStartTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in print()
161 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in cancel()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAsyncTaskUtil.java23 import android.os.AsyncTask;
54 new AsyncTask<Void, Void, Void>() { in markVoicemailAsRead()
84 new AsyncTask<Void, Void, Void>() { in deleteVoicemail()
120 new AsyncTask<Void, Void, Void>() { in markCallAsRead()

12345678910>>...14