Home
last modified time | relevance | path

Searched refs:Job (Results 1 – 25 of 89) sorted by relevance

1234

/aosp12/frameworks/base/core/java/com/android/internal/infra/
H A DServiceConnector.java108 <R> AndroidFuture<R> postForResult(@NonNull Job<I, R> job); in postForResult()
159 interface Job<II, R> { interface
180 interface VoidJob<II> extends Job<II, Void> {
349 return postForResult((Job) job); in post()
385 if (!enqueue((Job<I, ?>) task)) { in enqueue()
392 private boolean enqueue(@NonNull Job<I, ?> job) { in enqueue()
397 void enqueueJobThread(@NonNull Job<I, ?> job) { in enqueueJobThread()
448 Job<I, ?> job; in processQueue()
534 Job<I, ?> job; in cancelPendingJobs()
638 for (Job<I, ?> pendingJob : mQueue) { in dump()
[all …]
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DFileOperationService.java134 private Job mForegroundJob;
318 private void deleteJob(Job job) { in deleteJob()
365 public void onStart(Job job) { in onStart()
397 public void onFinished(Job job) { in onFinished()
427 private void updateForegroundState(Job job) { in updateForegroundState()
428 Job candidate = getCandidateForegroundJob(); in updateForegroundState()
455 private void cleanUpNotification(Job job) { in cleanUpNotification()
484 private Job getCandidateForegroundJob() { in getCandidateForegroundJob()
497 private final Job job;
516 private final Job mJob;
[all …]
H A DFileOperation.java101 abstract Job createJob(Context service, Job.Listener listener, String id, Features features); in createJob()
141 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
182 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
224 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
259 Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSnailItem.java23 import com.android.gallery3d.util.ThreadPool.Job;
39 public Job<Bitmap> requestImage(int type) { in requestImage()
41 return new Job<Bitmap>() { in requestImage()
50 public Job<BitmapRegionDecoder> requestLargeImage() {
52 return new Job<BitmapRegionDecoder>() {
H A DActionImage.java27 import com.android.gallery3d.util.ThreadPool.Job;
43 public Job<Bitmap> requestImage(int type) { in requestImage()
48 public Job<BitmapRegionDecoder> requestLargeImage() { in requestLargeImage()
52 private class BitmapJob implements Job<Bitmap> {
H A DMediaItem.java24 import com.android.gallery3d.util.ThreadPool.Job;
53 public abstract Job<Bitmap> requestImage(int type); in requestImage()
54 public abstract Job<BitmapRegionDecoder> requestLargeImage(); in requestLargeImage()
H A DUriImage.java32 import com.android.gallery3d.util.ThreadPool.Job;
71 public Job<Bitmap> requestImage(int type) { in requestImage()
76 public Job<BitmapRegionDecoder> requestLargeImage() { in requestLargeImage()
172 private class RegionDecoderJob implements Job<BitmapRegionDecoder> {
184 private class BitmapJob implements Job<Bitmap> {
H A DPanoramaMetadataJob.java24 import com.android.gallery3d.util.ThreadPool.Job;
27 public class PanoramaMetadataJob implements Job<PanoramaMetadata> {
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestJobListener.java32 public class TestJobListener implements Job.Listener {
35 private final List<Job> progress = new ArrayList<>();
36 @Nullable private Job started;
37 @Nullable private Job finished;
40 public void onStart(Job job) { in onStart()
45 public void onFinished(Job job) { in onFinished()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DJobLimiter.java20 import com.android.gallery3d.util.ThreadPool.Job;
41 private static class JobWrapper<T> implements Future<T>, Job<T> {
43 private Job<T> mJob;
48 public JobWrapper(Job<T> job, FutureListener<T> listener) { in JobWrapper()
105 Job<T> job = null; in run()
136 public synchronized <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
H A DSmartAsyncMediatorLiveData.kt23 import kotlinx.coroutines.Job
38 private var currentJob: Job? = null
48 abstract suspend fun loadDataAndPostValue(job: Job)
63 currentJob = coroutineContext[Job]
H A DMicMutedLiveData.kt25 import kotlinx.coroutines.Job
39 override suspend fun loadDataAndPostValue(job: Job) {
H A DSelectedAutofillServiceLiveData.kt24 import kotlinx.coroutines.Job
37 override suspend fun loadDataAndPostValue(job: Job) {
H A DSelectedWallpaperServiceLiveData.kt24 import kotlinx.coroutines.Job
37 override suspend fun loadDataAndPostValue(job: Job) {
H A DEnabledDeviceAdminsLiveData.kt24 import kotlinx.coroutines.Job
37 override suspend fun loadDataAndPostValue(job: Job) {
H A DSelectedVoiceInteractionServiceLiveData.kt25 import kotlinx.coroutines.Job
38 override suspend fun loadDataAndPostValue(job: Job) {
H A DEnabledInputMethodsLiveData.kt25 import kotlinx.coroutines.Job
38 override suspend fun loadDataAndPostValue(job: Job) {
H A DEnabledNotificationListenersLiveData.kt25 import kotlinx.coroutines.Job
38 override suspend fun loadDataAndPostValue(job: Job) {
H A DForegroundPermNamesLiveData.kt22 import kotlinx.coroutines.Job
37 override suspend fun loadDataAndPostValue(job: Job) {
H A DLauncherPackagesLiveData.kt23 import kotlinx.coroutines.Job
34 override suspend fun loadDataAndPostValue(job: Job) {
H A DDisabledPrintServicesLiveData.kt25 import kotlinx.coroutines.Job
38 override suspend fun loadDataAndPostValue(job: Job) {
H A DEnabledDreamServicesLiveData.kt25 import kotlinx.coroutines.Job
38 override suspend fun loadDataAndPostValue(job: Job) {
H A DEnabledAccessibilityServicesLiveData.kt26 import kotlinx.coroutines.Job
40 override suspend fun loadDataAndPostValue(job: Job) {
H A DRoleHoldersLiveData.kt24 import kotlinx.coroutines.Job
50 override suspend fun loadDataAndPostValue(job: Job) {
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
H A DThreadPool.java44 public interface Job<T> { interface in ThreadPool
97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit()
103 public <T> Future<T> submit(Job<T> job) { in submit()
110 private Job<T> mJob;
119 public Worker(Job<T> job, FutureListener<T> listener) { in Worker()

1234