From 782cbfa3fb32bbfe42288c3767ee262c187b04d2 Mon Sep 17 00:00:00 2001 From: Cody Kesting Date: Mon, 6 Jan 2020 15:51:59 -0800 Subject: 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 --- common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/networkstackclient/src/android/net') 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 -- cgit v1.2.3