Explicitly take app out of app idle state after turning battery on.

When the device is charging, any `am set-inactive` commands would be
effectively no-ops. So, explicitly take the test app out of the app
idle state after changing the charging state.

Bug: 288220398
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueModernImplTest.java
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9290fb85fe3c16c1a424ffe32769c5b2927b4b74)
Merged-In: I152af12b404ac607fff794a527f45a0aad640d4f
Change-Id: I152af12b404ac607fff794a527f45a0aad640d4f
1 file changed