Loading apex/jobscheduler/service/java/com/android/server/job/JobServiceContext.java +5 −2 Original line number Diff line number Diff line Loading @@ -727,8 +727,11 @@ public final class JobServiceContext implements ServiceConnection { // Exception-throwing-can down the road to JobParameters.completeWork >:( return true; } if (mRunningJob.completeWorkLocked(workId)) { mService.mJobs.touchJob(mRunningJob); return mRunningJob.completeWorkLocked(workId); return true; } return false; } } finally { Binder.restoreCallingIdentity(ident); Loading apex/jobscheduler/service/java/com/android/server/job/controllers/JobStatus.java +4 −0 Original line number Diff line number Diff line Loading @@ -828,6 +828,10 @@ public final class JobStatus { } } /** * Returns {@code true} if the JobWorkItem queue was updated, * and {@code false} if nothing changed. */ public boolean completeWorkLocked(int workId) { if (executingWork != null) { final int N = executingWork.size(); Loading Loading
apex/jobscheduler/service/java/com/android/server/job/JobServiceContext.java +5 −2 Original line number Diff line number Diff line Loading @@ -727,8 +727,11 @@ public final class JobServiceContext implements ServiceConnection { // Exception-throwing-can down the road to JobParameters.completeWork >:( return true; } if (mRunningJob.completeWorkLocked(workId)) { mService.mJobs.touchJob(mRunningJob); return mRunningJob.completeWorkLocked(workId); return true; } return false; } } finally { Binder.restoreCallingIdentity(ident); Loading
apex/jobscheduler/service/java/com/android/server/job/controllers/JobStatus.java +4 −0 Original line number Diff line number Diff line Loading @@ -828,6 +828,10 @@ public final class JobStatus { } } /** * Returns {@code true} if the JobWorkItem queue was updated, * and {@code false} if nothing changed. */ public boolean completeWorkLocked(int workId) { if (executingWork != null) { final int N = executingWork.size(); Loading