History log of /frameworks/base/core/java/android/net/metrics/RaEvent.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6ccd51a338fed39217cb3a5c0f229ed547918634 04-Jul-2016 Hugo Benichi <hugobenichi@google.com> IpConn metrics: correctly read RA lifetimes

This patch
- adds a Builder class for RaEvent.
- uses this Builder class for correctly recording the minimum
lifetime seen for every ICMP6 options tracked, instead of
recording the last lifetime seen.
- adds unit test coverage for RaEvent logging.

Change-Id: I6443932f5cf7a613a5c695c65a60eab01e60602a
/frameworks/base/core/java/android/net/metrics/RaEvent.java
cfbf7414a14cf91d1b5c83154aab54c32d6be76a 23-Jun-2016 Hugo Benichi <hugobenichi@google.com> Record events for RA option lifetimes

This patch defines a new android.net.metrics.RaEvent class carrying
lifetime values contained in RA packets. RaEvent are recorded when
ApfFilter processes a new RA for which there is no match.

Example:
ConnectivityMetricsEvent(15:39:39.808, 0, 0): RaEvent(lifetimes: router=3600s, prefix_valid=2592000s, prefix_preferred=604800s, route_info=-1s, dnssl=-1s, rdnss=3600s)

Change-Id: Ia28652e03ed442d5f2a686ef5b3fafbcb77c503a
/frameworks/base/core/java/android/net/metrics/RaEvent.java