Merge "Account info on job wakelocks" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8fcf6a6922
@@ -1301,7 +1301,7 @@ public class SyncManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getJobScheduler().scheduleAsPackage(b.build(), syncOperation.owningPackage,
|
getJobScheduler().scheduleAsPackage(b.build(), syncOperation.owningPackage,
|
||||||
syncOperation.target.userId, "sync");
|
syncOperation.target.userId, syncOperation.wakeLockName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -150,19 +150,9 @@ public final class JobStatus {
|
|||||||
this.sourceTag = tag;
|
this.sourceTag = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.sourceTag != null) {
|
this.batteryName = this.sourceTag != null
|
||||||
StringBuilder sb = new StringBuilder();
|
? this.sourceTag + ":" + job.getService().getPackageName()
|
||||||
sb.append(job.getService().getPackageName());
|
: job.getService().flattenToShortString();
|
||||||
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.tag = "*job*/" + this.batteryName;
|
this.tag = "*job*/" + this.batteryName;
|
||||||
|
|
||||||
this.earliestRunTimeElapsedMillis = earliestRunTimeElapsedMillis;
|
this.earliestRunTimeElapsedMillis = earliestRunTimeElapsedMillis;
|
||||||
|
|||||||
Reference in New Issue
Block a user