Traceur: Make all notification broadcast intents foreground.

Some apps produce a lot of broadcast queue latency (for example,
Dynamite in b/79715842), which is causing delays in notification
handling for Traceur and other apps that don't send their notification
broadcast intents at foreground priority. This change adds
Intent.FLAG_RECEIVER_FOREGROUND to Traceur's broadcast intents, giving
the notifications their expected foreground priority (the user expects
to see an immediate response when they tap on each of these
notifications) and protecting the notifications from being delayed due
to other apps' broadcast behaviors.

Bug: 112155897
Test: atest TraceurUiTests completes successfully.
Test: The Traceur notification flow still works as expected.
Test: Without this change, tapping on a trace notification immediately
after a reboot sometimes resulted in delays. With this change, tapping a
trace notification after reboot resulted in a prompt response.
Change-Id: I288229eb9f22ca0bb460ffa8e12309c6add08591
2 files changed
tree: 7d6d0477182e5b172c99a730e019d4f91af7da4b
  1. res/
  2. src/
  3. uitests/
  4. Android.mk
  5. AndroidManifest.xml