From c16bfcc7f70a2285e5b2f3692acd832f389fe0b7 Mon Sep 17 00:00:00 2001 From: Daniel Bright Date: Wed, 23 Dec 2020 14:06:14 -0800 Subject: [PATCH] Added aidl for qos callback Bug: 155176305 Change-Id: I62958d041a8f544dbd98d5434e97ce89f843c5cb --- .../src/com/android/connectivity/aidl/INetworkAgent.aidl | 3 +++ .../com/android/connectivity/aidl/INetworkAgentRegistry.aidl | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/framework/src/com/android/connectivity/aidl/INetworkAgent.aidl b/framework/src/com/android/connectivity/aidl/INetworkAgent.aidl index 1af9e769b7..64b556720c 100644 --- a/framework/src/com/android/connectivity/aidl/INetworkAgent.aidl +++ b/framework/src/com/android/connectivity/aidl/INetworkAgent.aidl @@ -16,6 +16,7 @@ package com.android.connectivity.aidl; import android.net.NattKeepalivePacketData; +import android.net.QosFilterParcelable; import android.net.TcpKeepalivePacketData; import com.android.connectivity.aidl.INetworkAgentRegistry; @@ -43,4 +44,6 @@ oneway interface INetworkAgent { void onAddTcpKeepalivePacketFilter(int slot, in TcpKeepalivePacketData packetData); void onRemoveKeepalivePacketFilter(int slot); + void onQosFilterCallbackRegistered(int qosCallbackId, in QosFilterParcelable filterParcel); + void onQosCallbackUnregistered(int qosCallbackId); } diff --git a/framework/src/com/android/connectivity/aidl/INetworkAgentRegistry.aidl b/framework/src/com/android/connectivity/aidl/INetworkAgentRegistry.aidl index d42a34055c..f0193db5c2 100644 --- a/framework/src/com/android/connectivity/aidl/INetworkAgentRegistry.aidl +++ b/framework/src/com/android/connectivity/aidl/INetworkAgentRegistry.aidl @@ -19,6 +19,8 @@ import android.net.LinkProperties; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkInfo; +import android.net.QosSession; +import android.telephony.data.EpsBearerQosSessionAttributes; /** * Interface for NetworkAgents to send network network properties. @@ -33,4 +35,7 @@ oneway interface INetworkAgentRegistry { void sendExplicitlySelected(boolean explicitlySelected, boolean acceptPartial); void sendSocketKeepaliveEvent(int slot, int reason); void sendUnderlyingNetworks(in @nullable List networks); + void sendEpsQosSessionAvailable(int callbackId, in QosSession session, in EpsBearerQosSessionAttributes attributes); + void sendQosSessionLost(int qosCallbackId, in QosSession session); + void sendQosCallbackError(int qosCallbackId, int exceptionType); }