1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.net;
18 
19 import android.net.CaptivePortalData;
20 import android.net.DataStallReportParcelable;
21 import android.net.INetworkMonitor;
22 import android.net.NetworkTestResultParcelable;
23 import android.net.PrivateDnsConfigParcel;
24 import android.os.PersistableBundle;
25 
26 /** @hide */
27 oneway interface INetworkMonitorCallbacks {
28     void onNetworkMonitorCreated(in INetworkMonitor networkMonitor) = 0;
29 
30     // Deprecated. Use notifyNetworkTestedWithExtras() instead.
notifyNetworkTested(int testResult, @nullable String redirectUrl)31     void notifyNetworkTested(int testResult, @nullable String redirectUrl) = 1;
32     void notifyPrivateDnsConfigResolved(in PrivateDnsConfigParcel config) = 2;
showProvisioningNotification(String action, String packageName)33     void showProvisioningNotification(String action, String packageName) = 3;
hideProvisioningNotification()34     void hideProvisioningNotification() = 4;
notifyProbeStatusChanged(int probesCompleted, int probesSucceeded)35     void notifyProbeStatusChanged(int probesCompleted, int probesSucceeded) = 5;
36     void notifyNetworkTestedWithExtras(in NetworkTestResultParcelable result) = 6;
37     void notifyDataStallSuspected(in DataStallReportParcelable report) = 7;
38     void notifyCaptivePortalDataChanged(in CaptivePortalData data) = 8;
39 }