Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java57 import android.app.job.JobInfo;
173 final JobInfo jobInfo = in testCanRunInBatterySaver_regular()
174 new JobInfo.Builder(101, new ComponentName("foo", "bar")).build(); in testCanRunInBatterySaver_regular()
183 final JobInfo jobInfo = in testCanRunInBatterySaver_expedited()
184 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testCanRunInBatterySaver_expedited()
206 final JobInfo jobInfo = in testCanRunInBatterySaver_userInitiated()
207 new JobInfo.Builder(101, new ComponentName("foo", "bar")) in testCanRunInBatterySaver_userInitiated()
209 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testCanRunInBatterySaver_userInitiated()
220 final JobInfo jobInfo = in testCanRunInDoze_regular()
221 new JobInfo.Builder(101, new ComponentName("foo", "bar")).build(); in testCanRunInDoze_regular()
[all …]
DFlexibilityControllerTest.java19 import static android.app.job.JobInfo.BIAS_FOREGROUND_SERVICE;
20 import static android.app.job.JobInfo.BIAS_TOP_APP;
21 import static android.app.job.JobInfo.NETWORK_TYPE_ANY;
22 import static android.app.job.JobInfo.NETWORK_TYPE_CELLULAR;
23 import static android.app.job.JobInfo.NETWORK_TYPE_NONE;
72 import android.app.job.JobInfo;
270 private static JobInfo.Builder createJob(int id) { in createJob()
271 return new JobInfo.Builder(id, new ComponentName("foo", "bar")); in createJob()
274 private JobStatus createJobStatus(String testTag, JobInfo.Builder job) { in createJobStatus()
278 private JobStatus createJobStatus(String testTag, JobInfo.Builder job, String sourcePackage) { in createJobStatus()
[all …]
DBatteryControllerTest.java30 import android.app.job.JobInfo;
174 private JobInfo.Builder createBaseJobInfoBuilder(int jobId) { in createBaseJobInfoBuilder()
175 return new JobInfo.Builder(jobId, new ComponentName(mContext, "TestBatteryJobService")); in createBaseJobInfoBuilder()
178 private JobInfo.Builder createBaseJobInfoBuilder(int jobId, String pkgName) { in createBaseJobInfoBuilder()
179 return new JobInfo.Builder(jobId, new ComponentName(pkgName, "TestBatteryJobService")); in createBaseJobInfoBuilder()
183 JobInfo jobInfo) { in createJobStatus()
302 .setPriority(JobInfo.PRIORITY_LOW) in testTopPowerConnectedExemption()
316 .setPriority(JobInfo.PRIORITY_MIN) in testTopPowerConnectedExemption()
321 setUidBias(uid1, JobInfo.BIAS_TOP_APP); in testTopPowerConnectedExemption()
322 setUidBias(uid2, JobInfo.BIAS_DEFAULT); in testTopPowerConnectedExemption()
[all …]
DConnectivityControllerTest.java66 import android.app.job.JobInfo;
191 final JobInfo.Builder job = createJob() in testUsable()
194 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testUsable()
195 final JobInfo.Builder jobWithMinChunk = createJob() in testUsable()
199 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testUsable()
304 final JobInfo.Builder job = createJob() in testInsane()
307 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testInsane()
329 final JobInfo.Builder job = createJob() in testCongestion()
332 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testCongestion()
359 final JobInfo.Builder jobBuilder = createJob() in testMeteredAllowed()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DBiasSchedulingTest.java20 import android.app.job.JobInfo;
46 private static final int HIGH_BIAS = JobInfo.BIAS_BOUND_FOREGROUND_SERVICE + 1;
47 private static final int LOW_BIAS = JobInfo.BIAS_BOUND_FOREGROUND_SERVICE;
66 @CoreCompatChangeRule.DisableCompatChanges({JobInfo.ENFORCE_MINIMUM_TIME_WINDOWS})
69 JobInfo job = new JobInfo.Builder(100 + i, sJobServiceComponent) in testLowerBiasJobPreempted()
76 JobInfo jobHigher = new JobInfo.Builder(higherBiasJobId, sJobServiceComponent) in testLowerBiasJobPreempted()
98 @CoreCompatChangeRule.DisableCompatChanges({JobInfo.ENFORCE_MINIMUM_TIME_WINDOWS})
101 JobInfo job = new JobInfo.Builder(100 + i, sJobServiceComponent) in testHigherBiasJobNotPreempted()
108 JobInfo jobLower = new JobInfo.Builder(lowerBiasJobId, sJobServiceComponent) in testHigherBiasJobNotPreempted()
DJobStoreTest.java22 import android.app.job.JobInfo;
23 import android.app.job.JobInfo.Builder;
136 final JobInfo task1 = new Builder(8, mComponent) in runRemovingLastJob()
142 final JobInfo task2 = new Builder(12, mComponent) in runRemovingLastJob()
144 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in runRemovingLastJob()
146 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in runRemovingLastJob()
189 final JobInfo task1 = new Builder(8, mComponent) in runClearJobs()
195 final JobInfo task2 = new Builder(12, mComponent) in runClearJobs()
197 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in runClearJobs()
199 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in runClearJobs()
[all …]
DPendingJobQueueTest.java19 import static android.app.job.JobInfo.NETWORK_TYPE_ANY;
20 import static android.app.job.JobInfo.NETWORK_TYPE_NONE;
29 import android.app.job.JobInfo;
49 JobInfo.PRIORITY_HIGH, JobInfo.PRIORITY_DEFAULT,
50 JobInfo.PRIORITY_LOW, JobInfo.PRIORITY_MIN
53 private static JobInfo.Builder createJobInfo(int jobId) { in createJobInfo()
54 return new JobInfo.Builder(jobId, new ComponentName("foo", "bar")); in createJobInfo()
57 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
62 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
135 createJobInfo(4).setPriority(JobInfo.PRIORITY_MIN), 2); in testContains()
[all …]
/frameworks/base/apex/jobscheduler/framework/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.aidl20 import android.app.job.JobInfo;
31 int schedule(String namespace, in JobInfo job); in schedule()
32 int enqueue(String namespace, in JobInfo job, in JobWorkItem work); in enqueue()
33 …int scheduleAsPackage(String namespace, in JobInfo job, String packageName, int userId, String tag… in scheduleAsPackage()
38 Map<String, ParceledListSlice<JobInfo>> getAllPendingJobs(); in getAllPendingJobs()
39 ParceledListSlice<JobInfo> getAllPendingJobsInNamespace(String namespace); in getAllPendingJobsInNamespace()
40 JobInfo getPendingJob(String namespace, int jobId); in getPendingJob()
44 List<JobInfo> getStartedJobs(); in getStartedJobs()
DJobScheduler.java322 public abstract @Result int schedule(@NonNull JobInfo job); in schedule()
379 public abstract @Result int enqueue(@NonNull JobInfo job, @NonNull JobWorkItem work); in enqueue()
393 public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, in scheduleAsPackage()
434 public abstract @NonNull List<JobInfo> getAllPendingJobs(); in getAllPendingJobs()
446 public Map<String, List<JobInfo>> getPendingJobsInAllNamespaces() { in getPendingJobsInAllNamespaces()
456 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob()
495 public List<JobInfo> getStartedJobs() { in getStartedJobs()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/
DThermalStatusRestriction.java19 import android.app.job.JobInfo;
91 if (bias >= JobInfo.BIAS_TOP_APP) { in isJobRestricted()
96 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE) { in isJobRestricted()
126 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE in isJobRestricted()
133 if (priority == JobInfo.PRIORITY_HIGH) { in isJobRestricted()
141 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE) { in isJobRestricted()
149 return priority == JobInfo.PRIORITY_MIN in isJobRestricted()
150 || (priority == JobInfo.PRIORITY_LOW in isJobRestricted()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DJobSchedulerImpl.java24 import android.app.job.JobInfo;
85 public int schedule(JobInfo job) { in schedule()
94 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue()
103 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage()
133 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs()
142 public Map<String, List<JobInfo>> getPendingJobsInAllNamespaces() { in getPendingJobsInAllNamespaces()
144 final Map<String, ParceledListSlice<JobInfo>> parceledList = in getPendingJobsInAllNamespaces()
146 final ArrayMap<String, List<JobInfo>> jobMap = new ArrayMap<>(); in getPendingJobsInAllNamespaces()
158 public JobInfo getPendingJob(int jobId) { in getPendingJob()
194 public List<JobInfo> getStartedJobs() { in getStartedJobs()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsIdleService.java19 import android.app.job.JobInfo;
56 final JobInfo pruneJob = new JobInfo.Builder(userId, component) in schedulePruneJob()
70 final JobInfo updateMappingsJob = new JobInfo.Builder(userId, component) in scheduleUpdateMappingsJob()
80 private static void scheduleJobInternal(Context context, JobInfo jobInfo, in scheduleJobInternal()
84 final JobInfo pendingJob = jobScheduler.getPendingJob(jobId); in scheduleJobInternal()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java31 import android.app.job.JobInfo;
109 public static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; // 1 < 0
110 public static final int CONSTRAINT_IDLE = JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE; // 1 << 2
112 JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; // 1 << 1
115 JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW; // 1 << 3
237 final JobInfo job;
524 private long mTotalNetworkDownloadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
525 private long mTotalNetworkUploadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
526 private long mMinimumNetworkChunkBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
603 private JobStatus(JobInfo job, int callingUid, String sourcePackageName, in JobStatus()
[all …]
DContentObserverController.java22 import android.app.job.JobInfo;
68 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers =
215 final JobInfo.TriggerContentUri mUri;
219 public ObserverInstance(Handler handler, JobInfo.TriggerContentUri uri, in ObserverInstance()
279 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance()
281 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observersOfUser = in JobInstance()
288 for (JobInfo.TriggerContentUri uri : uris) { in JobInstance()
294 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
309 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
372 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/mockingservicestests/src/com/android/server/job/restrictions/
DThermalStatusRestrictionTest.java43 import android.app.job.JobInfo;
111 JobInfo.BIAS_ADJ_ALWAYS_RUNNING,
112 JobInfo.BIAS_ADJ_OFTEN_RUNNING,
113 JobInfo.BIAS_DEFAULT,
114 JobInfo.BIAS_SYNC_EXPEDITED,
115 JobInfo.BIAS_SYNC_INITIALIZATION,
116 JobInfo.BIAS_BOUND_FOREGROUND_SERVICE,
117 JobInfo.BIAS_FOREGROUND_SERVICE,
118 JobInfo.BIAS_TOP_APP
121 JobInfo.BIAS_ADJ_ALWAYS_RUNNING,
[all …]
/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/services/core/java/com/android/server/notification/
DReviewNotificationPermissionsJobService.java19 import android.app.job.JobInfo;
47 JobInfo newJob = new JobInfo.Builder(JOB_ID, component) in scheduleJob()
DNotificationHistoryJobService.java21 import android.app.job.JobInfo;
50 JobInfo newJob = new JobInfo.Builder(BASE_JOB_ID, component) 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()
/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/companion/java/com/android/server/companion/association/
DInactiveAssociationsRemovalService.java21 import android.app.job.JobInfo;
72 final JobInfo job = new JobInfo.Builder(JOB_ID, in schedule()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreIdleJobService.java22 import android.app.job.JobInfo;
60 final JobInfo job = new JobInfo.Builder(IDLE_JOB_ID, in schedule()

1234