diff options
author | Hui Yu <huiyu@google.com> | 2021-07-20 09:29:21 -0700 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2021-07-20 18:19:26 +0000 |
commit | cce24f573ba927b3e7f5b24f19b1d3ab06e73e0d (patch) | |
tree | b72644d14a5ad8fb0eb5bf66008b1748bd7f0cfb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 4de5e90844fe3895b17675afbcd3ceabfc4fe2e4 (diff) |
FGS PendingIntent also use BroadcastOptions' temp allowlist duration.
For FGS PendingIntent, if the BroadcastOptions parameter passed in PendingIntentRecord.send()
call has a non-zero temp allowlist duration, treat this duration the
same as the FGS PendingIntent's temp allowlist duration.
Previously only setExact() alarm's "broadcasts" are exempt from BG-FGS-start
restriction using BroadcastOptions. This CL exempts setExact() alarm's "FGS PendingIntent"
from BG-FGS-start restriction.
BYPASS_INCLUSIVE_LANGUAGE_REASON=Pre-existing API
Bug: 193011829
Test: b/193011829 POC app, with this fix,
ForegroundServiceStartNotAllowedException is not seen.
Change-Id: Ifb095a8bcc458ab27c9259ca4af4d759835f2e1c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions