Searched full:jobscheduler (Results 1 – 5 of 5) sorted by relevance
11 import android.app.job.JobScheduler;27 private JobScheduler jobScheduler; field in ShadowJobSchedulerTest33 jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in setUp()42 jobScheduler.schedule(jobInfo); in getAllPendingJobs()44 assertThat(jobScheduler.getAllPendingJobs()).contains(jobInfo); in getAllPendingJobs()49 jobScheduler.schedule( in cancelAll()53 jobScheduler.schedule( in cancelAll()58 assertThat(jobScheduler.getAllPendingJobs()).hasSize(2); in cancelAll()60 jobScheduler.cancelAll(); in cancelAll()62 assertThat(jobScheduler.getAllPendingJobs()).isEmpty(); in cancelAll()[all …]
20 import android.app.job.JobScheduler;33 * A {@link Scheduler} that uses {@link JobScheduler}. To use this scheduler, you must add {@link56 private final JobScheduler jobScheduler; field in PlatformScheduler70 jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in PlatformScheduler()77 int result = jobScheduler.schedule(jobInfo); in schedule()79 return result == JobScheduler.RESULT_SUCCESS; in schedule()85 jobScheduler.cancel(jobId); in cancel()
10 android.jobscheduler.cts.ConnectivityConstraintTest#testCellularConstraintExecutedAndStopped: [all]11 android.jobscheduler.cts.ConnectivityConstraintTest#testCellularConstraintExecutedAndStopped_Foregr…12 android.jobscheduler.cts.ConnectivityConstraintTest#testCellularConstraintFails_withWiFi: [all]13 android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_metered: [al…14 android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_transitionNe…15 android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_withWifi: [a…16 android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_withWifi_Dat…17 android.jobscheduler.cts.ConnectivityConstraintTest#testMeteredConstraintFails_withMobile_DataSaver…18 android.jobscheduler.cts.ConnectivityConstraintTest#testMeteredConstraintFails_withWiFi: [all]19 android.jobscheduler.cts.ConnectivityConstraintTest#testUnmeteredConstraintExecutes_withWifi: [all][all …]
9 import android.app.job.JobScheduler;21 @Implements(value = JobScheduler.class, minSdk = LOLLIPOP)54 return JobScheduler.RESULT_FAILURE; in schedule()58 return JobScheduler.RESULT_SUCCESS; in schedule()
84 * android.app.job.JobScheduler} mechanism).