Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java50 public class FileOperationService extends Service implements Job.Listener {
131 private Job mForegroundJob;
244 Job job = operation.createJob(this, this, jobId, features); in handleOperation()
315 private void deleteJob(Job job) { in deleteJob()
362 public void onStart(Job job) { in onStart()
394 public void onFinished(Job job) { in onFinished()
424 private void updateForegroundState(Job job) { in updateForegroundState()
425 Job candidate = getCandidateForegroundJob(); in updateForegroundState()
444 Notification notification = (candidate.getState() == Job.STATE_STARTED) in updateForegroundState()
452 private void cleanUpNotification(Job job) { in cleanUpNotification()
[all …]
DFileOperation.java98 abstract Job createJob(Context service, Job.Listener listener, String id, Features features); in createJob()
138 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
179 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
221 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
256 Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
DJob.java72 abstract public class Job implements Runnable { class
127 Job(Context service, Listener listener, String id, in Job() method in Job
372 void onStart(Job job); in onStart()
373 void onFinished(Job job); in onFinished()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
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()
DTestJob.java35 public class TestJob extends Job {
/packages/apps/Gallery2/src/com/android/gallery3d/data/
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>() {
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> {
DUriImage.java32 import com.android.gallery3d.util.ThreadPool.Job;
70 public Job<Bitmap> requestImage(int type) { in requestImage()
75 public Job<BitmapRegionDecoder> requestLargeImage() { in requestLargeImage()
171 private class RegionDecoderJob implements Job<BitmapRegionDecoder> {
183 private class BitmapJob implements Job<Bitmap> {
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()
DLocalImage.java41 import com.android.gallery3d.util.ThreadPool.Job;
174 public Job<Bitmap> requestImage(int type) { in requestImage()
219 public Job<BitmapRegionDecoder> requestLargeImage() { in requestLargeImage()
224 implements Job<BitmapRegionDecoder> {
DPanoramaMetadataJob.java24 import com.android.gallery3d.util.ThreadPool.Job;
27 public class PanoramaMetadataJob implements Job<PanoramaMetadata> {
DLocalVideo.java30 import com.android.gallery3d.util.ThreadPool.Job;
154 public Job<Bitmap> requestImage(int type) { in requestImage()
178 public Job<BitmapRegionDecoder> requestLargeImage() { in requestLargeImage()
DImageCacheRequest.java25 import com.android.gallery3d.util.ThreadPool.Job;
28 abstract class ImageCacheRequest implements Job<Bitmap> {
DDownloadCache.java33 import com.android.gallery3d.util.ThreadPool.Job;
260 private class DownloadTask implements Job<File>, FutureListener<File> {
/packages/apps/Gallery2/src/com/android/gallery3d/util/
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()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
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()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowDataAdapter.java29 import com.android.gallery3d.util.ThreadPool.Job;
94 private class ReloadTask implements Job<Void> {
175 return mThreadPool.submit(new Job<Slide>() { in nextSlide()
DManageCachePage.java49 import com.android.gallery3d.util.ThreadPool.Job;
247 private Job<Void> mUpdateStorageInfoJob = new Job<Void>() {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DFileOperationServiceTest.java302 Job job1 = mCopyJobs.get(0); in testNotificationUpdateAfterForegroundJobSwitch()
303 Job job2 = mCopyJobs.get(1); in testNotificationUpdateAfterForegroundJobSwitch()
425 public Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob()
DAbstractJobTest.java46 public abstract class AbstractJobTest<T extends Job> extends AndroidTestCase {
117 final T createJob(FileOperation operation, Job.Listener listener) { in createJob()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTaskExecutor.java79 interface Job { interface in TaskExecutor
141 private Job job;
391 public void onStartJob(Job job, List<Bundle> pendingTasks) {
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsAddressResolver.java30 import com.android.gallery3d.util.ThreadPool.Job;
39 private class AddressLookupJob implements Job<Address> {
DAlbumLabelMaker.java117 public ThreadPool.Job<Bitmap> requestLabel( in requestLabel()
132 private class AlbumLabelJob implements ThreadPool.Job<Bitmap> {
DActionModeHandler.java46 import com.android.gallery3d.util.ThreadPool.Job;
406 mMenuTask = mActivity.getThreadPool().submit(new Job<Void>() { in updateSupportedOperation()
DMenuExecutor.java43 import com.android.gallery3d.util.ThreadPool.Job;
413 private class MediaOperation implements Job<Void> {

12