/** * Creates a recurring storage cleaning task. * * @param context {@link Context} * @param jobService {@link JobService} */ public CleanUpStorageTask(Context context, JobService jobService) { mContext = context; mDvrStorageStatusManager = TvApplication.getSingletons(mContext).getDvrStorageStatusManager(); mJobService = jobService; mContentResolver = mContext.getContentResolver(); }
public SyncTask(JobService jobService) { this.jobService = jobService; }
public EventListener(JobService service, JobParameters jobParameters, EventBus bus) { this.service = service; this.jobParameters = jobParameters; this.bus = bus; }
public DownloadTask(JobService jobService) { this.jobService = jobService; }
public JobManager(final int id, @NonNull final Class<? extends JobService> cls) { mId = id; final ComponentName componentName = new ComponentName(ContextHelper.applicationContext(), cls.getClass()); mBuilder = new JobInfo.Builder(id, componentName); }