summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2020-03-30 12:03:21 -0700
committerCody Kesting <ckesting@google.com>2020-03-30 17:14:56 -0700
commit95a98c2efdcf46c70df8285c5492324ede5a1a52 (patch)
tree2046982e3786b77a7f02b7af25bb46587668cac7 /core/java/android
parent93c1e656b5d6ce8474faf42471839c465e5879c3 (diff)
Clarify comments for Connectivity Diagnostics reports.
Clarify when ConnectivityDiagnosticsCallback#onConnectivityReportAvailable will be invoked. Clarify when NetworkAgentInfo#mConnectivityReport will be null vs non-null. Bug: 147849853 Test: atest FrameworksNetTests Change-Id: I748bd9ded72a34d89f13bd4362d6d4da62b910b8 Merged-In: I748bd9ded72a34d89f13bd4362d6d4da62b910b8 (cherry picked from commit 604dd40cf077f42c2d4b6ff80ff41d89cfbcacee)
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/net/ConnectivityDiagnosticsManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/net/ConnectivityDiagnosticsManager.java b/core/java/android/net/ConnectivityDiagnosticsManager.java
index aa35852f78b0..9086d49231bb 100644
--- a/core/java/android/net/ConnectivityDiagnosticsManager.java
+++ b/core/java/android/net/ConnectivityDiagnosticsManager.java
@@ -659,8 +659,8 @@ public class ConnectivityDiagnosticsManager {
public abstract static class ConnectivityDiagnosticsCallback {
/**
* Called when the platform completes a data connectivity check. This will also be invoked
- * immediately upon registration with the latest report, if a report has already been
- * generated for this network.
+ * immediately upon registration for each network matching the request with the latest
+ * report, if a report has already been generated for that network.
*
* <p>The Network specified in the ConnectivityReport may not be active any more when this
* method is invoked.