diff options
author | Matthew Williams <mjwilliams@google.com> | 2014-08-22 14:15:28 -0700 |
---|---|---|
committer | Matthew Williams <mjwilliams@google.com> | 2014-08-22 16:08:45 -0700 |
commit | d1c06753d045ad10e00e7aba53ee2adba0712ccc (patch) | |
tree | 6a1103dfcc0b6db0dfc030aba6cdb4961e2a91c2 /services/backup | |
parent | acb570cd84b4e3503e7e96138ea0d9d236ca9b9e (diff) | |
download | frameworks_base-d1c06753d045ad10e00e7aba53ee2adba0712ccc.zip frameworks_base-d1c06753d045ad10e00e7aba53ee2adba0712ccc.tar.gz frameworks_base-d1c06753d045ad10e00e7aba53ee2adba0712ccc.tar.bz2 |
Implement API review feedback for JobScheduler
BUG: 17005336
Took the opportunity to clean up some back-off logic
Change-Id: Ibc8ae34d1d44dd064ba071e4cbad17872f7e38cf
Diffstat (limited to 'services/backup')
-rw-r--r-- | services/backup/java/com/android/server/backup/FullBackupJob.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/backup/java/com/android/server/backup/FullBackupJob.java b/services/backup/java/com/android/server/backup/FullBackupJob.java index deb2293..601f15e 100644 --- a/services/backup/java/com/android/server/backup/FullBackupJob.java +++ b/services/backup/java/com/android/server/backup/FullBackupJob.java @@ -20,10 +20,8 @@ import android.app.job.JobInfo; import android.app.job.JobParameters; import android.app.job.JobScheduler; import android.app.job.JobService; -import android.app.job.JobInfo.NetworkType; import android.content.ComponentName; import android.content.Context; -import android.util.Slog; public class FullBackupJob extends JobService { private static final String TAG = "FullBackupJob"; @@ -40,7 +38,7 @@ public class FullBackupJob extends JobService { JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sIdleService) .setRequiresDeviceIdle(true) - .setRequiredNetworkCapabilities(NetworkType.UNMETERED) + .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) .setRequiresCharging(true); if (minDelay > 0) { builder.setMinimumLatency(minDelay); |