Loading apex/jobscheduler/service/java/com/android/server/job/controllers/JobStatus.java +10 −4 Original line number Diff line number Diff line Loading @@ -673,10 +673,16 @@ public final class JobStatus { this.job = job; final String bnNamespace = namespace == null ? "" : "@" + namespace + "@"; this.batteryName = this.sourceTag != null ? bnNamespace + this.sourceTag + ":" + job.getService().getPackageName() : bnNamespace + job.getService().flattenToShortString(); StringBuilder batteryName = new StringBuilder(); if (namespace != null) { batteryName.append("@").append(namespace).append("@"); } if (sourceTag != null) { batteryName.append(sourceTag).append(":").append(job.getService().getPackageName()); } else { batteryName.append(job.getService().flattenToShortString()); } this.batteryName = batteryName.toString(); final String componentPackage = job.getService().getPackageName(); mIsProxyJob = !this.sourcePackageName.equals(componentPackage); Loading Loading
apex/jobscheduler/service/java/com/android/server/job/controllers/JobStatus.java +10 −4 Original line number Diff line number Diff line Loading @@ -673,10 +673,16 @@ public final class JobStatus { this.job = job; final String bnNamespace = namespace == null ? "" : "@" + namespace + "@"; this.batteryName = this.sourceTag != null ? bnNamespace + this.sourceTag + ":" + job.getService().getPackageName() : bnNamespace + job.getService().flattenToShortString(); StringBuilder batteryName = new StringBuilder(); if (namespace != null) { batteryName.append("@").append(namespace).append("@"); } if (sourceTag != null) { batteryName.append(sourceTag).append(":").append(job.getService().getPackageName()); } else { batteryName.append(job.getService().flattenToShortString()); } this.batteryName = batteryName.toString(); final String componentPackage = job.getService().getPackageName(); mIsProxyJob = !this.sourcePackageName.equals(componentPackage); Loading