Loading core/java/android/app/job/JobInfo.java +1 −3 Original line number Diff line number Diff line Loading @@ -365,9 +365,7 @@ public class JobInfo implements Parcelable { /** @hide */ public boolean isExemptedFromAppStandby() { return ((flags & FLAG_EXEMPT_FROM_APP_STANDBY) != 0) && !hasEarlyConstraint() && !hasLateConstraint(); return ((flags & FLAG_EXEMPT_FROM_APP_STANDBY) != 0) && !isPeriodic(); } /** Loading services/core/java/com/android/server/job/JobSchedulerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -2337,8 +2337,8 @@ public final class JobSchedulerService extends com.android.server.SystemService if (callingUid != Process.SYSTEM_UID) { throw new SecurityException("Job has invalid flags"); } if (job.hasLateConstraint() || job.hasEarlyConstraint()) { Slog.wtf(TAG, "Jobs with time-constraints mustn't have" if (job.isPeriodic()) { Slog.wtf(TAG, "Periodic jobs mustn't have" + " FLAG_EXEMPT_FROM_APP_STANDBY. Job=" + job); } } Loading Loading
core/java/android/app/job/JobInfo.java +1 −3 Original line number Diff line number Diff line Loading @@ -365,9 +365,7 @@ public class JobInfo implements Parcelable { /** @hide */ public boolean isExemptedFromAppStandby() { return ((flags & FLAG_EXEMPT_FROM_APP_STANDBY) != 0) && !hasEarlyConstraint() && !hasLateConstraint(); return ((flags & FLAG_EXEMPT_FROM_APP_STANDBY) != 0) && !isPeriodic(); } /** Loading
services/core/java/com/android/server/job/JobSchedulerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -2337,8 +2337,8 @@ public final class JobSchedulerService extends com.android.server.SystemService if (callingUid != Process.SYSTEM_UID) { throw new SecurityException("Job has invalid flags"); } if (job.hasLateConstraint() || job.hasEarlyConstraint()) { Slog.wtf(TAG, "Jobs with time-constraints mustn't have" if (job.isPeriodic()) { Slog.wtf(TAG, "Periodic jobs mustn't have" + " FLAG_EXEMPT_FROM_APP_STANDBY. Job=" + job); } } Loading