Home
last modified time | relevance | path

Searched full:jobscheduler (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowJobSchedulerTest.java11 import android.app.job.JobScheduler;
27 private JobScheduler jobScheduler; field in ShadowJobSchedulerTest
33 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 …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/scheduler/
DPlatformScheduler.java20 import android.app.job.JobScheduler;
33 * A {@link Scheduler} that uses {@link JobScheduler}. To use this scheduler, you must add {@link
56 private final JobScheduler jobScheduler; field in PlatformScheduler
70 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()
/external/autotest/server/site_tests/cheets_CTS_R/manual_tests/
Dwifi.yaml10 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 …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowJobScheduler.java9 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()
/external/downloader/src/main/java/com/google/android/downloader/
DDownloader.java84 * android.app.job.JobScheduler} mechanism).