Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/print/src/android/print/cts/
DInterfaceForAppsTest.java115 android.printservice.PrintJob job = (android.printservice.PrintJob) invocation in createFirstMockPrinterServiceCallbacks()
121 job.getInfo().getState())); in createFirstMockPrinterServiceCallbacks()
124 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
125 job.start(); in createFirstMockPrinterServiceCallbacks()
128 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
131 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
132 job.start(); in createFirstMockPrinterServiceCallbacks()
133 job.block("test block"); in createFirstMockPrinterServiceCallbacks()
136 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
137 job.start(); in createFirstMockPrinterServiceCallbacks()
[all …]
DPrintJobStateTransitionsTest.java152 private static boolean setState(PrintJob job, int state) {
156 return job.isQueued();
158 return job.start();
160 return job.block(null);
162 return job.complete();
164 return job.fail(null);
166 return job.cancel();
216 private static void checkState(PrintJob job, int state) throws Throwable {
217 eventually(() -> assertEquals(state, job.getInfo().getState()));
220 eventually(() -> assertTrue(job.isQueued()));
[all …]
DPrintJobTest.java193 private static void checkState(PrintJob job, int state) throws Throwable {
194 eventually(() -> assertEquals(state, job.getInfo().getState()));
197 eventually(() -> assertTrue(job.isQueued()));
200 eventually(() -> assertTrue(job.isStarted()));
203 eventually(() -> assertTrue(job.isBlocked()));
206 eventually(() -> assertTrue(job.isCompleted()));
209 eventually(() -> assertTrue(job.isFailed()));
212 eventually(() -> assertTrue(job.isCancelled()));
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
DAtomTests.java27 import android.app.job.JobInfo;
28 import android.app.job.JobScheduler;
332 JobInfo job = builder.build(); in testScheduledJob() local
336 js.schedule(job); in testScheduledJob()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DTimeout.java139 public <T> T run(String description, Callable<T> job) throws Exception { in run() argument
140 return run(description, 100, job); in run()
157 public <T> T run(String description, long retryMs, Callable<T> job) throws Exception { in run() argument
161 if (job == null) { in run()
171 final T result = job.call(); in run()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DTimeout.java139 public <T> T run(String description, Callable<T> job) throws Exception { in run() argument
140 return run(description, 100, job); in run()
157 public <T> T run(String description, long retryMs, Callable<T> job) throws Exception { in run() argument
161 if (job == null) { in run()
171 final T result = job.call(); in run()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
DBatteryStatsJobDurationTests.java21 import android.app.job.JobInfo;
22 import android.app.job.JobScheduler;
59 final JobInfo job = createJobInfo(1); in testJobDuration() local
63 js.schedule(job); in testJobDuration()
DBatteryStatsBgVsFgActions.java28 import android.app.job.JobInfo;
29 import android.app.job.JobScheduler;
275 final JobInfo job = (new JobInfo.Builder(1, JOB_COMPONENT_NAME)) in doScheduleJob() local
279 js.schedule(job); in doScheduleJob()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraContentJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
DCameraIntentsActivity.java18 import android.app.job.JobInfo;
19 import android.app.job.JobParameters;
20 import android.app.job.JobScheduler;
616 JobInfo job = makeJobInfo(TEST_JOB_TYPES[stageIndex]); in onClick() local
617 jobScheduler.schedule(job); in onClick()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTimingConstraintsTest.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
61 JobInfo job = new JobInfo.Builder(ZERO_DELAY_JOB_ID, kJobServiceComponent) in testExplicitZeroLatency() local
67 mJobScheduler.schedule(job); in testExplicitZeroLatency()
/cts/hostsidetests/incident/src/com/android/server/cts/
DJobSchedulerIncidentTest.java19 import android.app.job.StopReasonEnum;
22 import com.android.server.job.ConstantsProto;
23 import com.android.server.job.ConstraintEnum;
24 import com.android.server.job.DataSetProto;
25 import com.android.server.job.JobPackageHistoryProto;
26 import com.android.server.job.JobPackageTrackerDumpProto;
27 import com.android.server.job.JobSchedulerServiceDumpProto;
28 import com.android.server.job.JobStatusDumpProto;
29 import com.android.server.job.JobStatusShortInfoProto;
30 import com.android.server.job.StateControllerProto;
/cts/tests/JobScheduler/src/android/jobscheduler/
DTriggerContentJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
DMockJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
24 import android.app.job.JobWorkItem;
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DTriggerContentJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
DMockJobService.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
24 import android.app.job.JobWorkItem;
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java73 import com.android.server.job.nano.JobSchedulerServiceDumpProto;
74 import com.android.server.job.nano.JobSchedulerServiceDumpProto.RegisteredJob;
459 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
460 if (job.dump.sourceUserId == currentUserId) { in resetPermissionController()
461 assertNotEquals(job.dump.sourcePackageName, PERMISSION_CONTROLLER_PKG); in resetPermissionController()
485 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
486 if (job.dump.sourceUserId == currentUserId in resetPermissionController()
487 && job.dump.sourcePackageName.equals(PERMISSION_CONTROLLER_PKG)) { in resetPermissionController()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java153 for (android.print.PrintJob job : pm.getPrintJobs()) { in getPrintJob()
154 if (job.getInfo().getLabel().equals(name)) { in getPrintJob()
155 return job; in getPrintJob()
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobService.java19 import android.app.job.JobParameters;
20 import android.app.job.JobService;
DTestJobSchedulerReceiver.java19 import android.app.job.JobInfo;
20 import android.app.job.JobScheduler;
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobService.java19 import android.app.job.JobParameters;
20 import android.app.job.JobService;
DTestJobSchedulerReceiver.java19 import android.app.job.JobInfo;
20 import android.app.job.JobScheduler;
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DSharedUidTest.java19 import android.app.job.JobInfo;
20 import android.app.job.JobScheduler;

12