Use FLAG_RECEIVER_FOREGROUND for ordered broadcasts

When the system is under heavy load background broadcast delivery only gets
around 10% of total CPU time. Setting FLAG_RECEIVER_FOREGROUND allows the
recipient to run at foreground priority, with a shorter timeout interval.

Bug: 25111640
Change-Id: Id1268d2d09fe9872b01dd4a8e7d65acc6b5a681a
1 file changed