Home
last modified time | relevance | path

Searched refs:JobInfo (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPrioritySchedulingTest.java20 import android.app.job.JobInfo;
54 JobInfo job1 = new JobInfo.Builder(111, kJobServiceComponent) in testLowerPriorityJobPreempted()
58 JobInfo job2 = new JobInfo.Builder(222, kJobServiceComponent) in testLowerPriorityJobPreempted()
62 JobInfo job3 = new JobInfo.Builder(333, kJobServiceComponent) in testLowerPriorityJobPreempted()
66 JobInfo job4 = new JobInfo.Builder(444, kJobServiceComponent) in testLowerPriorityJobPreempted()
92 JobInfo job1 = new JobInfo.Builder(111, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
96 JobInfo job2 = new JobInfo.Builder(222, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
100 JobInfo job3 = new JobInfo.Builder(333, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
104 JobInfo job4 = new JobInfo.Builder(444, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
DJobStoreTest.java14 import android.app.job.JobInfo;
15 import android.app.job.JobInfo.Builder;
111 final JobInfo task = new Builder(taskId, mComponent) in testMaybeWriteStatusToDisk()
113 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMaybeWriteStatusToDisk()
114 .setBackoffCriteria(initialBackoff, JobInfo.BACKOFF_POLICY_EXPONENTIAL) in testMaybeWriteStatusToDisk()
143 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk()
149 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk()
151 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in testWritingTwoFilesToDisk()
153 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testWritingTwoFilesToDisk()
193 JobInfo.Builder b = new Builder(8, mComponent) in testWritingTaskWithExtras()
[all …]
/frameworks/base/core/java/android/app/job/
DJobSnapshot.java32 private final JobInfo mJob;
36 public JobSnapshot(JobInfo info, int satisfiedMask, boolean runnable) { in JobSnapshot()
43 mJob = JobInfo.CREATOR.createFromParcel(in); in JobSnapshot()
56 public JobInfo getJobInfo() { in getJobInfo()
72 || satisfied(JobInfo.CONSTRAINT_FLAG_CHARGING); in isChargingSatisfied()
80 || satisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW); in isBatteryNotLowSatisfied()
88 || satisfied(JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE); in isRequireDeviceIdleSatisfied()
93 || satisfied(JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW); in isRequireStorageNotLowSatisfied()
DIJobScheduler.aidl19 import android.app.job.JobInfo;
29 int schedule(in JobInfo job); in schedule()
30 int enqueue(in JobInfo job, in JobWorkItem work); in enqueue()
31 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage()
35 JobInfo getPendingJob(int jobId); in getPendingJob()
36 List<JobInfo> getStartedJobs(); in getStartedJobs()
DJobScheduler.java91 public abstract @Result int schedule(@NonNull JobInfo job); in schedule()
128 public abstract @Result int enqueue(@NonNull JobInfo job, @NonNull JobWorkItem work); in enqueue()
141 public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, in scheduleAsPackage()
166 public abstract @NonNull List<JobInfo> getAllPendingJobs(); in getAllPendingJobs()
174 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob()
181 public abstract List<JobInfo> getStartedJobs(); in getStartedJobs()
DJobInfo.java60 public class JobInfo implements Parcelable { class
630 if (!(o instanceof JobInfo)) { in equals()
633 JobInfo j = (JobInfo) o; in equals()
758 private JobInfo(Parcel in) { in JobInfo() method in JobInfo
795 private JobInfo(JobInfo.Builder b) { in JobInfo() method in JobInfo
869 …public static final @android.annotation.NonNull Creator<JobInfo> CREATOR = new Creator<JobInfo>() {
871 public JobInfo createFromParcel(Parcel in) {
872 return new JobInfo(in);
876 public JobInfo[] newArray(int size) {
877 return new JobInfo[size];
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java38 import android.app.job.JobInfo;
124 new JobInfo.Builder(101, new ComponentName("foo", "bar")).build()); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
149 final JobInfo jobInfo = in testWouldBeReadyWithConstraint_RequestedCharging()
150 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testWouldBeReadyWithConstraint_RequestedCharging()
170 final JobInfo jobInfo = in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
171 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
191 final JobInfo jobInfo = in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
192 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
212 final JobInfo jobInfo = in testWouldBeReadyWithConstraint_RequestedStorageNotLow()
213 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testWouldBeReadyWithConstraint_RequestedStorageNotLow()
[all …]
DConnectivityControllerTest.java43 import android.app.job.JobInfo;
136 final JobInfo.Builder job = createJob() in testInsane()
138 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testInsane()
153 final JobInfo.Builder job = createJob() in testCongestion()
155 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testCongestion()
180 final JobInfo.Builder job = createJob() in testRelaxed()
182 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in testRelaxed()
230 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED), UID_RED); in testUpdates()
233 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY), UID_BLUE); in testUpdates()
302 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED), UID_RED); in testRequestStandbyExceptionLocked()
[all …]
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java21 import android.app.job.JobInfo;
41 public int schedule(JobInfo job) { in schedule()
50 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue()
59 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage()
84 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs()
93 public JobInfo getPendingJob(int jobId) { in getPendingJob()
102 public List<JobInfo> getStartedJobs() { in getStartedJobs()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java23 import android.app.job.JobInfo;
73 static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; // 1 < 0
74 static final int CONSTRAINT_IDLE = JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE; // 1 << 2
75 static final int CONSTRAINT_BATTERY_NOT_LOW = JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; // 1 << 1
76 static final int CONSTRAINT_STORAGE_NOT_LOW = JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW; // 1 << 3
127 final JobInfo job;
308 private long totalNetworkBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
365 private JobStatus(JobInfo job, int callingUid, int targetSdkVersion, String sourcePackageName, in JobStatus()
421 mReadyNotDozing = (job.getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0; in JobStatus()
464 public JobStatus(JobInfo job, int callingUid, String sourcePkgName, int sourceUserId, in JobStatus()
[all …]
DContentObserverController.java20 import android.app.job.JobInfo;
65 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers =
191 final JobInfo.TriggerContentUri mUri;
195 public ObserverInstance(Handler handler, JobInfo.TriggerContentUri uri, in ObserverInstance()
255 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance()
257 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observersOfUser = in JobInstance()
264 for (JobInfo.TriggerContentUri uri : uris) { in JobInstance()
270 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
285 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
345 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observerOfUser = in detachLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java20 import android.app.job.JobInfo;
45 JobInfo pending = jobScheduler.getPendingJob(JOB_ID); in scheduleJob()
46 JobInfo jobInfo = in scheduleJob()
47 new JobInfo.Builder(JOB_ID, new ComponentName(context, BrightnessIdleJob.class)) in scheduleJob()
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobActivity.java20 import android.app.job.JobInfo;
51 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent) in onCreate()
52 .setBackoffCriteria(JOB_INITIAL_BACKOFF, JobInfo.BACKOFF_POLICY_LINEAR) in onCreate()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java19 import android.app.job.JobInfo;
103 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision()
105 .addTriggerContentUri(new JobInfo.TriggerContentUri( in isDeferredForProvision()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java20 import android.app.job.JobInfo;
135 JobInfo.Builder builder = new JobInfo.Builder(kJobId++, mServiceComponent); in scheduleJob()
149 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in scheduleJob()
151 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_METERED); in scheduleJob()
153 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in scheduleJob()
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java19 import android.app.job.JobInfo;
39 JobInfo pruneJob = new JobInfo.Builder(JOB_ID, new ComponentName( in schedule()
DPreloadsFileCacheExpirationJobService.java19 import android.app.job.JobInfo;
63 JobInfo expirationJob = new JobInfo.Builder(JOB_ID, in schedule()
DZramWriteback.java19 import android.app.job.JobInfo;
129 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in schedNextWriteback()
178 js.schedule(new JobInfo.Builder(MARK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
186 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
DMountServiceIdler.java22 import android.app.job.JobInfo;
113 JobInfo.Builder builder = new JobInfo.Builder(MOUNT_JOB_ID, sIdleService); in scheduleIdlePass()
/frameworks/base/services/core/java/com/android/server/timezone/
DTimeZoneUpdateIdler.java21 import android.app.job.JobInfo;
79 JobInfo.Builder jobInfoBuilder = in schedule()
80 new JobInfo.Builder(TIME_ZONE_UPDATE_IDLE_JOB_ID, idlerJobServiceName) in schedule()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java19 import android.app.job.JobInfo;
48 JobInfo.Builder builder = new JobInfo.Builder(getJobIdForUserId(userId), sIdleService); in schedule()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerInternal.java20 import android.app.job.JobInfo;
58 List<JobInfo> getSystemScheduledPendingJobs(); in getSystemScheduledPendingJobs()
DJobSchedulerService.java32 import android.app.job.JobInfo;
480 private static final long DEFAULT_MIN_LINEAR_BACKOFF_TIME = JobInfo.MIN_BACKOFF_MILLIS;
481 private static final long DEFAULT_MIN_EXP_BACKOFF_TIME = JobInfo.MIN_BACKOFF_MILLIS;
995 public int scheduleAsPackage(JobInfo job, JobWorkItem work, int uId, String packageName, in scheduleAsPackage()
1085 public List<JobInfo> getPendingJobs(int uid) { in getPendingJobs()
1088 ArrayList<JobInfo> outList = new ArrayList<JobInfo>(jobs.size()); in getPendingJobs()
1097 public JobInfo getPendingJob(int uid, int jobId) { in getPendingJob()
1218 mUidPriorityOverride.put(uid, JobInfo.PRIORITY_TOP_APP); in updateUidState()
1220 mUidPriorityOverride.put(uid, JobInfo.PRIORITY_FOREGROUND_SERVICE); in updateUidState()
1222 mUidPriorityOverride.put(uid, JobInfo.PRIORITY_BOUND_FOREGROUND_SERVICE); in updateUidState()
[all …]
/frameworks/base/services/core/java/com/android/server/camera/
DCameraStatsJobService.java19 import android.app.job.JobInfo;
70 js.schedule(new JobInfo.Builder(CAMERA_REPORTING_JOB_ID, sCameraStatsJobServiceName) in schedule()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DReportWatchlistJobService.java19 import android.app.job.JobInfo;
66 scheduler.schedule(new JobInfo.Builder(REPORT_WATCHLIST_RECORDS_JOB_ID, in schedule()

123