Add implicit constraints to short string.

Make sure implicit constraints are included in the unsatisfied
constraints summary so that the short string clearly indicates why the
job may not be ready.

Bug: 141495777
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest and check logcat
Change-Id: Ia73c920f21911329a080619eabd344ed4980ee4c
This commit is contained in:
Kweku Adams
2023-01-11 19:57:33 +00:00
parent 404b71818e
commit b2441ad241

View File

@@ -2098,7 +2098,7 @@ public final class JobStatus {
} else {
sb.append(" satisfied:0x").append(Integer.toHexString(satisfiedConstraints));
sb.append(" unsatisfied:0x").append(Integer.toHexString(
(satisfiedConstraints & mRequiredConstraintsOfInterest)
(satisfiedConstraints & (mRequiredConstraintsOfInterest | IMPLICIT_CONSTRAINTS))
^ mRequiredConstraintsOfInterest));
}
sb.append("}");