commit | 7f630d22b83d8f40225a2e0b0501d0040313080a | [log] [tgz] |
---|---|---|
author | Hui Yu <huiyu@google.com> | Wed Jan 06 14:09:23 2021 -0800 |
committer | Hui Yu <huiyu@google.com> | Thu Jan 07 00:47:24 2021 -0800 |
tree | 8fffa1fa3d78210e3010c1f2d5ec7c66039409ca | |
parent | af95a200dc5a7e6693f31806c7c8809aecae7d80 [diff] |
BG-FGS-Launch uses the same grace period mechanism as BG-Activity-Launch. WindowProcessController.areBackgroundActivityStartsAllowed() has the 10 seconds grace period, starts from last activity's launch time or finish time. Expose this method as an ATMS interface for AMS to call, to determine if BG-FGS-Launch is allowed. Bug: 171305836 Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java Change-Id: I30706dc1950bf5d49926a8e26c0493d9e168eb1b