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 { 32 void sendNetworkCapabilities(in NetworkCapabilities nc); 33 void sendLinkProperties(in LinkProperties lp); 34 // TODO: consider replacing this by "markConnected()" and removing 35 void sendNetworkInfo(in NetworkInfo info); 36 void sendScore(in NetworkScore score); 37 void sendExplicitlySelected(boolean explicitlySelected, boolean acceptPartial); 38 void sendSocketKeepaliveEvent(int slot, int reason); 39 void sendUnderlyingNetworks(in @nullable List<Network> networks); 40 void sendEpsQosSessionAvailable(int callbackId, in QosSession session, in EpsBearerQosSessionAttributes attributes); 41 void sendNrQosSessionAvailable(int callbackId, in QosSession session, in NrQosSessionAttributes attributes); 42 void sendQosSessionLost(int qosCallbackId, in QosSession session); 43 void sendQosCallbackError(int qosCallbackId, int exceptionType); 44 void sendTeardownDelayMs(int teardownDelayMs); 45 void sendLingerDuration(int durationMs); 46 } 47