OSDN Git Service

Track Multiple Event Instances in EventReporter
authorNathan Harold <nharold@google.com>
Sat, 2 Feb 2019 01:43:09 +0000 (17:43 -0800)
committerNathan Harold <nharold@google.com>
Mon, 4 Feb 2019 22:54:48 +0000 (14:54 -0800)
commit821857f776da92438df05ae7794db264b580b30d
tree33bdd6462befc02b6c696ac54eaf2d1a18f330d0
parent948195bb011e4368a2b3dd33286e6d7aa2dd0792
Track Multiple Event Instances in EventReporter

To avoid spamming users or the debug app with debug
events, the DebugEventReporter will now track each
event it receives and only send a single intent for
each event signature per boot. In the future, some
other method of persistence (such as per-build) might
be preferable, but this should mitigate any looping
events.

In addition, add dump() to the event reporter so that
even if there is no debug app installed, or in case
an event happens multiple times, it can be observed
through a bugreport.

Bug: 120941729
Test: dump and observe that the events are printed.
Change-Id: Iaf04a308a29bc074acfaa16b9e70947761759181
telephony/java/android/telephony/DebugEventReporter.java