From 33f2e3bc19a9d33f244939f8d04dc006b83aed1e Mon Sep 17 00:00:00 2001 From: Cody Kesting Date: Sun, 5 Jan 2020 15:23:15 -0800 Subject: Define callback for network tested with extras. A new callback function is defined in INetworkMonitorCallbacks for alerting ConnectivityService of a network test result along with a PersistableBundle of extras. Bug: 143187964 Test: compiles Test: atest NetworkStackTests Change-Id: Id07eda28f970e5423b323072d0639e77c8e6bd2e Merged-In: Id07eda28f970e5423b323072d0639e77c8e6bd2e --- .../networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/networkstackclient/src') diff --git a/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl b/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl index f8dcd6c..62c3f29 100644 --- a/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl +++ b/common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl @@ -22,9 +22,13 @@ import android.net.PrivateDnsConfigParcel; /** @hide */ oneway interface INetworkMonitorCallbacks { void onNetworkMonitorCreated(in INetworkMonitor networkMonitor); + + // Deprecated. Use notifyNetworkTestedWithExtras() instead. void notifyNetworkTested(int testResult, @nullable String redirectUrl); void notifyPrivateDnsConfigResolved(in PrivateDnsConfigParcel config); void showProvisioningNotification(String action, String packageName); void hideProvisioningNotification(); void notifyProbeStatusChanged(int probesCompleted, int probesSucceeded); + void notifyNetworkTestedWithExtras(int testResult, @nullable String redirectUrl, + long timestampMillis, in PersistableBundle extras); } \ No newline at end of file -- cgit v1.2.3