Bookatz c697797d43 Statsd broadcast subscriber
Allows a uid that uploads a statsd config to additionally
register a BroadcastSubscriber with statsd. If statsd
detects an anomaly (according to the config's Alert),
statsd can inform a BroadcastSubscriber provided in the config.
The config uses a subscriberId (just an int) to identify the
BroadcastSubscriber. It then uses StatsManager.setBroadcastSubscriber
to associate that subscriberId with a given PendingIntent.
Then, when the anomaly is detected, statsd sends a broadcast
using that PendingIntent, alerting whoever was specified by
the config/setBroadcastSubscriber.

Bug: 70356901
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert.BroadcastSubscriberTests
Change-Id: I4d9ea9a6c8a85e61fadfd99c1513c55abbadd5e9
2018-01-24 13:08:19 -08:00
2018-01-24 13:08:19 -08:00
2018-01-24 13:08:19 -08:00
2017-12-13 17:29:28 -08:00
2018-01-24 13:08:19 -08:00
2018-01-24 13:08:19 -08:00
2018-01-23 10:45:49 -08:00
2018-01-24 13:08:19 -08:00
2017-11-20 11:13:48 -08:00
2018-01-24 19:00:39 +00:00
2017-11-13 13:25:05 -05:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%