• 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.LinkProperties;
19 import android.net.Network;
20 import android.net.NetworkCapabilities;
21 import android.net.NetworkInfo;
22 import android.net.NetworkScore;
23 import android.net.QosSession;
24 import android.telephony.data.EpsBearerQosSessionAttributes;
25 import android.telephony.data.NrQosSessionAttributes;
26 
27 /**
28  * Interface for NetworkAgents to send network properties.
29  * @hide
30  */
31 oneway interface INetworkAgentRegistry {
sendNetworkCapabilities(in NetworkCapabilities nc)32     void sendNetworkCapabilities(in NetworkCapabilities nc);
sendLinkProperties(in LinkProperties lp)33     void sendLinkProperties(in LinkProperties lp);
34     // TODO: consider replacing this by "markConnected()" and removing
sendNetworkInfo(in NetworkInfo info)35     void sendNetworkInfo(in NetworkInfo info);
sendScore(in NetworkScore score)36     void sendScore(in NetworkScore score);
sendExplicitlySelected(boolean explicitlySelected, boolean acceptPartial)37     void sendExplicitlySelected(boolean explicitlySelected, boolean acceptPartial);
sendSocketKeepaliveEvent(int slot, int reason)38     void sendSocketKeepaliveEvent(int slot, int reason);
sendUnderlyingNetworks(in @ullable List<Network> networks)39     void sendUnderlyingNetworks(in @nullable List<Network> networks);
sendEpsQosSessionAvailable(int callbackId, in QosSession session, in EpsBearerQosSessionAttributes attributes)40     void sendEpsQosSessionAvailable(int callbackId, in QosSession session, in EpsBearerQosSessionAttributes attributes);
sendNrQosSessionAvailable(int callbackId, in QosSession session, in NrQosSessionAttributes attributes)41     void sendNrQosSessionAvailable(int callbackId, in QosSession session, in NrQosSessionAttributes attributes);
sendQosSessionLost(int qosCallbackId, in QosSession session)42     void sendQosSessionLost(int qosCallbackId, in QosSession session);
sendQosCallbackError(int qosCallbackId, int exceptionType)43     void sendQosCallbackError(int qosCallbackId, int exceptionType);
sendTeardownDelayMs(int teardownDelayMs)44     void sendTeardownDelayMs(int teardownDelayMs);
sendLingerDuration(int durationMs)45     void sendLingerDuration(int durationMs);
46 }
47