Extend FGS timeout for overlapping start
- If startForeground(SHORT_SERVICE) is called on an already running SHORT_SERVICE FGS *when the app _could_ start a new FGS*, then we should extend the timeout. This allows "overlapping" uses of SHORT_SERVICE FGS. - We also now support changing the FGS type from/to SHORT_FGS. -- From SHORT_SERVICE to another type: Allowed only when the app could start another FGS. -- From another type to SHORT_SERVICE: Always allowed, and a timeout will start. -- From SHORT_SERVICE to SHORT_SERVICE: If the app could start another FGS, we'll extend the timeout. Otherwise, it'd cause FGS-BG-start exception. Bug: 257270313 Test: atest CtsShortFgsTestCases Test: Manual test using the test app. Change-Id: I0c0057637f91000f1cb7ea6032eae6d696ad71f8
Loading
Please register or sign in to comment