Searched defs:job (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/app/job/
H A DJobScheduler.java17 package android.app.job;
27 * See {@link android.app.job.JobInfo} for more description of the types of jobs that can be run
30 * system will execute this job on your application's {@link android.app.job.JobService}.
31 * You identify which JobService is meant to execute the logic for your job when you create the
33 * {@link android.app.job.JobInfo.Builder#JobInfo.Builder(int,android.content.ComponentName)}.
37 * and defer them as much as possible. Typically if you don't specify a deadline on your job, it
50 * if the run-time for your job is too short, or perhaps the system can't resolve the
62 * @param job The job yo
68 schedule(JobInfo job) argument
[all...]
H A DJobParameters.java17 package android.app.job;
19 import android.app.job.IJobCallback;
20 import android.app.job.IJobCallback.Stub;
27 * Contains the parameters used to configure/identify your job. You do not create this object
47 * @return The unique id of this job, specified at creation time.
54 * @return The extras you passed in when constructing this job with
55 * {@link android.app.job.JobInfo.Builder#setExtras(android.os.PersistableBundle)}. This will
63 * For jobs with {@link android.app.job.JobInfo.Builder#setOverrideDeadline(long)} set, this
64 * provides an easy way to tell whether the job is being executed due to the deadline
65 * expiring. Note: If the job i
[all...]
H A DJobService.java17 package android.app.job;
31 * <p>Entry point for the callback from the {@link android.app.job.JobScheduler}.</p>
34 * you will implement your job logic.</p>
35 * <p>This service executes each incoming job on a {@link android.os.Handler} running on your
39 * {@link #onStopJob(android.app.job.JobParameters)}, which is meant to inform you that the
55 * <p>If a job service is declared in the manifest but not protected with this
63 * {@link #onStartJob(android.app.job.JobParameters)}.
67 * Message that will result in a call to {@link #onStopJob(android.app.job.JobParameters)}.
71 * Message that the client has completed execution of this job.
129 Log.e(TAG, "Error while executing job
[all...]
H A DJobInfo.java17 package android.app.job;
25 * Container of data passed to the {@link android.app.job.JobScheduler} fully encapsulating the
35 /** This job requires network connectivity. */
37 /** This job requires network connectivity that is unmetered. */
41 * Amount of backoff a job has initially by default, in milliseconds.
46 * Maximum backoff we allow for a job, in milliseconds.
51 * Linearly back-off a failed job. See
52 * {@link android.app.job.JobInfo.Builder#setBackoffCriteria(long, int)}
59 * Exponentially back-off a failed job. See
60 * {@link android.app.job
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DJobCompletedListener.java17 package com.android.server.job;
19 import com.android.server.job.controllers.JobStatus;
22 * Used for communication between {@link com.android.server.job.JobServiceContext} and the
23 * {@link com.android.server.job.JobSchedulerService}.
28 * Callback for when a job is completed.
29 * @param needsReschedule Whether the implementing class should reschedule this job.
H A DStateChangedListener.java17 package com.android.server.job;
19 import com.android.server.job.controllers.JobStatus;
22 * Interface through which a {@link com.android.server.job.controllers.StateController} informs
23 * the {@link com.android.server.job.JobSchedulerService} that there are some tasks potentially
H A DJobSchedulerService.java17 package com.android.server.job;
26 import android.app.job.JobInfo;
27 import android.app.job.JobScheduler;
28 import android.app.job.JobService;
29 import android.app.job.IJobScheduler;
52 import com.android.server.job.controllers.BatteryController;
53 import com.android.server.job.controllers.ConnectivityController;
54 import com.android.server.job.controllers.IdleController;
55 import com.android.server.job.controllers.JobStatus;
56 import com.android.server.job
178 schedule(JobInfo job, int uId) argument
367 stopJobOnServiceContextLocked(JobStatus job) argument
384 isCurrentlyActiveLocked(JobStatus job) argument
638 isReadyToBeExecutedLocked(JobStatus job) argument
657 isReadyToBeCancelledLocked(JobStatus job) argument
714 enforceValidJobRequest(int uid, JobInfo job) argument
758 schedule(JobInfo job) argument
[all...]
H A DJobServiceContext.java17 package com.android.server.job;
20 import android.app.job.JobParameters;
21 import android.app.job.IJobCallback;
22 import android.app.job.IJobService;
42 import com.android.server.job.controllers.JobStatus;
47 * Handles client binding and lifecycle of a job. Jobs execute one at a time on an instance of this
51 * {@link com.android.server.job.JobSchedulerService}. To execute a job and to cancel a job.
52 * - Execution of a new job i
148 executeRunnableJob(JobStatus job) argument
[all...]
H A DJobStore.java17 package com.android.server.job;
20 import android.app.job.JobInfo;
36 import com.android.server.job.controllers.JobStatus;
53 * Maintains the master list of jobs that the job scheduler is tracking. These jobs are compared by
59 * This is important b/c {@link com.android.server.job.JobStore.WriteJobsMapToDiskRunnable}
60 * and {@link com.android.server.job.JobStore.ReadJobMapFromDiskRunnable} lock on that
92 * @return A freshly initialized job store object, with no loaded jobs.
102 * Construct the instance of the job store. This results in a blocking read from disk.
109 File jobDir = new File(systemDir, "job");
119 * Add a job t
[all...]
/frameworks/base/core/java/android/app/
H A DJobSchedulerImpl.java20 import android.app.job.JobInfo;
21 import android.app.job.JobScheduler;
22 import android.app.job.IJobScheduler;
40 public int schedule(JobInfo job) { argument
42 return mBinder.schedule(job);
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DStateController.java17 package com.android.server.job.controllers;
21 import com.android.server.job.JobSchedulerService;
22 import com.android.server.job.StateChangedListener;
42 * Implement the logic here to decide whether a job should be tracked by this controller.
H A DConnectivityController.java17 package com.android.server.job.controllers;
31 import com.android.server.job.JobSchedulerService;
32 import com.android.server.job.StateChangedListener;
H A DJobStatus.java17 package com.android.server.job.controllers;
19 import android.app.job.JobInfo;
30 * Uniquely identifies a job internally.
31 * Created from the public {@link android.app.job.JobInfo} object when it lands on the scheduler.
32 * Contains current state of the requirements of the job, as well as a function to evaluate
44 final JobInfo job; field in class:JobStatus
45 /** Uid of the package requesting this job. */
59 * Earliest point in the future at which this job will be eligible to run. A value of 0
64 * Latest point in the future at which this job must be run. A value of {@link Long#MAX_VALUE}
68 /** How many times this job ha
76 JobStatus(JobInfo job, int uId, int numFailures) argument
85 JobStatus(JobInfo job, int uId) argument
108 JobStatus(JobInfo job, int uId, long earliestRunTimeElapsedMillis, long latestRunTimeElapsedMillis) argument
[all...]
H A DTimeController.java17 package com.android.server.job.controllers;
28 import com.android.server.job.JobSchedulerService;
29 import com.android.server.job.StateChangedListener;
38 * This class sets an alarm for the next expiring job, and determines whether a job's minimum
48 /** Set an alarm for the next job expiry. */
50 /** Set an alarm for the next job delay expiry. This*/
87 * Check if the job has a timing constraint, and if so determine where to insert it in our
91 public synchronized void maybeStartTrackingJob(JobStatus job) { argument
92 if (job
121 maybeStopTrackingJob(JobStatus job) argument
134 canStopTrackingJob(JobStatus job) argument
[all...]
H A DBatteryController.java17 package com.android.server.job.controllers;
32 import com.android.server.job.JobSchedulerService;
33 import com.android.server.job.StateChangedListener;
H A DIdleController.java17 package com.android.server.job.controllers;
32 import com.android.server.job.JobSchedulerService;
33 import com.android.server.job.StateChangedListener;
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java1 package com.android.server.job;
6 import android.app.job.JobInfo;
7 import android.app.job.JobInfo.Builder;
14 import com.android.server.job.controllers.JobStatus;
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
H A DTestJobService.java19 import android.app.job.JobInfo;
20 import android.app.job.JobScheduler;
21 import android.app.job.JobParameters;
22 import android.app.job.JobService;
84 Log.i(TAG, "on start job: " + params.getJobId());
93 this, "On start job: '" + params.getJobId() + "' deadline exceeded: " +
103 Log.i(TAG, "on stop job: " + params.getJobId());
119 /** Send job to the JobScheduler. */
120 public void scheduleJob(JobInfo job) { argument
121 Log.d(TAG, "Scheduling job "
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DDispatchThread.java46 * Queues up the job.
48 * @param job The job to run.
50 public void runJob(Runnable job) { argument
53 "Trying to run job on interrupted dispatcher thread");
57 throw new RuntimeException("Camera master thread job queue full");
60 mJobQueue.add(job);
66 * Queues up the job and wait for it to be done.
68 * @param job The job t
73 runJobSync(final Runnable job, Object waitLock, long timeoutMs, String jobMsg) argument
[all...]

Completed in 489 milliseconds