FileDocCategorySizeDatePackage
FullBackupJob.javaAPI DocAndroid 5.1 API2512Thu Mar 12 22:22:42 GMT 2015com.android.server.backup

FullBackupJob

public class FullBackupJob extends android.app.job.JobService

Fields Summary
private static final String
TAG
private static final boolean
DEBUG
private static android.content.ComponentName
sIdleService
private static final int
JOB_ID
android.app.job.JobParameters
mParams
Constructors Summary
Methods Summary
public voidfinishBackupPass()

        if (mParams != null) {
            jobFinished(mParams, false);
            mParams = null;
        }
    
public booleanonStartJob(android.app.job.JobParameters params)

        mParams = params;
        Trampoline service = BackupManagerService.getInstance();
        return service.beginFullBackup(this);
    
public booleanonStopJob(android.app.job.JobParameters params)

        if (mParams != null) {
            mParams = null;
            Trampoline service = BackupManagerService.getInstance();
            service.endFullBackup();
        }
        return false;
    
public static voidschedule(android.content.Context ctx, long minDelay)


           
        JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE);
        JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sIdleService)
                .setRequiresDeviceIdle(true)
                .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED)
                .setRequiresCharging(true);
        if (minDelay > 0) {
            builder.setMinimumLatency(minDelay);
        }
        js.schedule(builder.build());