summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Christopher Tate <ctate@google.com> 2014-06-20 21:45:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-06-20 20:43:34 +0000
commitee4bd76a335d825e1a0532cc8db52f00fa68f346 (patch)
tree3359e2254128b6a48a7d8aa2060bd4c12b361adc
parent5c9916763451c3ab6b7cc4a14d7e6bde08f35bd6 (diff)
parent1b8b3aa265190e84467f740e99a0ade3a0e3cd67 (diff)
Merge "Fix BackgroundDexOptService scheduled job"
-rw-r--r--services/core/java/com/android/server/job/controllers/JobStatus.java3
-rw-r--r--services/core/java/com/android/server/pm/BackgroundDexOptService.java4
2 files changed, 4 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/job/controllers/JobStatus.java b/services/core/java/com/android/server/job/controllers/JobStatus.java
index 15a6b2569c55..53337c4629f7 100644
--- a/services/core/java/com/android/server/job/controllers/JobStatus.java
+++ b/services/core/java/com/android/server/job/controllers/JobStatus.java
@@ -203,7 +203,8 @@ public class JobStatus {
@Override
public String toString() {
return String.valueOf(hashCode()).substring(0, 3) + ".."
- + ":[" + job.getService().getPackageName() + ",jId=" + job.getId()
+ + ":[" + job.getService()
+ + ",jId=" + job.getId()
+ ",R=(" + earliestRunTimeElapsedMillis + "," + latestRunTimeElapsedMillis + ")"
+ ",N=" + job.getNetworkCapabilities() + ",C=" + job.isRequireCharging()
+ ",I=" + job.isRequireDeviceIdle() + ",F=" + numFailures
diff --git a/services/core/java/com/android/server/pm/BackgroundDexOptService.java b/services/core/java/com/android/server/pm/BackgroundDexOptService.java
index 2a7b4f60a69a..1d53016f9856 100644
--- a/services/core/java/com/android/server/pm/BackgroundDexOptService.java
+++ b/services/core/java/com/android/server/pm/BackgroundDexOptService.java
@@ -34,9 +34,9 @@ import java.util.concurrent.atomic.AtomicBoolean;
public class BackgroundDexOptService extends JobService {
static final String TAG = "BackgroundDexOptService";
- static final int BACKGROUND_DEXOPT_JOB = 808;
+ static final int BACKGROUND_DEXOPT_JOB = 800;
private static ComponentName sDexoptServiceName = new ComponentName(
- BackgroundDexOptService.class.getPackage().getName(),
+ "android",
BackgroundDexOptService.class.getName());
final AtomicBoolean mIdleTime = new AtomicBoolean(false);