@Test public void testScheduleRunsService() { scheduler.schedule(job); assertEquals(shadowOf(application).getNextStartedService().getComponent().getClassName(), AlarmJobService.class.getName()); }
@Override public int schedule(JobInfo job) { AlarmJobService.start(context); return RESULT_SUCCESS; }
AlarmScheduler extends Scheduler { @Override public int schedule(JobInfo job) { AlarmJobService.start(context); return RESULT_SUCCESS; } }
AlarmScheduler extends Scheduler { @Override public int schedule(JobInfo job) { AlarmJobService.start(context); return RESULT_SUCCESS; } AlarmScheduler(Context context); }
AlarmScheduler extends Scheduler { @Override public int schedule(JobInfo job) { AlarmJobService.start(context); return RESULT_SUCCESS; } AlarmScheduler(Context context); @Override int schedule(JobInfo job); @Override void cancel(int jobId); @Override void cancelAll(); @Override void onJobCompleted(int jobId, boolean needsReschedule); @NonNull @Override String getTag(); @Override void onJobRescheduled(JobStatus newJob, JobStatus failedJob); }
AlarmScheduler extends Scheduler { @Override public int schedule(JobInfo job) { AlarmJobService.start(context); return RESULT_SUCCESS; } AlarmScheduler(Context context); @Override int schedule(JobInfo job); @Override void cancel(int jobId); @Override void cancelAll(); @Override void onJobCompleted(int jobId, boolean needsReschedule); @NonNull @Override String getTag(); @Override void onJobRescheduled(JobStatus newJob, JobStatus failedJob); static final String TAG; }