summaryrefslogtreecommitdiff
path: root/common/networkstackclient
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2020-01-06 15:51:59 -0800
committerCody Kesting <ckesting@google.com>2020-02-05 11:49:33 -0800
commit782cbfa3fb32bbfe42288c3767ee262c187b04d2 (patch)
tree918e81aaa35d3585ad2d7eb26676c8ee67d284c0 /common/networkstackclient
parent33f2e3bc19a9d33f244939f8d04dc006b83aed1e (diff)
Define callback for suspected data stall.
Currently, NetworkStack does not notify ConnectivityService explicitly when it detects a potential data stall. This adds a new method notifyDataStallSuspected() to INetworkMonitorCallbacks for notifying ConnectivityService. ConstantsShim is defined for using constants from the Android platform that are introduced after the NetworkStack mainline module was defined. Bug: 143187964 Test: compiles Test: atest NetworkStackTests Change-Id: Ie3b5b4e71e4a4b15a5a84f761eaead3acf6fc807 Merged-In: Ie3b5b4e71e4a4b15a5a84f761eaead3acf6fc807
Diffstat (limited to 'common/networkstackclient')
-rw-r--r--common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl b/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl
index 62c3f29..e2901dd 100644
--- a/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl
+++ b/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl
@@ -31,4 +31,6 @@ oneway interface INetworkMonitorCallbacks {
void notifyProbeStatusChanged(int probesCompleted, int probesSucceeded);
void notifyNetworkTestedWithExtras(int testResult, @nullable String redirectUrl,
long timestampMillis, in PersistableBundle extras);
+ void notifyDataStallSuspected(long timestampMillis, int detectionMethod,
+ in PersistableBundle extras);
} \ No newline at end of file