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

Commit 1db6a37d authored by Kweku Adams's avatar Kweku Adams
Browse files

Don't log WTF when flex constraint becomes unsatisfied.

Bug: 323410278
Test: atest CtsJobSchedulerTestCases:FlexibilityConstraintTest
Change-Id: Ieac48cf4fe0970e167600332ff40cfcbc9a1175d
parent e6eb0869
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2053,6 +2053,11 @@ public final class JobStatus {
            case CONSTRAINT_WITHIN_QUOTA:
                return JobParameters.STOP_REASON_QUOTA;

            // This can change from true to false, but should never change when a job is already
            // running, so there's no reason to log a message or create a new stop reason.
            case CONSTRAINT_FLEXIBLE:
                return JobParameters.STOP_REASON_UNDEFINED;

            // These should never be stop reasons since they can never go from true to false.
            case CONSTRAINT_CONTENT_TRIGGER:
            case CONSTRAINT_DEADLINE: