CTS: properly handle devices with idle/standby disabled

It's valid for some products to have device idle or app standby
disabled.  Properly account for that during CTS testing.  In
addition, set precondition standby bucketing *after* forcing
the desired battery state, to avoid potential override
behaviors while plugged / in parole.

Tested on both AOSP and with-Google product loadouts.

Fixes: 79942376
Fixes: 79949233
Test: atest android.jobscheduler.cts.DeviceIdleJobsTest
Change-Id: Ib4422f4ae1680ebf328977c8123538ef07f13c4f
1 file changed