Home
last modified time | relevance | path

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

123

/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/securitybulletin/securityPatch/CVE-2019-2228/
Dpoc.c73 ipp_t *job = ippNew(); in main() local
74 if (!job) { in main()
77 ippReadFile(file_desc, job); in main()
79 if (job) { in main()
80 free(job); in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeChecker.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
102 JobParameters job = (JobParameters) msg.obj;
105 mTaskMap.remove(job.getJobId());
106 jobFinished(job, false);
110 GarageModeCheckerTask task = new GarageModeCheckerTask(this, job, msg.arg1);
112 mTaskMap.put(job.getJobId(), job);
115 JobParameters runningJob = mTaskMap.get(job.getJobId());
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DTestJob.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
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;
/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()
/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;
/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/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;
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTimingConstraintsTest.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
92 JobInfo job = new JobInfo.Builder(ZERO_DELAY_JOB_ID, kJobServiceComponent) in testExplicitZeroLatency() local
98 mJobScheduler.schedule(job); in testExplicitZeroLatency()
DJobWorkItemTest.java19 import android.app.job.JobInfo;
20 import android.app.job.JobWorkItem;
/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;
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java35 import static com.android.server.job.nano.JobPackageHistoryProto.START_PERIODIC_JOB;
36 import static com.android.server.job.nano.JobPackageHistoryProto.STOP_JOB;
86 import com.android.server.job.nano.JobPackageHistoryProto;
87 import com.android.server.job.nano.JobSchedulerServiceDumpProto;
88 import com.android.server.job.nano.JobSchedulerServiceDumpProto.RegisteredJob;
578 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
579 if (job.dump.sourceUserId == currentUserId) { in resetPermissionController()
580 assertNotEquals(job.dump.sourcePackageName, PERMISSION_CONTROLLER_PKG); in resetPermissionController()
605 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
606 if (job.dump.sourceUserId == currentUserId in resetPermissionController()
[all …]
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/
DTriggerScanAndReturnStatusService.java19 import android.app.job.JobParameters;
20 import android.app.job.JobService;
DRetrieveScanResultsAndReturnStatusService.java19 import android.app.job.JobParameters;
20 import android.app.job.JobService;
DRetrieveTransportInfoAndReturnStatusService.java21 import android.app.job.JobParameters;
22 import android.app.job.JobService;
DRetrieveConnectionInfoAndReturnStatusService.java19 import android.app.job.JobParameters;
20 import android.app.job.JobService;
DScheduleJobActivity.java20 import android.app.job.JobInfo;
21 import android.app.job.JobScheduler;
/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/hostsidetests/backup/src/android/cts/backup/
DProfileScheduledJobHostSideTest.java25 import com.android.server.job.JobSchedulerServiceDumpProto;
26 import com.android.server.job.JobStatusShortInfoProto;
204 for (JobSchedulerServiceDumpProto.RegisteredJob job : dump.getRegisteredJobsList()) { in isSystemJobScheduled()
205 final JobStatusShortInfoProto info = job.getInfo(); in isSystemJobScheduled()
/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()

123