2a5cfb9738867da634a3bf64ccef881aaefbfce5 |
|
22-Mar-2017 |
Hugo Benichi <hugobenichi@google.com> |
Connectivity metrics: log DnsEvents in-band This patch changes how DnsEvents are logged in IpConnectivityMetrics. The following changes are made: - DnsEventBatch are not logged after 100 queries on the same network - this allows to merge DnsEvent and DnsEventBatch into one class - DnsEventBatch are not logged after a network disconnect - this allows to remove the NetworkCallback - DnsEvent are now logged similarly to ConnectStats when statistics are flushed, in a direct call from IpConnectivityMetrics into NetdEventListenerService, in a direct call from IpConnectivityMetrics into NetdEventListenerService. - this allows to remove the Parcelable implementation of DnsEvent - transports information is added to DnsEvent. Test: - simplified NetdEventListenerServiceTest covering dns logging - updated IpConnectivityEventBuilderTest - updated IpConnectivityMetricsTest - $ runtest frameworks-net passes - manually verified $ adb shell dumpsys connmetrics list proto Bug: 34901696 Change-Id: I4fcd0ad7a7b85d587647f471a90c1e53a18fc95a Merged-In: Ia4b33fd4212741152662a2adbb0533bd1b4902ee (cherry picked from commit 0699cf98042a64e41ee076c464eb115a6579be08)
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
a2decca4f25b6d3adfd396cdc475807985783bab |
|
22-Feb-2017 |
Hugo Benichi <hugobenichi@google.com> |
IP connectivity metrics: ConnectStats additions This patch: - adds a counter to ConnectStats for counting the number of successful connect() calls done in blocking mode. This allows to compute error rates for connect() in blocking mode. - add printing of ConnectStats when dumping NetdEventListenerService and/or IpConnectivityMetrics service. Test: $ runtest frameworks-net, + manual tests verifying logged events. Bug: 34901696 Change-Id: I889e8ccd12681b0511be487e9d2ee44290a2d7d7
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
0d4a398b7846f26e4452180915ecb5a9d4566148 |
|
25-Nov-2016 |
Hugo Benichi <hugobenichi@google.com> |
IP Connectivity metrics: add connect() statistics This patch adds a ConnectStats class to aggregate connect() statistics gathered in NetdEventListenerService. ConnectStats is uploaded once a day by IpConnectivityMetrics. Test: $ runtest frameworks-net + new unit test Bug: 32198976 Change-Id: Iea63339035415513a5ba0ff4b8f4d79f75fc652d
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
383db5ebcc3a4a615faf249bf4f126f42e80b82e |
|
22-Jun-2016 |
Tamas Berghammer <tberghammer@google.com> |
Update package names to work with the proto3 compiler Bug: b/28974522 Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
dd9bb4fdd9f4b528734a7907d2bc92841ca648ab |
|
12-Oct-2016 |
Michal Karpinski <mkarpinski@google.com> |
[DPM] DO can start network logging and listen for events This CL adds: 1) Setter and getter in DPM to manipulate logging switch (retrieval method to come in a subsequent CL(s)). 2) A way for DPM to register to listen for events. 3) Skeleton of NetworkLogger class (more to come in subsequent CL(s)). Bug: 29748723 Change-Id: I5c04662ccc6febd2ba294b0eaca1ed1da9c16e47
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
03db8e4b58342d5ada64f29b049cf30da0ba9369 |
|
24-Oct-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge changes I1a544a8d,Ie78d3fb0 * changes: IpConnectivityMetrics: rate limit ApfProgramEvents IpConnectivityMetrics reads buffer size in settings
|
e1c173d2240a8eedf7685c9371087dc047a6931f |
|
18-Oct-2016 |
Hugo Benichi <hugobenichi@google.com> |
IpConnectivityMetrics: rate limit ApfProgramEvents This patch uses the previously introduced TokenBucket to rate limit ApfProgramEvents, still allowing for burst of ApfProgramEvents when a new interface is set up (due to ipv4 provisioning, multicast lock, ipv6 RAs triggering new APF program events in short amounts of time). Test: new test in IpConnectivityMetricsTest Bug: 1550402 Change-Id: I1a544a8d62e6b02f0ed0088ab76c4bad338d2f44
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
05686dbb6b965eb1a54591d2ed2334337886c6ee |
|
19-Oct-2016 |
Hugo Benichi <hugobenichi@google.com> |
IpConnectivityMetrics reads buffer size in settings Test: IpConnectivityMetricsTest passes. Also manually changed the new setting and verified the buffer size is as expected after flushing the buffer. Bug: 32198637 Change-Id: Ie78d3fb03cea7883585549dac4f2063f0a8d9f4b
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
1ca2ee78377589440adf18bc43a4cf7c62202948 |
|
21-Oct-2016 |
Hugo Benichi <hugobenichi@google.com> |
Merge "IpConnectivity metrics: add version number"
|
51d14cb60793a9a073b8a29ff7875bb518cd7d54 |
|
19-Oct-2016 |
Hugo Benichi <hugobenichi@google.com> |
Add IP conn metrics to dumpsys and bug reports Test: manually created a bug report and inspected content. Change-Id: I3119db2a25c895264eae409f1dda9fc756cd244e
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
d680d4c856f54bea0c60dea74ba4204822391e49 |
|
13-Oct-2016 |
Hugo Benichi <hugobenichi@google.com> |
IpConnectivity metrics: add version number This patch adds a version field to ipconnectivity.proto and populates it to 2, which is the logical version number for NYC-MR2. Test: IpConnectivity{EventBuilder,Metrics}Test pass Bug: 32127906 Change-Id: I1439f012b7f9b4211d5d5429c274ad03d2ac9d6b
/frameworks/base/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|
e69608f8648e8d7f21c712be3bbf50b05ce8b1e3 |
|
23-Sep-2016 |
Hugo Benichi <hugobenichi@google.com> |
resolve merge conflicts of 00f07be to nyc-mr1-dev-plus-aosp Change-Id: I82865b2847c584f8a1d728ef76113e3969f222ca
|
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/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.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/services/core/java/com/android/server/connectivity/IpConnectivityMetrics.java
|