• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2020, 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 perNmissions and
14  * limitations under the License.
15  */
16 package android.net;
17 
18 import android.net.NattKeepalivePacketData;
19 import android.net.QosFilterParcelable;
20 import android.net.TcpKeepalivePacketData;
21 
22 import android.net.INetworkAgentRegistry;
23 
24 /**
25  * Interface to notify NetworkAgent of connectivity events.
26  * @hide
27  */
28 oneway interface INetworkAgent {
onRegistered(in INetworkAgentRegistry registry)29     void onRegistered(in INetworkAgentRegistry registry);
onDisconnected()30     void onDisconnected();
onBandwidthUpdateRequested()31     void onBandwidthUpdateRequested();
onValidationStatusChanged(int validationStatus, in @nullable String captivePortalUrl)32     void onValidationStatusChanged(int validationStatus,
33             in @nullable String captivePortalUrl);
onSaveAcceptUnvalidated(boolean acceptUnvalidated)34     void onSaveAcceptUnvalidated(boolean acceptUnvalidated);
onStartNattSocketKeepalive(int slot, int intervalDurationMs, in NattKeepalivePacketData packetData)35     void onStartNattSocketKeepalive(int slot, int intervalDurationMs,
36         in NattKeepalivePacketData packetData);
onStartTcpSocketKeepalive(int slot, int intervalDurationMs, in TcpKeepalivePacketData packetData)37     void onStartTcpSocketKeepalive(int slot, int intervalDurationMs,
38         in TcpKeepalivePacketData packetData);
onStopSocketKeepalive(int slot)39     void onStopSocketKeepalive(int slot);
onSignalStrengthThresholdsUpdated(in int[] thresholds)40     void onSignalStrengthThresholdsUpdated(in int[] thresholds);
onPreventAutomaticReconnect()41     void onPreventAutomaticReconnect();
onAddNattKeepalivePacketFilter(int slot, in NattKeepalivePacketData packetData)42     void onAddNattKeepalivePacketFilter(int slot,
43         in NattKeepalivePacketData packetData);
onAddTcpKeepalivePacketFilter(int slot, in TcpKeepalivePacketData packetData)44     void onAddTcpKeepalivePacketFilter(int slot,
45         in TcpKeepalivePacketData packetData);
onRemoveKeepalivePacketFilter(int slot)46     void onRemoveKeepalivePacketFilter(int slot);
onQosFilterCallbackRegistered(int qosCallbackId, in QosFilterParcelable filterParcel)47     void onQosFilterCallbackRegistered(int qosCallbackId, in QosFilterParcelable filterParcel);
onQosCallbackUnregistered(int qosCallbackId)48     void onQosCallbackUnregistered(int qosCallbackId);
onNetworkCreated()49     void onNetworkCreated();
onNetworkDestroyed()50     void onNetworkDestroyed();
51 }
52