Java 类android.app.job.JobService 实例源码
项目:android_packages_apps_tv
文件:TunerStorageCleanUpService.java
/**
* 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();
}
项目:Asynchronous-Android-Programming
文件:SyncTask.java
public SyncTask(JobService jobService) {
this.jobService = jobService;
}
项目:android-migrate-to-jobs
文件:DownloaderJobService.java
public EventListener(JobService service, JobParameters jobParameters, EventBus bus) {
this.service = service;
this.jobParameters = jobParameters;
this.bus = bus;
}
项目:shortyz
文件:BackgroundDownloadService.java
public DownloadTask(JobService jobService) {
this.jobService = jobService;
}
项目:android_Skeleton
文件:JobManager.java
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);
}