summaryrefslogtreecommitdiff
path: root/common/networkstackclient/src/android/net
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2020-01-05 15:23:15 -0800
committerCody Kesting <ckesting@google.com>2020-02-05 11:49:18 -0800
commit33f2e3bc19a9d33f244939f8d04dc006b83aed1e (patch)
tree8b23dd31ce81b912caf5a899f5d300f03256dbb9 /common/networkstackclient/src/android/net
parentfa7827266ae243cd2c96d1bad5b9a5b1ddec7403 (diff)
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
Diffstat (limited to 'common/networkstackclient/src/android/net')
-rw-r--r--common/networkstackclient/src/android/net/INetworkMonitorCallbacks.aidl4
1 files changed, 4 insertions, 0 deletions
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