History log of /frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
00a42d4c885bf7440c2677750ad8b10974b16d7f 13-Sep-2016 Hugo Benichi <hugobenichi@google.com> IpConnectivityLog uses new metrics service

This patch connects existing IpConnectivityLog to the new
IpConnectivityMetrics service:
- IpConnectivityLog is now an independent class that pushes events
directly to the new IpConnectivityMetrics service.
- DnsEventListenerService is moved from MetricsLoggerService to
IpConnectivityMetrics.
- this patch also features end to end tests from IpConnectivityLog to
IpConnectivityMetrics dumpsys output.

Bug: 31254800
Change-Id: I4fe4a209eedde2814d5f13c574a1a0d854bd05c9
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
eab511b582cc00364dee7835534bb511719f9231 09-Sep-2016 Hugo Benichi <hugobenichi@google.com> New IpConnectivityMetrics service

This patch defines a new metrics service for IpConnectivity events
defined in android.net.metrics, separate from currently existing
MetricsLoggerService.

Similarly to MetricsLoggerService, the new service has an event buffer.
It also implements a dumpsys interface that can be used to flush events
and output a serialized proto.

Bug: 31254800
Change-Id: I0c3faeb4008b283f85d9ba9460371fa68956ea3b
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
90cbc5b44450e9806ce0227d125fe7d5107c7c4b 29-Jul-2016 Hugo Benichi <hugobenichi@google.com> Fix missing IpConnectivity metrics

The IpConnectivityLog class looks up MetricsLoggerService once only
at creation. If a IpConnectivityLog user instantiates this class too
early during the boot process, the MetricsLoggerService is not found
and no event can be recorded.

This patch makes IpConnectivityLog attempt to look up
MetricsLoggerService as long as it hasn't found it yet.

This allows IpManager and ConnectivityService to upload
android.net.metrics events.

Bug: 30490301
Change-Id: I97102b95a775ea9e90351b9887ae4661fddc2af9
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
cfddd6879283860bb4d2cf2972ea086f585a37ec 31-May-2016 Hugo Benichi <hugobenichi@google.com> Refactor IP connectivity event logging

This patch removes static methods for logging IP connectivity events
defined in android.net.metrics and replaces them with a single log()
instance method defined on IpConnectivityLog. Event constructors are
now public also. Every classes logging such events now create an
instance of IpConnectivityLog for logging event objects directly
instantiated with new.

Removing static dependencies allow straightforward testing of logging.

This patch also removes the base IpConnectivityEvent class which is not
needed any more.

Bug: 29035129
Change-Id: I3de700f93f46deaa48a759f938f7d00e1d8bff98
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
3bba249c4711b10b2ba5335c7b6653dc570aae64 30-May-2016 Hugo Benichi <hugobenichi@google.com> Tests for IpConnectivityMetricsLog

Bug: 28204408
Bug: 29035129
Change-Id: I429562a00904188947b11da9928ec5c01296ff97
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java
623ab7d7a6a7d948fa6338a3992b2680d0192427 30-May-2016 Hugo Benichi <hugobenichi@google.com> ConnectivityMetricsLogger subclass for IpConnectivity

IpConnectivityEvent was using ConnectivityMetricsLogger directly for
logging events. However ConnectivityMetricsLogger keeps track in a
thread-unsafe way of skipped events rejected by MetricsLoggerService.

This patch introduces a subclass of ConnectivityMetricsLogger that
does not track skipped events, for using in IpConnectivityEvent.

It also qualifies the mServiceBlockedTimestampMillis variable as
volatile so that throttling is effective accross concurrent callers
of logEvent.

Bug: 28204408
Bug: 29023888
Change-Id: I33707ba1d07487b42f3ce9a1ad9a66d785e99fa7
/frameworks/base/core/java/android/net/metrics/IpConnectivityLog.java