diff options
author | Hugo Benichi <hugobenichi@google.com> | 2017-03-22 22:21:44 +0900 |
---|---|---|
committer | Hugo Benichi <hugobenichi@google.com> | 2017-04-14 01:41:48 +0000 |
commit | 2a5cfb9738867da634a3bf64ccef881aaefbfce5 (patch) | |
tree | a9d31ae88eb5dfedff90ca5a20c1b77e5d1d6031 /rs/java/android/renderscript/ProgramStore.java | |
parent | 4db137b0599a9dfff8a26cb5c2b6dab71b457a9b (diff) |
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)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions