summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Varun Shah <varunshah@google.com> 2024-04-11 17:19:54 +0000
committer Varun Shah <varunshah@google.com> 2024-04-18 01:09:58 +0000
commit943475ccdbc29f837c422ba94a30eb7f5e2a3bde (patch)
treeca6fdaba76f25d3e3dab773e79029013f8330cb4 /libs/input/PointerController.cpp
parentb4f70d30a566bdeaba2701b9e9672374912c6512 (diff)
Update Service#onTimeout implementation.
- Time limit information will now be stored on a per-fgs type for each uid instead of simply relying on fgs-launch-eligibility status. - If the app has not started an fgs for the specific type in the past 24 hours, reset the time limit for that type. - If the app has been in the TOP state since the last time the timeout callback was triggered, reset the time limit for that type. Otherwise, throw a ForegroundServiceStartNotAllowedException. - If the app starts a FGS with multiple time-restricted types, apply the most lenient time limit instead of the most restricted one. - Also ensure the book-keeping is updated correctly when switching between time-restricted types. Bug: 330399444 Test: atest CtsFgsTimeoutTestCases Test: atest CtsAppTestCases Change-Id: Ie5dfc1719bc8124e8f3807c2e9095cd141d42819
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions