/packages/services/BuiltInPrintService/src/com/android/bips/ |
H A D | JobQueue.java | 25 /** Manages a job queue, ensuring only one job is printed at a time */ 30 /** Queue a print job for printing at the next available opportunity */ 31 void print(LocalPrintJob job) { argument 32 mJobs.add(job); 36 /** Cancel a previously queued job */ 38 // If a job hasn't started, kill it instantly. 39 for (LocalPrintJob job : mJobs) { 40 if (job.getPrintJobId().equals(id)) { 41 mJobs.remove(job); [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactsJobService.java | 18 import android.app.job.JobParameters; 19 import android.app.job.JobService; 22 * Service to run {@link android.app.job.JobScheduler} jobs.
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/job/ |
H A D | DishService.java | 16 package com.google.android.car.kitchensink.job; 18 import android.app.job.JobParameters; 19 import android.app.job.JobService; 42 JobParameters job = (JobParameters) msg.obj; 45 Log.d(TAG, "Job done! " + job.getJobId()); 46 mTaskMap.remove(job.getJobId()); 47 jobFinished(job, false); 50 DishWasherTask task = new DishWasherTask(this, job, msg.arg1); 52 mTaskMap.put(job.getJobId(), job); [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
H A D | FileOperationService.java | 106 // The executor and job factory are visible for testing and non-final 129 // The job whose notification is used to keep the service in foreground mode. 229 Log.w(TAG, "Duplicate job id: " + jobId 230 + ". Ignoring job request for operation: " + operation + "."); 234 Job job = operation.createJob(this, this, jobId, features); 236 if (job == null) { 240 assert (job != null); 241 if (DEBUG) Log.d(TAG, "Scheduling job " + job.id + "."); 242 Future<?> future = getExecutorService(operation.getOpType()).submit(job); 300 deleteJob(Job job) argument 341 onStart(Job job) argument 362 onFinished(Job job) argument 390 updateForegroundState(Job job) argument 414 cleanUpNotification(Job job) argument 439 private final Job job; field in class:FileOperationService.JobRecord 442 JobRecord(Job job, Future<?> future) argument 462 JobMonitor(Job job, NotificationManager notificationManager, Handler handler) argument [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
H A D | AutomaticStorageBroadcastReceiver.java | 19 import android.app.job.JobInfo; 20 import android.app.job.JobScheduler; 29 * schedule an automatic storage management job. Automatic storage management jobs are only 45 JobInfo job = new JobInfo.Builder(AUTOMATIC_STORAGE_JOB_ID, component) 50 jobScheduler.schedule(job);
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | ImageProcessorProxyListener.java | 150 public void onStart(TaskImageContainer.TaskInfo job) { argument 153 listeners = filteredListeners(job.contentId); 157 l.onStart(job); 161 public void onResultCompressed(TaskImageContainer.TaskInfo job, argument 165 listeners = filteredListeners(job.contentId); 169 l.onResultCompressed(job, payload); 173 public void onResultUncompressed(TaskImageContainer.TaskInfo job, argument 177 listeners = filteredListeners(job.contentId); 181 l.onResultUncompressed(job, payload); 185 public void onResultUri(TaskImageContainer.TaskInfo job, Ur argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | RunInLocale.java | 27 protected abstract T job(final Resources res); method in class:RunInLocale 30 * Execute {@link #job(Resources)} method in specified system locale exclusively. 34 * @return the value returned from {@link #job(Resources)}. 40 return job(res); 46 return job(res);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
H A D | DeviceProvisionedJobService.java | 20 import android.app.job.JobInfo; 21 import android.app.job.JobInfo.TriggerContentUri; 22 import android.app.job.JobParameters; 23 import android.app.job.JobScheduler; 24 import android.app.job.JobService; 25 import android.app.job.JobWorkItem; 74 return false; // job not running in background 79 return true; // reschedule job
|
H A D | StatusCheckJobService.java | 17 import android.app.job.JobInfo; 18 import android.app.job.JobParameters; 19 import android.app.job.JobScheduler; 20 import android.app.job.JobService; 31 * A job to perform {@link StatusCheckTask} once per day, performing book keeping to ensure the 42 VvmLog.i("StatusCheckJobService.schedule", "job already scheduled");
|
/packages/apps/StorageManager/src/com/android/storagemanager/overlay/ |
H A D | StorageManagementJobProvider.java | 19 import android.app.job.JobParameters; 28 * Starts an asynchronous deletion job to clear out storage older than 31 * @return If the job needs to process the work on a separate thread. 36 * Attempt to stop the execution of the job. 37 * @param params Parameters specifying info about this job. 38 * @return If the job should be rescheduled.
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | JobLimiter.java | 48 public JobWrapper(Job<T> job, FutureListener<T> listener) { argument 49 mJob = job; 105 Job<T> job = null; 108 job = mJob; 112 result = job.run(jc); 114 Log.w(TAG, "error executing job: " + job, t); 136 public synchronized <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { argument 137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | DictionaryInfoUtilsTests.java | 31 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { 33 protected SpacingAndPunctuations job(final Resources res) { 38 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH);
|
H A D | CapsModeUtilsTests.java | 56 final RunInLocale<SpacingAndPunctuations> job = new RunInLocale<SpacingAndPunctuations>() { 58 protected SpacingAndPunctuations job(final Resources res) { 63 SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); 94 sp = job.runInLocale(res, Locale.FRENCH); 101 sp = job.runInLocale(res, Locale.GERMAN); 107 sp = job.runInLocale(res, Locale.ENGLISH); 115 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("hy_AM")); 129 sp = job.runInLocale(res, Locale.ENGLISH); 140 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("el"));
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
H A D | ThreadPool.java | 95 // Submit a job to the thread pool. The listener will be called when the 96 // job is finished (or cancelled). 97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { argument 98 Worker<T> w = new Worker<T>(job, listener); 103 public <T> Future<T> submit(Job<T> job) { argument 104 return submit(job, null); 119 public Worker(Job<T> job, FutureListener<T> listener) { argument 120 mJob = job; 129 // A job is in CPU mode by default. setMode returns false 130 // if the job i [all...] |
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
H A D | PeriodicJobService.java | 20 import android.app.job.JobInfo; 21 import android.app.job.JobParameters; 22 import android.app.job.JobScheduler; 23 import android.app.job.JobService; 37 * {@link JobService} which starts the periodic job to refresh dynamic and pinned shortcuts. 49 * Schedules the periodic job to refresh shortcuts. If called repeatedly, the job will just be 52 * <p>The job will not be scheduled if the build version is not at least N MR1 or if the user is 63 LogUtil.i("PeriodicJobService.schedulePeriodicJob", "job already scheduled."); 79 /** Cancels the periodic job [all...] |
H A D | RefreshShortcutsTask.java | 20 import android.app.job.JobParameters; 21 import android.app.job.JobService; 30 /** {@link AsyncTask} used by the periodic job service to refresh dynamic and pinned shortcuts. */ 49 // periodically using the job service. 56 // updated, and then rely on the job service to periodically force update it.
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/ |
H A D | TestJobListener.java | 40 public void onStart(Job job) { argument 41 started = job; 45 public void onFinished(Job job) { argument 46 this.finished = job; 118 fail("No job to test."); 126 fail("Can't determine if job was canceled. Job didn't finish.");
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | TunerTvInputService.java | 19 import android.app.job.JobInfo; 20 import android.app.job.JobScheduler; 71 // storage cleaning job is already scheduled. 73 JobInfo job = new JobInfo.Builder(DVR_STORAGE_CLEANUP_JOB_ID, 76 jobScheduler.schedule(job);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
H A D | TaskExecutor.java | 39 * A singleton to queue and run {@link Task} with the {@link android.app.job.JobScheduler}. A task 47 * android.app.job.JobScheduler}, which is between {@link #onStartJob(Job, List)} and {@link 49 * data is stored in the {@link android.app.job.JobScheduler} instead of the process memory, so if 51 * TaskSchedulerJobService} will be scheduled to run the task. If the job is already scheduled, the 52 * new task will be pushed into the queue of the scheduled job. If the job is already running, the 53 * job will be queued in process memory. 59 * enter a "sleep", pushing all remaining task into a new job and end the current job. 64 * <p>{@link android.app.job 141 private Job job; field in class:TaskExecutor 391 onStartJob(Job job, List<Bundle> pendingTasks) argument [all...] |
H A D | TaskSchedulerJobService.java | 20 import android.app.job.JobInfo; 21 import android.app.job.JobParameters; 22 import android.app.job.JobScheduler; 23 import android.app.job.JobService; 64 TAG, "Job " + jobId + " is not the last scheduled job " + expectedJobId + ", ignoring"); 75 return true /* job still running in background */; 83 return false /* don't reschedule. TaskExecutor service will post a new job */; 87 * Schedule a job to run the {@code pendingTasks}. If a job is already scheduled it will be 88 * appended to the back of the queue and the job wil [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
H A D | TranscriptionService.java | 18 import android.app.job.JobInfo; 19 import android.app.job.JobParameters; 20 import android.app.job.JobScheduler; 21 import android.app.job.JobService; 22 import android.app.job.JobWorkItem;
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
H A D | FileOperationServiceTest.java | 182 // Assert monitoring continues until job is done 193 // Assert monitoring stops once job is completed. 338 for (TestJob job : mCopyJobs) { 339 job.assertStarted(); 344 for (TestJob job : mDeleteJobs) { 345 job.assertStarted(); 350 for (TestJob job : mCopyJobs) { 351 job.assertNotStarted(); 356 for (TestJob job : mDeleteJobs) { 357 job [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/ |
H A D | PrintSettingsFragmentTest.java | 72 final PrintJob job = mock(PrintJob.class, Mockito.RETURNS_DEEP_STUBS); 73 printJobs.add(job); 74 when(job.getInfo().getState()).thenReturn(PrintJobInfo.STATE_STARTED);
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
H A D | AutomaticStorageBroadcastReceiverTest.java | 19 import android.app.job.JobInfo; 20 import android.app.job.JobScheduler;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadJobService.java | 23 import android.app.job.JobParameters; 24 import android.app.job.JobService; 30 * Service that hosts download jobs. Each active download job is handled as a 34 * given download isn't able to finish in the normal job timeout (10 minutes), 35 * we just reschedule the job and resume again in the future. 100 // Update notifications one last time while job is protecting us
|