summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Cody Kesting <ckesting@google.com> 2020-05-29 16:29:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-05-29 16:29:23 +0000
commit78281cfcdeeef6075f9c1096a08f83c1d8da2368 (patch)
treee93b314a61b96ce6be83c615293d95ce67b196f4
parent7f5a592d65ede341a19e46632a10a7a6cda12475 (diff)
parent637887b98f7a175148229fc6e70443b20d37f1f3 (diff)
Merge "Comment reason for simulateDataStall structure." into rvc-dev
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index 1e9a9d85e06a..1634f6e62897 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -8187,6 +8187,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
+ "creators");
}
+ // Instead of passing the data stall directly to the ConnectivityDiagnostics handler, treat
+ // this as a Data Stall received directly from NetworkMonitor. This requires wrapping the
+ // Data Stall information as a DataStallReportParcelable and passing to
+ // #notifyDataStallSuspected. This ensures that unknown Data Stall detection methods are
+ // still passed to ConnectivityDiagnostics (with new detection methods masked).
final DataStallReportParcelable p = new DataStallReportParcelable();
p.timestampMillis = timestampMillis;
p.detectionMethod = detectionMethod;