Merge "Account info on job wakelocks" into nyc-dev

am: 8fcf6a6

* commit '8fcf6a692262dc182c844b35337b67aeb320021d':
  Account info on job wakelocks

Change-Id: I864e9c089e2ddcab1b3d00db85013af14ebed8fa
This commit is contained in:
Shreyas Basarge
2016-04-26 22:50:06 +00:00
committed by android-build-merger
2 changed files with 4 additions and 14 deletions

View File

@@ -1301,7 +1301,7 @@ public class SyncManager {
}
getJobScheduler().scheduleAsPackage(b.build(), syncOperation.owningPackage,
syncOperation.target.userId, "sync");
syncOperation.target.userId, syncOperation.wakeLockName());
}
/**

View File

@@ -150,19 +150,9 @@ public final class JobStatus {
this.sourceTag = tag;
}
if (this.sourceTag != null) {
StringBuilder sb = new StringBuilder();
sb.append(job.getService().getPackageName());
sb.append('/');
sb.append(this.sourceTag);
if (sourcePackageName != null) {
sb.append('/');
sb.append(this.sourcePackageName);
}
this.batteryName = sb.toString();
} else {
this.batteryName = job.getService().flattenToShortString();
}
this.batteryName = this.sourceTag != null
? this.sourceTag + ":" + job.getService().getPackageName()
: job.getService().flattenToShortString();
this.tag = "*job*/" + this.batteryName;
this.earliestRunTimeElapsedMillis = earliestRunTimeElapsedMillis;