Fix test.

Update the test logic to handle the existence of other active networks
and end early when appropriate.

Bug: 322031031
Test: atest CtsJobSchedulerTestCases:FlexibilityConstraintTest#testAppliedConstraints_batteryNotLowAndConnectivity
Change-Id: I9a63841e69857088272691d63852c6a232ab5a43
1 file changed