0e4b41527449cb52c479c8e5abb2a6a49cf33641 |
|
19-Sep-2017 |
Hugo Benichi <hugobenichi@google.com> |
Wakeup packet events: addressing a few comments This patch addresses a few post-submit comment for commits f562ac34a51dc and 60c9f63b66921. Bug: 34901696 Bug: 62179647 Test: runtest frameworks-net Merged-In: I4abec57e0c6bc869dc57b5eb54582dd977b64c30 (cherry picked from commit 175b574e27daa0d8832b8cc9615a15fce998309a) Change-Id: Ied9d0cec98685e5a91ed2ca2c81ad88d7ae8d751
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
a87b15c95f01b80c6bcfa71cbf66e8456342ea28 |
|
05-Sep-2017 |
Hugo Benichi <hugobenichi@google.com> |
Connectivity metrics: add WakeupStats events This patch defines a new WakeupStats event in ipconnectivity.proto and populates these events from the NFLOG wakeup events stored in NetdEventListenerService. There is one WakeupStats object per known interface on which ingress packets arrive and may wake the system up. Example from $ adb shell dumpsys connmetrics list: ... WakeupStats(wlan0, total: 58, root: 0, system: 3, apps: 38, non-apps: 0, unrouted: 17, 6111s) WakeupEvent(13:36:31.686, iface wlan0, uid -1) WakeupEvent(13:38:50.846, iface wlan0, uid -1) WakeupEvent(13:39:16.676, iface wlan0, uid 10065) WakeupEvent(13:40:32.144, iface wlan0, uid 1000) WakeupEvent(13:40:35.827, iface wlan0, uid 1000) WakeupEvent(13:40:47.913, iface wlan0, uid 10004) WakeupEvent(13:40:52.622, iface wlan0, uid 10014) WakeupEvent(13:41:06.036, iface wlan0, uid 10004) ... Bug: 34901696 Bug: 62179647 Test: runtest frameworks-net Merged-In: Ie2676b20bfb411a1902f4942643df0c20e268d99 (cherry pick from commit 60c9f63b66926745603978e1bd6372b3a44561d1) Change-Id: I3087f446fc998fc1ca895d975b80c4a1dd029bf3
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
1e327edae342b7d0060ca61c98c95cf1fee0b0cd |
|
04-Sep-2017 |
Hugo Benichi <hugobenichi@google.com> |
Connectivity metrics: collect NFLOG wakeup events This patch stores NFLOG packet wakeup events sent by Netd to the system server into a ring buffer inside NetdEventListenerService. The content of this buffer is accessible by $ dumpsys connmetrics or $ dumpsys connmetrics list, and is added to bug reports. The wakeup event buffer stores currently uid and timestamps. Bug: 34901696 Bug: 62179647 Test: runtest frameworks-net, new unit tests Merged-In: Ie8db6f8572b1a929a20398d8dc03e189bc488382 (cherry picked from commit f562ac34a51da55e4d15e34f0cd1cb597e7d926c) Change-Id: Ibe706872a80dfd06abd9779a2116ca7e4bc0fb77
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
822c5bf77892175d0b52aeaddf4e43c749c341f6 |
|
18-Jul-2017 |
Hugo Benichi <hugobenichi@google.com> |
IP connectivity metrics: fix tests after proto update Update to ipconnectivity.proto in commit 6d2f506bfd788a3685292d404dc9d82a27357cfe broke the associated unit tests (Change-Id: I4cf5b95956df721aecd63fddfb026a7266c190b9) Bug: 34901696 Test: runtest frameworks-net Change-Id: I57a6bad8a9836b1c45690c4589b416786ce1dfa0
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
dfc2cc5857199345e08f07977b79b20292f964a2 |
|
23-Mar-2017 |
Hugo Benichi <hugobenichi@google.com> |
Connectivity metrics: add transports to connect stats This patch groups connect() events per netId. It adds netid and transport information to serialized ConnectStatistics events. Test: updated NetdEventListenerServiceTest updated IpConnectivityMetricsTest $ runtest frameworks-net passes Bug: 34901696 Change-Id: I4769496383943e714a1d350c298e093c2ed57477
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
0699cf98042a64e41ee076c464eb115a6579be08 |
|
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: Ia4b33fd4212741152662a2adbb0533bd1b4902ee
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
44d5d0c2fb4159cdaaf0561af047f4709158c107 |
|
16-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "ConnectivityMetricsEvent: add ifname, netid, transports"
|
946b7e424e0e4d5bffc65ef405f32b966d192d3c |
|
15-Mar-2017 |
Hugo Benichi <hugobenichi@google.com> |
ConnectivityMetricsEvent: add ifname, netid, transports This patch adds new fields to ConnectivityMetricsEvent to make it more symmetric to IpConnectivityEvent in ipconnectivity.proto. Follow-up patches will start populating these fields for users of IpConnectivityLog. Test: unit tests updated, $ runtest frameworks-net passes Bug: 34901696 Change-Id: I396767cdfcf38cce893c0d6e1f4524f12e3fdc64
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.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/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
f684050e8f52c773f59a1bedca6efb56647e858c |
|
08-Mar-2017 |
Hugo Benichi <hugobenichi@google.com> |
IP connectivity metrics: update ipconnectivity.proto This patch adds several new fields to ipconnectivity.proto for improving APF metrics, connect metrics, and link_layer inference. Test: build, flashed, ran $ adb shell dumpsys connmetrics list proto updated metrics unit tests depending on proto schema Bug: 34901696 Change-Id: I6f68e16f583a6b407f33f8a500133e100f3453c7
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
1af06a6e098a0bd81afcec27a56950d927049236 |
|
16-Jan-2017 |
Hugo Benichi <hugobenichi@google.com> |
IP connectivity metrics: fix tests Change 4e89a026292338761838b33fc83b250f3519819c did not update the unit tests checking serialization of ipconnectivity.proto protobufs. This patch updates the tests expectations to make them pass again Test: $ runtest frameworks-net Bug: 34232829 Change-Id: Iccc4e1a7714c9ce1eba995dc47a2961216efc87d
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.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/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
fa8a6f6220d1a0027ba7969c2d3f72690ddc6495 |
|
04-Nov-2016 |
Hugo Benichi <hugobenichi@google.com> |
frameworks-test: adding missing @SmallTest This activates all frameworks-test tests in runs of the continuous platform tests. Test: $ runtest frameworks-net passes (expect Tether Bug: 32561414 Change-Id: Ib42c4ab2d7214891cd451875ca4bf6db195538c1
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.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/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|
ecc986d430f4b8158f177ed97d2edb741f11ff71 |
|
27-Oct-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Move the connectivity tests to frameworks/base/tests/net. This will give us a good place to put all the networking tests. Fix: 31479480 Test: adb shell am instrument -w -e notClass com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest 'com.android.frameworks.tests.net/android.support.test.runner.AndroidJUnitRunner' # PASS Change-Id: I4b389f7f4e33a996885b38670f585e58ca66f777
/frameworks/base/tests/net/java/com/android/server/connectivity/NetdEventListenerServiceTest.java
|