Prevent starting FGS from background via usageTimeReport

By explicitly setting MODE_BACKGROUND_ACTIVITY_START_DENIED in the PendingIntent sent from AppTimeTracker, we can prevent an exploit wherein apps could start foreground services from the background. See the bug for more details.

Bug: 478861451
Test: Manual (repro steps in bug)
Flag: EXEMPT BUGFIX
TAG=agy
CONV=067ca68d-06b9-46b3-a962-5cf3f33a691d
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:d8c9f5c1764ffe5379784c5f81d20f127afeb971
Merged-In: I69666bf1a7b0b3ef4beb77ff39ac75325dac88b9
Change-Id: I69666bf1a7b0b3ef4beb77ff39ac75325dac88b9
1 file changed