Allow short-service to hold a wake lock during doze
- Change the logic to "procstate <= BFGS, _or_ the UID has a short
service".
- We should clean up the logic once we figure out a better way to do it
- Also move the part of the logic to ActivityManager so we can udpate
the logic anytime without touching PowerManagerService.
Test: Manual test using a test app
Test: atest CtsShortFgsTestCases
Test: atest FrameworksServicesTests:OomAdjusterTests
Test: atest FrameworksServicesTests:PowerManagerServiceTest
Bug: 257270313
Change-Id: Ib1819096929ccf5b8ee55e07a8933e94915aa49b
6 files changed