diff options
| author | 2016-09-27 17:13:57 +0100 | |
|---|---|---|
| committer | 2016-10-27 18:23:16 +0900 | |
| commit | f82d1596ce92e0e8b687b365a9e60661e132b872 (patch) | |
| tree | ccbb4471390ce5c3239b54c47e858e3b662736cd | |
| parent | ef0cc6205872fc77da84df3420bca65824c1ad96 (diff) | |
Extending DNS event reporting
This adds hostname, array of addresses, total count of IP addresses
and uid to the existing pipeline.
Currently ignores the new data it receives, further work will be
done in the subsequent CLs.
Test: for now just the benchmarking, in the future unit and CTS
(cherry picked from commit 14c9d2d0df7fab2b0470c3c404f600d87d4f0f93)
Bug: 29748723
Change-Id: Ice7db208282934e74f0e1808ffbae96d476c4216
| -rw-r--r-- | services/core/java/com/android/server/connectivity/NetdEventListenerService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetdEventListenerService.java b/services/core/java/com/android/server/connectivity/NetdEventListenerService.java index 98f34ca11f71..4fbfa8ee29c2 100644 --- a/services/core/java/com/android/server/connectivity/NetdEventListenerService.java +++ b/services/core/java/com/android/server/connectivity/NetdEventListenerService.java @@ -126,7 +126,9 @@ public class NetdEventListenerService extends INetdEventListener.Stub { @Override // Called concurrently by multiple binder threads. - public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs) { + // This method must not block or perform long-running operations. + public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, + String hostname, String[] ipAddresses, int ipAddressesCount, int uid) { maybeVerboseLog(String.format("onDnsEvent(%d, %d, %d, %d)", netId, eventType, returnCode, latencyMs)); |