public class JobProxy21 extends Object implements JobProxy
JobProxy.Common
Modifier and Type | Field and Description |
---|---|
protected JobCat |
mCat |
protected Context |
mContext |
Modifier | Constructor and Description |
---|---|
|
JobProxy21(Context context) |
protected |
JobProxy21(Context context,
String logTag) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(int jobId) |
protected int |
convertNetworkType(JobRequest.NetworkType networkType) |
protected JobInfo.Builder |
createBaseBuilder(JobRequest request,
boolean allowPersisting) |
protected JobInfo.Builder |
createBuilderOneOff(JobInfo.Builder builder,
long startMs,
long endMs) |
protected JobInfo.Builder |
createBuilderPeriodic(JobInfo.Builder builder,
long intervalMs,
long flexMs) |
protected JobScheduler |
getJobScheduler() |
protected boolean |
isJobInfoScheduled(JobInfo info,
JobRequest request) |
boolean |
isPlatformJobScheduled(JobRequest request) |
void |
plantOneOff(JobRequest request) |
void |
plantPeriodic(JobRequest request) |
void |
plantPeriodicFlexSupport(JobRequest request) |
protected int |
schedule(JobInfo jobInfo) |
protected static String |
scheduleResultToString(int scheduleResult) |
protected JobInfo.Builder |
setTransientBundle(JobRequest request,
JobInfo.Builder builder) |
public JobProxy21(Context context)
public void plantOneOff(JobRequest request)
plantOneOff
in interface JobProxy
public void plantPeriodic(JobRequest request)
plantPeriodic
in interface JobProxy
public void plantPeriodicFlexSupport(JobRequest request)
plantPeriodicFlexSupport
in interface JobProxy
public boolean isPlatformJobScheduled(JobRequest request)
isPlatformJobScheduled
in interface JobProxy
protected boolean isJobInfoScheduled(@Nullable JobInfo info, @NonNull JobRequest request)
protected JobInfo.Builder createBaseBuilder(JobRequest request, boolean allowPersisting)
protected JobInfo.Builder createBuilderOneOff(JobInfo.Builder builder, long startMs, long endMs)
protected JobInfo.Builder createBuilderPeriodic(JobInfo.Builder builder, long intervalMs, long flexMs)
protected JobInfo.Builder setTransientBundle(JobRequest request, JobInfo.Builder builder)
protected int convertNetworkType(@NonNull JobRequest.NetworkType networkType)
protected final JobScheduler getJobScheduler()
protected final int schedule(JobInfo jobInfo)
protected static String scheduleResultToString(int scheduleResult)