Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9557fe83 authored by Kulwinder Singh's avatar Kulwinder Singh Committed by robertchou
Browse files

Fix for CTS testAllowWhileIdleJobInTempwhitelist

In this test case when all constraints to run the jobs are satisfied,
then to make job ready to run, intent MSG_CHECK_JOB is send to job handler.
But this intent is not dispatched to job handler.

BUG: 113778907
Test:After these changes this CTS case always passed.

Change-Id: I8c63361dcd7ade19b724c9bc2fdf78d5f10c8d71
Feature: CTS(*)
parent 0def48bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2040,6 +2040,7 @@ public class JobSchedulerService extends com.android.server.SystemService
                        if (DEBUG) {
                            Slog.d(TAG, "MSG_CHECK_JOB");
                        }
                        removeMessages(MSG_CHECK_JOB);
                        if (mReportedActive) {
                            // if jobs are currently being run, queue all ready jobs for execution.
                            queueReadyJobsForExecutionLocked();
@@ -2099,7 +2100,6 @@ public class JobSchedulerService extends com.android.server.SystemService
                }
                maybeRunPendingJobsLocked();
                // Don't remove JOB_EXPIRED in case one came along while processing the queue.
                removeMessages(MSG_CHECK_JOB);
            }
        }
    }